save before switching renderer
This commit is contained in:
parent
0efff048cc
commit
902440e5bb
2 changed files with 74 additions and 13 deletions
|
|
@ -51,8 +51,11 @@ func _process(delta):
|
|||
left_door.position.x = -0.5 + clampf(door_timer*4, -0.995,0)
|
||||
right_door.position.x = 0.5 + clampf(-door_timer*4, 0,0.995)
|
||||
|
||||
if Input.is_action_just_pressed("debug_start"):
|
||||
start_room()
|
||||
#if Input.is_action_just_pressed("debug_start"):
|
||||
#start_room()
|
||||
|
||||
if Input.is_action_just_pressed("interact"):
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
|
||||
if Input.is_action_just_pressed("reset"):
|
||||
gui.show_lose_screen("Reset Pressed", 2)
|
||||
|
|
@ -175,6 +178,7 @@ func _on_player_object_clicked(object):
|
|||
func _player_area_entered(area : Area3D):
|
||||
#print(area.name)
|
||||
if "kill" in area:
|
||||
fail_room()
|
||||
gui.show_lose_screen("Touched a reset block", 2)
|
||||
if not player.collider.disabled:
|
||||
fail_room()
|
||||
gui.show_lose_screen("Touched a reset block", 2)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue