aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/ZapperPoolSubScene.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 13:04:49 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 13:04:49 +0100
commit6d69c8ef6b663bd6716b441cc7d01164c7e33dfc (patch)
treecbf6d4a4d7f099ca662bed00edc627212511a99e /game/prefab/ZapperPoolSubScene.cpp
parent87ae4d186ad64531e96fd3e121112f2787894295 (diff)
more WIP zapperpool
Diffstat (limited to 'game/prefab/ZapperPoolSubScene.cpp')
-rw-r--r--game/prefab/ZapperPoolSubScene.cpp13
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"));
+
+
+}
+