diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 15:01:02 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 15:01:02 +0100 |
commit | f8ffac3b14d41e7d1e43ffe64750d910ed333b0d (patch) | |
tree | 1417b93d5e57df858f0cd4177e3c8b5ffbcc021b /game/prefab/ZapperPoolScript.cpp | |
parent | 5d798c30af7026099344a068e91e1684018b4386 (diff) | |
parent | f31bd86ae5d7df21b788a273d4f2e530136ec184 (diff) |
another merge + WIP
Diffstat (limited to 'game/prefab/ZapperPoolScript.cpp')
-rw-r--r-- | game/prefab/ZapperPoolScript.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/game/prefab/ZapperPoolScript.cpp b/game/prefab/ZapperPoolScript.cpp index 00dd213..e42adc9 100644 --- a/game/prefab/ZapperPoolScript.cpp +++ b/game/prefab/ZapperPoolScript.cpp @@ -17,9 +17,15 @@ void ZapperPoolScript::init() { }); } +void ZapperPoolScript::fixed_update(crepe::duration_t) { + if (i++ < 80) return; + i = 0; + queue_event<CreateZapperEvent>(); +} + void ZapperPoolScript::spawn_random() { vec2 pos = this->get_camera_pos(); - logf(Log::DEBUG, "Spawning random zappers at {}", pos); + logf(Log::DEBUG, "Spawning random zapper at {}", pos); } |