diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-19 10:54:37 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-19 10:54:37 +0100 |
commit | 8100a6ce6380e6efe701cffc0b628fc412f4e13b (patch) | |
tree | edf71c55ff7e187bc14b1e64b3309b029d795a89 /src/example/GameScene.cpp | |
parent | dc9af733c3e8f11d73fa62028e3b72cee7a73c36 (diff) |
Renamed classes (added correct suffix)
Diffstat (limited to 'src/example/GameScene.cpp')
-rw-r--r-- | src/example/GameScene.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/example/GameScene.cpp b/src/example/GameScene.cpp index 5f252e6..faa08fe 100644 --- a/src/example/GameScene.cpp +++ b/src/example/GameScene.cpp @@ -1,7 +1,6 @@ #include "GameScene.h" -#include "Background.h" -#include "Player.h" -#include "api/ParticleEmitter.h" +#include "BackgroundSubScene.h" +#include "PlayerSubScene.h" #include <cmath> #include <crepe/api/Animator.h> @@ -12,6 +11,7 @@ #include <crepe/api/Color.h> #include <crepe/api/Event.h> #include <crepe/api/GameObject.h> +#include <crepe/api/ParticleEmitter.h> #include <crepe/api/Rigidbody.h> #include <crepe/api/Script.h> #include <crepe/api/Sprite.h> @@ -107,7 +107,7 @@ private: }; void GameScene::load_scene() { - Background background(*this); + BackgroundSubScene background(*this); GameObject camera = new_object("camera", "camera", vec2(650, 0)); camera.add_component<Camera>(ivec2(990, 720), vec2(1100, 800), @@ -117,7 +117,7 @@ void GameScene::load_scene() { camera.add_component<BehaviorScript>().set_script<MoveCameraScript>(); camera.add_component<Rigidbody>(Rigidbody::Data{}); - Player player(*this); + PlayerSubScene player(*this); GameObject floor = new_object("floor", "game_world", vec2(0, 325)); floor.add_component<Rigidbody>(Rigidbody::Data{ |