From 75cbcb0442bd8849ed109a34e7529b400eecbb30 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Thu, 9 Jan 2025 16:08:57 +0100 Subject: cleanup --- game/enemy/EnemyScript.cpp | 6 ------ game/enemy/EnemyScript.h | 2 -- game/enemy/EnemySubScene.cpp | 2 -- 3 files changed, 10 deletions(-) (limited to 'game/enemy') diff --git a/game/enemy/EnemyScript.cpp b/game/enemy/EnemyScript.cpp index c9603ce..0b1a8b7 100644 --- a/game/enemy/EnemyScript.cpp +++ b/game/enemy/EnemyScript.cpp @@ -199,9 +199,3 @@ void EnemyScript::shoot(const vec2 & location) { } } } - -void EnemyScript::create_tank() { - RefVector sprites = this->get_components(); - Sprite & tank_body = sprites[2]; - tank_body.active = true; -} diff --git a/game/enemy/EnemyScript.h b/game/enemy/EnemyScript.h index 03343f6..be71a78 100644 --- a/game/enemy/EnemyScript.h +++ b/game/enemy/EnemyScript.h @@ -18,8 +18,6 @@ public: void despawn_enemy(); bool spawn_enemy(const SpawnEnemyEvent & e); void death(); - void create_tank(); - void create_soldier(); void set_hit_blink(bool status); private: diff --git a/game/enemy/EnemySubScene.cpp b/game/enemy/EnemySubScene.cpp index 8224e2f..ed3e555 100644 --- a/game/enemy/EnemySubScene.cpp +++ b/game/enemy/EnemySubScene.cpp @@ -52,9 +52,7 @@ int EnemySubScene::create(Scene & scn, int enemy_counter) { .looping = false, } ); - enemy_body_sprite.active = true; body_animator.pause(); - body_animator.active = true; enemy.add_component(vec2(40, 60), vec2(-20, 0)); Asset enemy_head_asset {"asset/workers/worker2Head.png"}; Sprite & enemy_head_sprite = enemy.add_component( -- cgit v1.2.3