aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/EnemyScript.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:57:05 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:57:05 +0100
commit1ec7e724fcace1274473dfcae91022cc1c930baa (patch)
tree1508e8cd74588f388093dae81432fa66ecd436f2 /game/enemy/EnemyScript.cpp
parentce83df284173cfb4f6e430bf3ed8080ea21204d7 (diff)
working scheduler and enemies and rest
Diffstat (limited to 'game/enemy/EnemyScript.cpp')
-rw-r--r--game/enemy/EnemyScript.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/game/enemy/EnemyScript.cpp b/game/enemy/EnemyScript.cpp
index 8e475a8..07ed9e8 100644
--- a/game/enemy/EnemyScript.cpp
+++ b/game/enemy/EnemyScript.cpp
@@ -84,8 +84,7 @@ bool EnemyScript::spawn_enemy(const SpawnEnemyEvent & e) {
bool EnemyScript::on_collide(const CollisionEvent & e) {
if (e.info.other.metadata.tag == "player_bullet") {
- //this->despawn_enemy();
-
+ this->despawn_enemy();
}
Animator& body_animator = this->get_components<Animator>().front();
body_animator.data.col = 2;