Hold out against monster hordes until the timer runs out, collect gold and power up at the merchant.

My first game; started in Unity, then ported to Godot 4.7. A Brotato-style, wave-based 2D pixel art survivor: each wave you hold out against monster hordes until the timer runs out.
Enemies drop gold; after each wave the travelling merchant's shop offers 13 upgrades for your character, pistol and lightsaber. There's a dash, a screen-clearing nuke, a magnet and a golem mini boss every 5th wave.
The wave loop is a state machine: INTRO → FIGHT → CLEANUP → SHOP. Upgrades are pure data: adding one is a single list entry, no code changes. TR/EN translations and the shop logic are covered by a headless test.
1func start_wave(wave: int, duration: float) -> void:2 # Spawn interval reaches its minimum by wave ramp_waves3 var t := clampf((wave - 1) / (Settings.ramp_waves() - 1.0), 0.0, 1.0)4 spawn_interval = lerpf(_start_interval, min_spawn_interval, t)56 _timer = 0.07 _wave_time = 0.08 _boss_time = duration / 2.0 if wave % mini_boss_every == 0 else -1.09 set_process(true)