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

@@ -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()