diff options
-rw-r--r-- | game/enemy/EnemyScript.cpp | 6 | ||||
-rw-r--r-- | game/enemy/EnemyScript.h | 2 | ||||
-rw-r--r-- | game/enemy/EnemySubScene.cpp | 2 | ||||
-rw-r--r-- | game/player/PlayerScript.h | 2 |
4 files changed, 0 insertions, 12 deletions
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<Sprite> sprites = this->get_components<Sprite>(); - 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<BoxCollider>(vec2(40, 60), vec2(-20, 0)); Asset enemy_head_asset {"asset/workers/worker2Head.png"}; Sprite & enemy_head_sprite = enemy.add_component<Sprite>( diff --git a/game/player/PlayerScript.h b/game/player/PlayerScript.h index 0fe21d1..0b77caa 100644 --- a/game/player/PlayerScript.h +++ b/game/player/PlayerScript.h @@ -15,8 +15,6 @@ private: private: int prev_anim = 0; - bool gravity_mode = true; - bool fall_direction = false; std::chrono::time_point<std::chrono::steady_clock> last_fired; std::chrono::time_point<std::chrono::steady_clock> last_switched; std::chrono::duration<float> shot_delay = std::chrono::duration<float>(0.5); |