aboutsummaryrefslogtreecommitdiff
path: root/game/background/BackgroundSubScene.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2024-12-21 11:19:52 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2024-12-21 11:19:52 +0100
commit999e1b928aa632e80521651f14013c267af604dc (patch)
treedbb30be31d332cbc53dcbb9ab498856c80162e8c /game/background/BackgroundSubScene.cpp
parent0ba89eff9283d5f9f59fa763a19f4616f1c66d74 (diff)
Moved file to sub directory
Diffstat (limited to 'game/background/BackgroundSubScene.cpp')
-rw-r--r--game/background/BackgroundSubScene.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/game/background/BackgroundSubScene.cpp b/game/background/BackgroundSubScene.cpp
new file mode 100644
index 0000000..6fdc598
--- /dev/null
+++ b/game/background/BackgroundSubScene.cpp
@@ -0,0 +1,37 @@
+#include "BackgroundSubScene.h"
+#include "AquariumSubScene.h"
+#include "ForestSubScene.h"
+#include "HallwaySubScene.h"
+#include "StartSubScene.h"
+
+#include <crepe/api/Color.h>
+
+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);
+}