forked from team-sg/hero-mark-2
added ladder auto dismount
This commit is contained in:
parent
db3ac62f27
commit
74bf75b6e8
6 changed files with 69 additions and 7 deletions
|
@ -46,12 +46,15 @@ func _physics_process(delta):
|
|||
if Input.is_action_pressed("debug_move_player"):
|
||||
Game.get_map().get_node("Player").position = get_viewport().get_mouse_position()
|
||||
Debug.print(get_viewport().get_mouse_position())
|
||||
#Test room
|
||||
if Input.is_action_just_pressed("debug_testroom"):
|
||||
Game.change_map(load("res://maps/test_room.tscn"))
|
||||
#Debug 1
|
||||
if Input.is_action_just_pressed("debug_1"):
|
||||
Game.change_map(load("res://maps/level_select.tscn"))
|
||||
#Debug 2
|
||||
if Input.is_action_just_pressed("debug_2"):
|
||||
Debug.print(Game.get_map())
|
||||
Engine.set_target_fps(1)
|
||||
|
||||
func print(text):
|
||||
lines += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue