How abdulazizalrashidi/glimmer works
Glimmer is a Rust neon maze-chase game. The player’s input is polled by the app, which advances a fixed-step game session; the session presents the resulting state through the renderer and audio, while scores and settings persist locally. The game logic is deliberately headless and reports events that presentation systems can react to. The graph also includes the documented demo, interludes, how-to, options, and score screens. Relationships use README statements and source-index references; unsampled screen and runtime details are not inferred beyond those references.
Main entry points: app.rs App dispatcher · session.rs Game session · game.rs Game rules · mod.rs World renderer
Components 25
App and screens
- Input mapping
src/input.rs - App dispatcher
src/app.rs - Game session
src/app/session.rs - Title and menus
src/app/menu.rs - Title screen
src/app/title.rs - How-to screen
src/app/howto.rs - Animated interludes
src/app/interlude.rs - Options screen
src/app/options.rs - High-score screen
src/app/scores.rs
Game simulation
- Game rules
src/game.rs - Player movement
src/player.rs - Shade AI
src/shade.rs - Actor movement
src/actor.rs - Maze rules
src/maze.rs - Built-in mazes
src/mazes.rs - Demo autopilot
src/autopilot.rs
Rendering and audio
- World renderer
src/render/mod.rs - Procedural sprites
src/render/sprites.rs - Particle effects
src/render/particles.rs - Generated font
src/font.rs - Game audio bridge
src/app/sound.rs - Audio playback
src/audio.rs - Procedural sound
src/synth.rs
Local persistence
- Settings and scores
src/save.rs
Other components
- Player
Connections 28
- Player → Input mapping: provides controls
README.md - Input mapping → App dispatcher: supplies actions
src/app.rs - App dispatcher → Game session: dispatches session
src/app.rs - App dispatcher → Title screen: routes screens
src/app.rs - App dispatcher → Title and menus: uses menu UI
src/app.rs - App dispatcher → How-to screen: routes screens
src/app.rs - App dispatcher → Animated interludes: routes screens
src/app.rs - App dispatcher → Options screen: routes screens
src/app.rs - App dispatcher → High-score screen: routes screens
src/app.rs - Game session → Game rules: advances simulation
src/app/session.rs - Game session → World renderer: renders state
src/app/session.rs - Game session → Demo autopilot: uses demo play
src/app/session.rs - Game rules → Player movement: updates player
src/game.rs - Game rules → Shade AI: updates shades
src/game.rs - Game rules → Maze rules: uses maze rules
src/game.rs - Game rules → Actor movement: uses movement
src/game.rs - Maze rules → Built-in mazes: loads built-ins
src/maze.rs - Demo autopilot → Game rules: plays simulation
src/autopilot.rs - World renderer → Procedural sprites: draws sprites
src/render/mod.rs - World renderer → Particle effects: updates effects
src/render/mod.rs - World renderer → Generated font: draws text
src/render/mod.rs - Game session → Game audio bridge: handles game events
src/app/session.rs - Game audio bridge → Audio playback: plays effects
src/app/sound.rs - Game audio bridge → Procedural sound: uses generated audio
src/app/sound.rs - App dispatcher → Settings and scores: loads and saves
src/app.rs - Options screen → Settings and scores: persists settings
src/app/options.rs - High-score screen → Settings and scores: reads and writes scores
src/app/scores.rs - Game session → Settings and scores: saves game score
src/app/session.rs