added functionality for various game modes

This commit is contained in:
Derek
2025-02-21 23:19:25 -06:00
parent 9cb57824b1
commit 777063ddeb
19 changed files with 809 additions and 183 deletions

View File

@@ -4,6 +4,7 @@ extends Area3D
var player
var player_on_ladder = false
@onready var level_control = get_tree().current_scene
# Called when the node enters the scene tree for the first time.
func _ready():
@@ -32,7 +33,6 @@ func _on_body_exited(body):
body.is_climbing = false
player_on_ladder = false
body.velocity.y = .1
body.gravity = body.default_gravity
func hold_player():
var direction_to_ladder = player.global_position.direction_to(self.global_position)