aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerSubScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-07 13:20:50 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-07 13:20:50 +0100
commitbc66e7195c80facca244f933b882011e5e81fa3c (patch)
treea9417c19a7f9cecb09130ac7becfbba059b1ec5b /game/player/PlayerSubScene.cpp
parent42cbef630ccaf3e841459d364edade1a3c72a525 (diff)
coins use events
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 c1e5e2f..fff9287 100644
--- a/game/player/PlayerSubScene.cpp
+++ b/game/player/PlayerSubScene.cpp
@@ -3,6 +3,7 @@
#include "PlayerScript.h"
#include "../Config.h"
+#include "../coins/CoinScript.h"
#include <crepe/api/Animator.h>
#include <crepe/api/BoxCollider.h>
@@ -150,4 +151,5 @@ PlayerSubScene::PlayerSubScene(Scene & scn) {
});
player.add_component<BehaviorScript>().set_script<PlayerScript>().active = false;
player.add_component<BehaviorScript>().set_script<PlayerEndScript>().active = false;
+ player.add_component<BehaviorScript>().set_script<CoinScript>();
}