diff options
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); } |