How seiya0106/maze works
This repository contains a small Siv3D maze game. During each frame, the game draws the generated maze, processes arrow-key movement while the player is exploring, and detects arrival at the goal; after clearing, Space resets the maze and player for another run. The Stage implementation owns maze generation, drawing, and movement checks, while Player owns position, input handling, and its sprite. The README documents the user-facing controls; the graph is limited to the sampled game source and documented behavior.
Main entry points: Main.cpp Frame loop · Stage.cpp Maze stage · Player.cpp Player state
Components 6
Game flow
- Frame loop
projects/Game/src/Main.cpp
Maze gameplay
- Maze stage
projects/Game/src/Stage.cpp - Player state
projects/Game/src/Player.cpp
Game display
- Maze drawing
projects/Game/src/Stage.cpp - Sprite drawing
projects/Game/src/Player.cpp
Other components
- Player
Connections 9
- Player → Frame loop: controls
README.md - Frame loop → Maze drawing: draws maze
projects/Game/src/Main.cpp - Frame loop → Player state: updates
projects/Game/src/Main.cpp - Player state → Maze stage: checks movement
projects/Game/src/Player.cpp - Frame loop → Maze stage: checks goal
projects/Game/src/Main.cpp - Frame loop → Maze stage: resets maze
projects/Game/src/Main.cpp - Frame loop → Player state: resets position
projects/Game/src/Main.cpp - Frame loop → Sprite drawing: draws sprite
projects/Game/src/Main.cpp - Frame loop → Maze stage: gets cell center
projects/Game/src/Main.cpp