diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 16:20:10 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 16:20:10 +0100 |
commit | bb976ed881a989b8b2cec90c905d906d9b652a9d (patch) | |
tree | e0125ba5141542b2000125bda76495f0098a1e41 /game/enemy/EnemySubScene.cpp | |
parent | 8edce6775ab0639a2a6eee3e561d3de0bb0c2cf1 (diff) |
`make format`
Diffstat (limited to 'game/enemy/EnemySubScene.cpp')
-rw-r--r-- | game/enemy/EnemySubScene.cpp | 5 |
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 |