Space Invaders
A classic arcade recreation built in C++ and Qt
This recreation of the iconic game Space Invaders was made in 2024 as a two-person student project for an object-oriented programming course. Our goal was to get the same feel as the original game while using C++ and Qt for the first time.
Contributions
I was responsible for the core gameplay logic, the UI, and the game states.
On the gameplay side, I designed the enemy wave behavior so the whole group moves together, goes down when touching a wall, and ignores destroyed aliens when checking screen edges. I also implemented the three enemy tiers with different point values, randomized enemy fire, player shooting cooldowns, and collision handling (including mid-air projectile-on-projectile collisions and hit feedback).
For the interface, I put together the main menu, retro pixel typography, separate victory and game-over screens, and a local top-3 leaderboard saved to a text file, handling edge cases like missing nicknames or incomplete runs.
Working with Qt
The main challenge of the project was having to use a small graphics library provided by our instructor, which relied on Qt widgets and timers rather than a real game engine or rendering canvas.
Every alien, heart, and projectile being an individual widget was far from optimal for an arcade game, and led to most of the problems we encountered, such as projectiles flickering in the top-left corner on spawn or off-screen objects accumulating if not cleaned up properly. Working around those limitations was a good exercise in object-oriented design and managing object lifecycles in C++.