diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 10:08:03 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 10:08:03 +0100 |
commit | 7f7c5c56dce30d47c32fb57fad6d839d0990b054 (patch) | |
tree | eebc8d3f4c332d969f4a66a566edd844bd43387c /game/enemy/EnemyBulletPool.cpp | |
parent | ceb41b7ae7e2734af954364b319fc0b6f2a86c2f (diff) |
enemy spawn working + enemy shooting
Diffstat (limited to 'game/enemy/EnemyBulletPool.cpp')
-rw-r--r-- | game/enemy/EnemyBulletPool.cpp | 8 |
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); +} |