diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-19 11:04:26 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-19 11:04:26 +0100 |
commit | 1e6aaf13f4ecdc67e75eb26bcd8a6f0059c5cfe9 (patch) | |
tree | d274b7ef4566b80f7373e7c664bd9e2b83982df2 /src/example/GameScene.cpp | |
parent | 8100a6ce6380e6efe701cffc0b628fc412f4e13b (diff) |
Changed Script names
Diffstat (limited to 'src/example/GameScene.cpp')
-rw-r--r-- | src/example/GameScene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/GameScene.cpp b/src/example/GameScene.cpp index faa08fe..50b61d8 100644 --- a/src/example/GameScene.cpp +++ b/src/example/GameScene.cpp @@ -22,7 +22,7 @@ using namespace crepe; using namespace std; -class MoveCameraScript : public Script { +class MoveCameraManualyScript : public Script { public: void init() { subscribe<KeyPressEvent>( @@ -114,7 +114,7 @@ void GameScene::load_scene() { Camera::Data{ .bg_color = Color::RED, }); - camera.add_component<BehaviorScript>().set_script<MoveCameraScript>(); + camera.add_component<BehaviorScript>().set_script<MoveCameraManualyScript>(); camera.add_component<Rigidbody>(Rigidbody::Data{}); PlayerSubScene player(*this); |