aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/EnemySubScene.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 16:32:33 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 16:32:33 +0100
commit9ae8d8f860146c1777e55dec7bd455aa16351375 (patch)
tree76b8fc05b3adf24267fb919c1451ed0f3781b955 /game/enemy/EnemySubScene.cpp
parenteb3d9ec9baa0b95b95d741a0615adaf4c8c1d3c0 (diff)
make format
Diffstat (limited to 'game/enemy/EnemySubScene.cpp')
-rw-r--r--game/enemy/EnemySubScene.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/game/enemy/EnemySubScene.cpp b/game/enemy/EnemySubScene.cpp
index 8316db9..607b9a9 100644
--- a/game/enemy/EnemySubScene.cpp
+++ b/game/enemy/EnemySubScene.cpp
@@ -2,13 +2,13 @@
#include <crepe/api/AI.h>
#include <crepe/api/Animator.h>
+#include <crepe/api/AudioSource.h>
#include <crepe/api/BehaviorScript.h>
#include <crepe/api/BoxCollider.h>
#include <crepe/api/CircleCollider.h>
#include <crepe/api/GameObject.h>
#include <crepe/api/Rigidbody.h>
#include <crepe/api/Scene.h>
-#include <crepe/api/AudioSource.h>
#include <crepe/api/Sprite.h>
#include "../Config.h"
@@ -91,8 +91,7 @@ int EnemySubScene::create(Scene & scn, int enemy_counter) {
.looping = true,
}
);
- enemy.add_component<AudioSource>(Asset("asset/sfx/bike_gun_2.ogg")).volume
- = 0.1;
+ enemy.add_component<AudioSource>(Asset("asset/sfx/bike_gun_2.ogg")).volume = 0.1;
AI & ai_component = enemy.add_component<AI>(3000);
ai_component.path_follow_on();
BehaviorScript & enemy_script