How lowiecool/project_eit works
This is a small, single-file Pygame Space Invaders game. The main loop handles keyboard events, advances gameplay, checks collisions, and draws the frame; supporting routines in the same file manage entities, scoring, level progression, and game-over behavior. The excerpts show entity asset loading and sound playback, but omit parts of initialization and the loop, so the graph avoids inferring those connections.
Main entry points: main.py Main Game Loop · sounds Sound Files
Components 12
Game Runtime
- Main Game Loop
main.py
Gameplay Systems
- Player Ship
main.py - Enemies
main.py - Weapons
main.py - Collision Handling
main.py - Score and Levels
main.py - Game Over
main.py
Presentation and Audio
- Sound Effects
main.py - Scoreboard
main.py
Game Assets
- Sound Files
res/sounds
Other components
- Pygame
- Player
Connections 17
- Player → Main Game Loop: provides input
main.py - Main Game Loop → Pygame: polls events
main.py - Main Game Loop → Player Ship: updates and draws
main.py - Main Game Loop → Enemies: updates and draws
main.py - Main Game Loop → Weapons: updates and draws
main.py - Main Game Loop → Collision Handling: checks collisions
main.py - Collision Handling → Score and Levels: kills enemies
main.py - Collision Handling → Game Over: kills player
main.py - Main Game Loop → Scoreboard: renders
main.py - Player Ship → Pygame: loads image
main.py - Enemies → Pygame: loads image
main.py - Weapons → Pygame: loads image
main.py - Player Ship → Sound Effects: loads kill sound
main.py - Enemies → Sound Effects: loads kill sound
main.py - Weapons → Sound Effects: loads fire sound
main.py - Sound Effects → Sound Files: loads and plays
main.py - Game Over → Scoreboard: renders
main.py