diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 12:38:24 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 12:38:24 +0100 |
commit | 9625b751757b8828b0edb0b7543c7cadfd25c119 (patch) | |
tree | 864d26cb57fe11887f4cd10923cd9a9d0b823af4 /game/enemy/EnemyBulletScript.cpp | |
parent | dc5d46426b30303843e8746d514db6f55ce1495b (diff) |
enemy sequence working
Diffstat (limited to 'game/enemy/EnemyBulletScript.cpp')
-rw-r--r-- | game/enemy/EnemyBulletScript.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/game/enemy/EnemyBulletScript.cpp b/game/enemy/EnemyBulletScript.cpp index ba27b9d..55160ab 100644 --- a/game/enemy/EnemyBulletScript.cpp +++ b/game/enemy/EnemyBulletScript.cpp @@ -3,6 +3,8 @@ #include <crepe/api/Camera.h> #include <crepe/api/Rigidbody.h> #include <crepe/api/Metadata.h> + +#include "EnemyConfig.h" using namespace crepe; using namespace std; void EnemyBulletScript::init(){ @@ -28,7 +30,7 @@ void EnemyBulletScript::despawn_bullet(){ Transform& transform = this->get_component<Transform>(); Rigidbody& bullet_body = this->get_component<Rigidbody>(); bullet_body.active = false; - transform.position = {0,-750}; + transform.position = ENEMY_BULLET_POOL_LOCATION; } bool EnemyBulletScript::on_collide(const CollisionEvent& e){ |