From 8100a6ce6380e6efe701cffc0b628fc412f4e13b Mon Sep 17 00:00:00 2001 From: max-001 Date: Thu, 19 Dec 2024 10:54:37 +0100 Subject: Renamed classes (added correct suffix) --- src/example/BackgroundSubScene.cpp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/example/BackgroundSubScene.cpp (limited to 'src/example/BackgroundSubScene.cpp') diff --git a/src/example/BackgroundSubScene.cpp b/src/example/BackgroundSubScene.cpp new file mode 100644 index 0000000..6fdc598 --- /dev/null +++ b/src/example/BackgroundSubScene.cpp @@ -0,0 +1,37 @@ +#include "BackgroundSubScene.h" +#include "AquariumSubScene.h" +#include "ForestSubScene.h" +#include "HallwaySubScene.h" +#include "StartSubScene.h" + +#include + +using namespace crepe; +using namespace std; + +BackgroundSubScene::BackgroundSubScene(Scene & scn) { + StartSubScene start; + HallwaySubScene hallway; + ForestSubScene forest; + AquariumSubScene aquarium; + + float begin_x = 400; + + begin_x = start.create(scn, begin_x); + + begin_x = hallway.create(scn, begin_x, 1, Color::YELLOW); + + begin_x = forest.create(scn, begin_x, "1"); + + begin_x = hallway.create(scn, begin_x, 2, Color::MAGENTA); + + begin_x = aquarium.create(scn, begin_x); + + begin_x = hallway.create(scn, begin_x, 3, Color::CYAN); + + begin_x = forest.create(scn, begin_x, "2"); + + begin_x = hallway.create(scn, begin_x, 4, Color::GREEN); + + begin_x = aquarium.create(scn, begin_x); +} -- cgit v1.2.3