aboutsummaryrefslogtreecommitdiff
path: root/game/GameScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r--game/GameScene.cpp4
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 {