aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/EnemyBulletPool.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 10:08:03 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 10:08:03 +0100
commit7f7c5c56dce30d47c32fb57fad6d839d0990b054 (patch)
treeeebc8d3f4c332d969f4a66a566edd844bd43387c /game/enemy/EnemyBulletPool.cpp
parentceb41b7ae7e2734af954364b319fc0b6f2a86c2f (diff)
enemy spawn working + enemy shooting
Diffstat (limited to 'game/enemy/EnemyBulletPool.cpp')
-rw-r--r--game/enemy/EnemyBulletPool.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/game/enemy/EnemyBulletPool.cpp b/game/enemy/EnemyBulletPool.cpp
new file mode 100644
index 0000000..6ebd50a
--- /dev/null
+++ b/game/enemy/EnemyBulletPool.cpp
@@ -0,0 +1,8 @@
+#include "EnemyBulletSubScene.h"
+#include "EnemyBulletPool.h"
+using namespace std;
+
+void EnemyBulletPool::create_bullets(crepe::Scene & scn) {
+ EnemyBulletSubScene bullet;
+ while(bullet.create(scn) < this->MAXIMUM_AMOUNT);
+}