aboutsummaryrefslogtreecommitdiff
path: root/game/GameScene.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-05 16:36:38 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-05 16:36:38 +0100
commit2726785d64aa117aff0791d4591046c442709aac (patch)
treece5b7d2fb240e87597d70e1f1be544e9672212e3 /game/GameScene.cpp
parentba170d00586ab261e015cc2febbb43f9aa7ae43e (diff)
improved hud
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r--game/GameScene.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp
index 2073a1e..57cb8c4 100644
--- a/game/GameScene.cpp
+++ b/game/GameScene.cpp
@@ -10,6 +10,7 @@
#include "background/BackgroundSubScene.h"
#include "hud/HudScript.h"
#include "hud/HudSubScene.h"
+#include "hud/SpeedScript.h"
#include <cmath>
#include <crepe/api/Animator.h>
@@ -43,6 +44,8 @@ void GameScene::load_scene() {
camera.add_component<BehaviorScript>().set_script<MoveCameraManualyScript>();
camera.add_component<BehaviorScript>().set_script<CoinSystemScript>();
camera.add_component<BehaviorScript>().set_script<HudScript>();
+ camera.add_component<BehaviorScript>().set_script<SpeedScript>();
+
camera.add_component<Rigidbody>(Rigidbody::Data{});
PlayerSubScene player(*this);