aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerBulletPool.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/player/PlayerBulletPool.cpp
parentceb41b7ae7e2734af954364b319fc0b6f2a86c2f (diff)
enemy spawn working + enemy shooting
Diffstat (limited to 'game/player/PlayerBulletPool.cpp')
-rw-r--r--game/player/PlayerBulletPool.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/game/player/PlayerBulletPool.cpp b/game/player/PlayerBulletPool.cpp
new file mode 100644
index 0000000..63ef346
--- /dev/null
+++ b/game/player/PlayerBulletPool.cpp
@@ -0,0 +1,8 @@
+#include "PlayerBulletSubScene.h"
+#include "PlayerBulletPool.h"
+using namespace std;
+
+void PlayerBulletPool::create_bullets(crepe::Scene & scn) {
+ PlayerBulletSubScene bullet;
+ while(bullet.create(scn) < this->MAXIMUM_AMOUNT);
+}