diff options
Diffstat (limited to 'game/prefab/ZapperPoolSubScene.cpp')
-rw-r--r-- | game/prefab/ZapperPoolSubScene.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/game/prefab/ZapperPoolSubScene.cpp b/game/prefab/ZapperPoolSubScene.cpp new file mode 100644 index 0000000..578688a --- /dev/null +++ b/game/prefab/ZapperPoolSubScene.cpp @@ -0,0 +1,13 @@ +#include "ZapperPoolSubScene.h" + +using namespace crepe; +using namespace std; + +ZapperPoolSubScene::ZapperPoolSubScene(Scene & scene) + : controller { scene.new_object("controller") } { + for (size_t i = 0; i < this->POOL_SIZE; i++) + zappers.emplace_back(scene.new_object("zapper")); + + +} + |