aboutsummaryrefslogtreecommitdiff
path: root/src/example/ForestSubScene.cpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-19 11:04:26 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-19 11:04:26 +0100
commit1e6aaf13f4ecdc67e75eb26bcd8a6f0059c5cfe9 (patch)
treed274b7ef4566b80f7373e7c664bd9e2b83982df2 /src/example/ForestSubScene.cpp
parent8100a6ce6380e6efe701cffc0b628fc412f4e13b (diff)
Changed Script names
Diffstat (limited to 'src/example/ForestSubScene.cpp')
-rw-r--r--src/example/ForestSubScene.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/example/ForestSubScene.cpp b/src/example/ForestSubScene.cpp
index d472ab4..713d95f 100644
--- a/src/example/ForestSubScene.cpp
+++ b/src/example/ForestSubScene.cpp
@@ -11,9 +11,9 @@
using namespace crepe;
using namespace std;
-class ParallaxScript : public Script {
+class ForestParallaxScript : public Script {
public:
- ParallaxScript(float begin_x, float end_x, std::string unique_bg_name)
+ ForestParallaxScript(float begin_x, float end_x, std::string unique_bg_name)
: begin_x(begin_x),
end_x(end_x),
name(unique_bg_name) {}
@@ -44,7 +44,7 @@ private:
float ForestSubScene::create(Scene & scn, float begin_x, std::string unique_bg_name) {
GameObject script = scn.new_object("forest_script", "background");
- script.add_component<BehaviorScript>().set_script<ParallaxScript>(
+ script.add_component<BehaviorScript>().set_script<ForestParallaxScript>(
begin_x - 400, begin_x + 3000 + 400, unique_bg_name);
this->add_background(scn, begin_x, unique_bg_name);