From 22d77b99d700e6317a7432e475330e4bb3c9745d Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Fri, 10 Jan 2025 11:11:53 +0100 Subject: make format --- game/enemy/EnemyScript.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'game/enemy/EnemyScript.cpp') diff --git a/game/enemy/EnemyScript.cpp b/game/enemy/EnemyScript.cpp index 77c9bd2..24583c0 100644 --- a/game/enemy/EnemyScript.cpp +++ b/game/enemy/EnemyScript.cpp @@ -99,7 +99,7 @@ bool EnemyScript::spawn_enemy(const SpawnEnemyEvent & e) { Transform & transform = this->get_component(); Camera & camera = this->get_components_by_name("camera").front(); Transform & cam_transform = this->get_components_by_name("camera").front(); - Rigidbody& rb = this->get_component(); + Rigidbody & rb = this->get_component(); rb.data.collision_layers = {COLL_LAY_BOT_TOP, COLL_LAY_PLAYER_BULLET}; rb.data.collision_layer = COLL_LAY_ENEMY; vec2 half_screen = camera.viewport_size / 2; @@ -139,10 +139,10 @@ bool EnemyScript::on_collide(const CollisionEvent & e) { //Sprite& sprite; set_hit_blink(true); if (health <= 0) { - this->death(); - } + this->death(); + } } - + //body_animator.play(); return false; -- cgit v1.2.3