Python experiment · Game systems
Scrolling space game
A Space Invaders-style game I made while learning Python, with player movement, projectiles, enemies, collision, and scrolling scenery.

Starting pointWhy I made it
I used a familiar arcade game as a reason to learn how input, state, timing, drawing, and collision rules fit together in one program.
The player moves with the keyboard and fires with the mouse. Enemies enter the scene, projectiles move independently, collisions remove targets, and the environment scrolls to create a larger sense of motion than the window alone can provide.
CodeHow it works
The game loop collects input, advances the world, checks interactions, and redraws the result. Separating those responsibilities makes it easier to change enemy behaviour or add a projectile without turning every new feature into a special case.
- Keeping game state separate from drawing made the rules easier to change.
- Reusable entities helped with repeated movement and collision behaviour.
- Small changes to timing and speed made a noticeable difference to how it felt.
ResultThe playable version
This is a learning project rather than a finished game. The player can start, move through the scene, shoot, and encounter enemies while the background scrolls.




