From 9625b751757b8828b0edb0b7543c7cadfd25c119 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Wed, 8 Jan 2025 12:38:24 +0100 Subject: enemy sequence working --- game/enemy/EnemyBulletScript.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/enemy/EnemyBulletScript.cpp') 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 #include #include + +#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(); Rigidbody& bullet_body = this->get_component(); bullet_body.active = false; - transform.position = {0,-750}; + transform.position = ENEMY_BULLET_POOL_LOCATION; } bool EnemyBulletScript::on_collide(const CollisionEvent& e){ -- cgit v1.2.3