How steve0012345/space-shooter works
Space-Shooter is a fullscreen Pygame arcade game. The user launches main.py, navigates the menu, and starts game.py; gameplay handles movement, shooting, alien collisions, score display, and game-over/high-score updates. The graph reflects the sampled control flow and README; image files referenced by source are absent from the supplied tree, so they are not represented.
Main entry points: gameMockup.py Menu controller · game.py Game loop · main.py Application entry · menu.py Menu and buttons
Components 11
Entry and menu
- Application entry
main.py - Menu controller
gameMockup.py - Menu and buttons
menu.py
Arcade gameplay
- Game loop
game.py
State and media
- High-score file
highest_score - Menu music
Corazon_Instrumental.mp3 - Game music
Corazon.mp3 - Collision sound
mixkit-trailer-screaming-people-annihilation-351.wav
Other components
- Player
- Keyboard and mouse
- Pygame runtime
Connections 14
- Player → Application entry: launches
- Application entry → Menu controller: creates and runs
- Menu controller → Menu and buttons: creates buttons
- Player → Keyboard and mouse: provides input
- Keyboard and mouse → Menu controller: menu events
- Keyboard and mouse → Game loop: game events
- Menu controller → Pygame runtime: draws and polls
- Game loop → Pygame runtime: draws and polls
- Menu controller → Menu and buttons: draws buttons
- Menu controller → Game loop: starts process
- Game loop → High-score file: reads and updates
- Menu controller → Menu music: plays
- Game loop → Game music: plays
- Game loop → Collision sound: plays on collision