How gabriel-br2/star_wars_game works
This repository is a desktop asteroid-escape game: the player enters through the opening/menu flow, then pilots the Falcon through an asteroid field, firing lasers and managing ship health toward a win or loss. The game logic is concentrated in main.py; graphics.py supplies the drawing and input primitives, while resource/ holds game assets. The excerpts show the intro/menu calls, collision helpers, and graphics usage; README statements support the broader gameplay capabilities, but unsampled implementation details and some transitions are not inferred.
Main entry points: main.py Game loop · graphics.py Graphics primitives · resource Images and sprites
Components 14
Intro and menus
- Opening crawl
main.py - Main menu
main.py - Pause menu
main.py - Win or lose
main.py
Gameplay systems
- Game loop
main.py - Falcon movement
main.py - Asteroid field
main.py - Laser firing
main.py - Collision checks
main.py - Ship health
main.py - Hit effects
main.py
Graphics runtime
- Graphics primitives
graphics.py
Game assets
- Images and sprites
resource
Other components
- Pilot
Connections 18
- Pilot → Opening crawl: starts game
README.md - Opening crawl → Main menu: continues to
main.py - Pilot → Main menu: selects options
README.md - Main menu → Game loop: starts play
README.md - Pilot → Game loop: controls
README.md - Game loop → Falcon movement: moves
README.md - Game loop → Asteroid field: faces waves
README.md - Game loop → Laser firing: fires
README.md - Game loop → Collision checks: checks hits
main.py - Collision checks → Ship health: updates
README.md - Collision checks → Hit effects: triggers effect
main.py - Game loop → Win or lose: ends in
README.md - Pilot → Pause menu: pauses play
README.md - Opening crawl → Graphics primitives: draws with
main.py - Main menu → Graphics primitives: draws with
main.py - Game loop → Graphics primitives: renders with
main.py - Opening crawl → Images and sprites: uses images
README.md - Game loop → Images and sprites: uses sprites
README.md