How thetsdz/maze-shooter works
MAZE-SHOOTER is a C/Raylib first-person maze shooter. Its main runtime moves from menu selection into a generated maze and game updates, where player and AI combat, pickups, and projectiles determine progression; rendering and audio present the state, while save/load and LAN multiplayer provide alternate play paths. The README documents the major capabilities. The source index identifies the main loop’s subsystem references and several cross-module references, but unsampled implementations limit certainty about some call details.
Main entry points: main.c Game loop · updategame.c Game-state update · dessin.c 3D and UI rendering · bot.c Bot AI
Components 25
Game runtime
- Game loop
src/main.c - Main menu
src/menu.c - Game options
src/option.c - Game-state update
src/updategame.c - End screens
src/endGame.c
World and combat
- Maze generation
src/level.c - Player control
src/player.c - Weapon handling
src/arme.c - Projectile combat
src/projectile.c - Bot AI
src/bot.c - Pathfinding
src/recherche.c - Boss combat
src/boss.c - Chests and pickups
src/coffre.c
Presentation
- 3D and UI rendering
src/dessin.c - Textures and themes
src/texture.c - Music and effects
src/audio.c - Raylib rendering API
lib/Raylib/include/raylib.h - Raylib math API
lib/Raylib/include/raymath.h - Raylib GL layer
lib/Raylib/include/rlgl.h
Persistence and LAN
- Save and load
src/sauvegarde.c - Integrity checksum
src/cryptage.c - LAN gameplay
src/multijoueur.c - Sockets and discovery
src/reseau.c
Other components
- Player
- LAN peer
Connections 28
- Player → Game loop: starts play
- Game loop → Main menu: dispatches screens
src/main.c - Main menu → Game loop: selects screen
src/menu.c - Game loop → Game options: opens options
src/main.c - Game loop → Maze generation: starts maze
src/main.c - Game loop → Game-state update: updates state
src/main.c - Game-state update → Player control: updates player
src/updategame.c - Game-state update → Bot AI: updates bots
src/updategame.c - Game-state update → Boss combat: updates boss
src/updategame.c - Game-state update → Projectile combat: updates shots
src/updategame.c - Game-state update → Chests and pickups: updates chests
src/updategame.c - Bot AI → Pathfinding: finds route
src/bot.c - Bot AI → Weapon handling: uses weapons
src/bot.c - Player control → Weapon handling: handles weapons
src/player.c - Projectile combat → Bot AI: checks targets
src/projectile.c - Game loop → End screens: shows outcome
src/main.c - Game loop → 3D and UI rendering: renders frames
src/main.c - 3D and UI rendering → Textures and themes: uses assets
src/dessin.c - 3D and UI rendering → Raylib rendering API: draws through
src/dessin.c - 3D and UI rendering → Raylib math API: uses math
src/dessin.c - Textures and themes → Raylib GL layer: uses GL layer
src/texture.c - Game loop → Music and effects: manages audio
src/main.c - Game loop → Save and load: saves or loads
src/main.c - Save and load → Integrity checksum: checks integrity
src/sauvegarde.c - Game loop → LAN gameplay: starts LAN mode
src/main.c - LAN gameplay → Sockets and discovery: exchanges packets
src/multijoueur.c - LAN peer → Sockets and discovery: connects or discovers
- LAN gameplay → 3D and UI rendering: draws multiplayer
src/multijoueur.c