aboutsummaryrefslogtreecommitdiff
path: root/game/background/HallwaySubScene.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/HallwaySubScene.h
parentf5d2ef9a5a335509f6ade05470938f0fbbbb74ad (diff)
parente7599e648ea24d5e8a27bd9f4f162ef1a7c53d21 (diff)
Merge branch 'max/game' of github.com:lonkaars/crepe
Diffstat (limited to 'game/background/HallwaySubScene.h')
-rw-r--r--game/background/HallwaySubScene.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/game/background/HallwaySubScene.h b/game/background/HallwaySubScene.h
new file mode 100644
index 0000000..acc9329
--- /dev/null
+++ b/game/background/HallwaySubScene.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <crepe/types.h>
+
+namespace crepe {
+class Scene;
+class GameObject;
+class Color;
+} // namespace crepe
+
+class HallwaySubScene {
+public:
+ float create(crepe::Scene & scn, float begin_x, unsigned int sector_num,
+ crepe::Color sector_color);
+
+private:
+ void add_lamp(crepe::GameObject & obj, crepe::vec2 offset, unsigned int fps = 10);
+
+ void add_sector_number(crepe::GameObject & obj, crepe::vec2 offset,
+ unsigned int sector_num, crepe::Color sector_color);
+};