diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 09:43:53 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 09:43:53 +0100 |
commit | 743cdd5b2fe175605352c337396c3d70dac66247 (patch) | |
tree | 538c9713403f8746d629448190dc69305a15e82a /game/GameScene.cpp | |
parent | 8620f57f7101b2090add89330e74854b77161d3f (diff) |
roll back player controller
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r-- | game/GameScene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp index b287763..71612e3 100644 --- a/game/GameScene.cpp +++ b/game/GameScene.cpp @@ -20,7 +20,7 @@ #include "StartGameScript.h" #include "background/BackgroundSubScene.h" -#include "prefab/PlayerObject.h" +#include "PlayerSubScene.h" #include "prefab/ZapperObject.h" using namespace crepe; @@ -41,7 +41,7 @@ void GameScene::load_scene() { camera.add_component<BehaviorScript>().set_script<MoveCameraManualyScript>(); camera.add_component<Rigidbody>(Rigidbody::Data {}); - PlayerObject {new_object("player", "player", vec2(-100, 200))}; + PlayerSubScene player(*this); GameObject floor = new_object("floor", "game_world", vec2(0, 325)); floor.add_component<Rigidbody>(Rigidbody::Data { |