diff options
Diffstat (limited to 'game/prefab/ZapperPoolScript.h')
-rw-r--r-- | game/prefab/ZapperPoolScript.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/game/prefab/ZapperPoolScript.h b/game/prefab/ZapperPoolScript.h new file mode 100644 index 0000000..7c4701c --- /dev/null +++ b/game/prefab/ZapperPoolScript.h @@ -0,0 +1,25 @@ +#pragma once + +#include <crepe/api/Script.h> + +class ZapperPoolSubScene; + +class ZapperPoolScript : public crepe::Script { +public: + ZapperPoolScript(ZapperPoolSubScene & pool); + + void init(); + void fixed_update(crepe::duration_t); + + unsigned i = 0; + +private: + ZapperPoolSubScene & pool; + +private: + crepe::vec2 get_camera_pos(); + +private: + void spawn_random(); +}; + |