reticle moves when firing, stunned enemies have stars now

This commit is contained in:
derek
2024-12-13 12:05:52 -06:00
parent b6a9e9a112
commit 9bb5332ba6
30 changed files with 629 additions and 84 deletions

View File

@@ -120,9 +120,7 @@ func refresh_scene():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
#quit game and eventually go to menu
if Input.is_action_just_pressed("escape"):
pause_menu()
pass
@@ -199,20 +197,19 @@ func pickup_spawn():
item_spawn.rand_amt = randi_range(25,100)
return item_spawn
func pause_menu():
if paused:
Engine.time_scale = engine_time_scale_cache
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
player.toggle_hud(true)
player.pause_menu.hide()
else:
engine_time_scale_cache = Engine.time_scale
Engine.time_scale = 0
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
player.toggle_hud(false)
player.pause_menu.show()
paused = !paused
#func pause_menu():
#if paused:
#get_tree().paused = false
#Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
#player.toggle_hud(true)
#player.pause_menu.hide()
#else:
#get_tree().paused = true
#Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
#player.toggle_hud(false)
#player.pause_menu.show()
#
#paused = !paused
func save_quit():
SaveLoad.save_game_data(level_name)