How abdelghafourelmazouny-code/snoopy_magique_show_game_c works
La revanche de Snoopy is a C99 terminal game. The player chooses a new game, saved game, password level, scores, or rules from the menu; gameplay then handles movement, timed hazards, level completion, lives, and saving or scoring. The graph separates game orchestration, board rules, terminal interaction, and progression/persistence. Relationships are limited to calls visible in the excerpts or documented capabilities; unsampled implementations are represented only where the tree and README establish their role.
Main entry points: game.c Game loop · main.c Application entry · save.c Save handling · score.c Score service
Components 18
Game orchestration
- Application entry
src/main.c - Game loop
src/game.c
Board and rules
- Level loading
src/level.c - Snoopy movement
src/player.c - Block behavior
src/blocks.c - Ball movement
src/ball.c - Timer and pause
src/timer.c - Game state model
include/types.h
Terminal interface
- Console services
src/console.c - Menu
src/menu.c - Board display
src/display.c
Progression and persistence
- Level passwords
src/password.c - Save handling
src/save.c - Save files
saves - Score service
src/score.c - Score records
data - Level files
levels
Other components
- Player
Connections 21
- Player → Application entry: chooses option
README.md - Application entry → Console services: initializes
src/main.c - Application entry → Menu: reads choice
src/main.c - Application entry → Game loop: starts game
src/main.c - Application entry → Save handling: loads save
src/main.c - Application entry → Level passwords: checks password
src/main.c - Application entry → Score service: shows scores
src/main.c - Application entry → Board display: shows rules
src/main.c - Game loop → Console services: reads input
src/game.c - Game loop → Board display: renders board
src/game.c - Game loop → Level loading: loads level
src/game.c - Game loop → Snoopy movement: moves Snoopy
src/game.c - Game loop → Block behavior: updates blocks
src/game.c - Game loop → Ball movement: moves balls
src/game.c - Game loop → Timer and pause: updates timer
src/game.c - Game loop → Save handling: saves game
src/game.c - Game loop → Level passwords: generates password
src/game.c - Game loop → Score service: records score
src/game.c - Level loading → Level files: reads levels
README.md - Save handling → Save files: reads and writes
README.md - Score service → Score records: reads and writes
README.md