added pause menu

This commit is contained in:
derek
2024-10-30 15:52:02 -05:00
parent 7c32586348
commit 0b3f46ae0f
14 changed files with 391 additions and 83 deletions

View File

@@ -2,14 +2,5 @@ extends StaticBody3D
signal switch_hit()
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func hit():
emit_signal("switch_hit")

View File

@@ -39,8 +39,7 @@ func _on_switch_changed() -> void:
else:
if door.door_open == true:
door.close()
#Otherwise follow standard switches
#Otherwise follow standard switches
elif switches_on == switches_needed:
print("switch check run with " + str(switches_on) + "switches on")
if door.door_open == false:
@@ -49,3 +48,13 @@ func _on_switch_changed() -> void:
print("switch check run with " + str(switches_on) + "switches on")
if door.door_open == true:
door.close()
#Otherwise follow standard switches
elif switches_on == switches_needed:
print("switch check run with " + str(switches_on) + "switches on")
if door.door_open == false:
door.open()
else:
print("switch check run with " + str(switches_on) + "switches on")
if door.door_open == true:
door.close()