aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerSubScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/player/PlayerSubScene.cpp')
-rw-r--r--game/player/PlayerSubScene.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/player/PlayerSubScene.cpp b/game/player/PlayerSubScene.cpp
index e9e2167..f136605 100644
--- a/game/player/PlayerSubScene.cpp
+++ b/game/player/PlayerSubScene.cpp
@@ -4,6 +4,7 @@
#include "PlayerScript.h"
#include "../Config.h"
+#include "../coins/CoinScript.h"
#include "api/Asset.h"
#include <crepe/api/Animator.h>
@@ -152,6 +153,7 @@ PlayerSubScene::PlayerSubScene(Scene & scn) {
.collision_layer = COLL_LAY_PLAYER,
});
player.add_component<BehaviorScript>().set_script<PlayerScript>().active = false;
+ player.add_component<BehaviorScript>().set_script<CoinScript>();
player.add_component<BehaviorScript>().set_script<PlayerEndScript>().active = false;
player.add_component<AudioSource>(Asset("asset/sfx/dud_zapper_lp.ogg"));