What happens when programming meets puzzle-solving and survival? The answer is SEIBISHI, a 2D maze-survival game developed in C using the raylib graphics library. Designed to challenge strategic thinking and quick decisions, it turns a simple maze into a contest of movement, timing, and survival.

The gameplay
SEIBISHI takes players through 10 increasingly challenging levels, each with maze layouts, obstacles, objectives, and enemy encounters. Navigate the board, collect goals, avoid enemies, and manage limited health. Every move matters: a wrong turn can bring an enemy closer, while a carefully planned route can protect a run from falling apart.

Smarter enemies, greater challenges
Enemy behavior changes as players advance. Early levels combine random movement with direct pursuit when the player is spotted. Later levels introduce more persistent chasing, and higher levels add predictive movement intended to anticipate the player’s direction. Players must adapt instead of relying on one escape plan.

Difficulty and scoring
Three difficulty modes, Easy, Normal, and Hard, offer different levels of pressure. The scoring system rewards collecting goals while accounting for movement, asking players to balance efficient routes against the risk of enemy encounters.

Built with C and raylib
Under the maze, SEIBISHI brings together several game-development systems:
- Game-state management: distinct screens for the menu, gameplay, instructions, settings, leaderboard, credits, and other states.
- Enemy AI: line-of-sight detection, pursuit behavior, random movement, and predictive targeting.
- Data persistence: save/load functionality, player profiles, settings, and leaderboard records.
- Collision detection: grid-based movement and obstacle checks.
- Audio and interface: sound effects, music controls, interactive menus, and visual feedback.


More than a maze
Player profiles, a persistent leaderboard, configurable settings, and a credits screen extend the experience beyond the core puzzle. Together, these features make SEIBISHI a practical exploration of algorithms, file handling, user interaction, and game design in a compact C project.
Can you survive all 10 levels?
SEIBISHI is where every step becomes a decision and every level becomes a new test of survival.
Think fast. Move smart. Survive SEIBISHI.
EXPLORE THE SOURCE CODE ↗