aboutsummaryrefslogtreecommitdiff
path: root/game/background/StartSubScene.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 11:53:15 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 11:53:15 +0100
commit794facac7a7a1886bc2e0fea4c19c1106d6b458e (patch)
tree9518ed7903cf1b38af293cfd60146376f1016504 /game/background/StartSubScene.h
parentf5d2ef9a5a335509f6ade05470938f0fbbbb74ad (diff)
parente7599e648ea24d5e8a27bd9f4f162ef1a7c53d21 (diff)
Merge branch 'max/game' of github.com:lonkaars/crepe
Diffstat (limited to 'game/background/StartSubScene.h')
-rw-r--r--game/background/StartSubScene.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/game/background/StartSubScene.h b/game/background/StartSubScene.h
new file mode 100644
index 0000000..c83e3d5
--- /dev/null
+++ b/game/background/StartSubScene.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <crepe/types.h>
+
+namespace crepe {
+class Scene;
+class GameObject;
+} // namespace crepe
+
+class StartSubScene {
+public:
+ float create(crepe::Scene & scn, float begin_x);
+
+private:
+ void add_lamp(crepe::GameObject & obj, crepe::vec2 offset, unsigned int fps = 10);
+ void add_table(crepe::GameObject & obj, crepe::vec2 offset);
+ void add_light(crepe::GameObject & obj, crepe::vec2 offset);
+ void add_jetpack_stand(crepe::GameObject & obj, crepe::vec2 offset);
+ void create_wall_fragments(crepe::Scene & scn, float begin_x);
+};