summaryrefslogtreecommitdiff
path: root/Spatial.gd
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-11-15 03:06:45 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-11-15 03:06:45 +0100
commit7de8c8bfaff30ae6674b678d666b345fc8c0eb5b (patch)
treed0f709675c81ff3b2c0ba0e360f603ea954617f3 /Spatial.gd
parent65d5173a58aa6777173140f9e128992051725d83 (diff)
downloadnj26-7de8c8bfaff30ae6674b678d666b345fc8c0eb5b.tar.gz
Add all powerup sprites
Diffstat (limited to 'Spatial.gd')
-rw-r--r--Spatial.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/Spatial.gd b/Spatial.gd
index 8eb07a8..6f0a335 100644
--- a/Spatial.gd
+++ b/Spatial.gd
@@ -142,7 +142,7 @@ func create_powerup():
func _on_powerup_timeout():
create_powerup()
- $powerup_timer.start(randi() % 16 + 5)
+ $powerup_timer.start(randi() % 10 + 3)
func game_over():
$game_time.stop()
@@ -171,7 +171,7 @@ func _on_box_timeout():
team = t.Team.PINK
create_box(team)
- $box_timer.start(randi() % 16 + 5)
+ $box_timer.start(randi() % 10 + 3)
func start_game():
for z in zombies:
@@ -192,7 +192,7 @@ func _ready():
create_zombie(2, t.Team.PINK, Vector3(6.0, 0, -3))
create_zombie(3, t.Team.PINK, Vector3(6.0, 0, 3))
- for _i in range(randi() % 4 + 1):
+ for _i in range(randi() % 6 + 2):
create_powerup()
for _i in range(15):