Space Invaders
• 186 words • 0'55
The classic Space Invaders in C, with an MVC architecture and two interfaces: SDL3 and ncurses.
A reimplementation of the arcade game Space Invaders in C, built in a pair with Chamseddine Adaadour for a university project (SAE). The game follows a strict Model-View-Controller architecture and offers two interchangeable interfaces: a graphical version in SDL3 and a version playable right in the terminal with ncurses.


Features
- 3 types of enemies, a mystery UFO and 4 destructible shields.
- Lives, and level progression with increasing difficulty.
- Animations (sprites, explosions, screen shake) and sound effects with SDL3_mixer.
- Full menu, pause, saving and loading a game.
- 60 FPS game loop with delta time, and a display that adapts to the size of the window or terminal.
- Code documented with Doxygen and checked with Valgrind.
My contributions
- Creating the SDL game window and integrating the sprites.
- Player shooting and collision detection between shots and invaders.
- On-screen text rendering with SDL_ttf.
- Blur effect on the game over screen.
- Tweaks to the ncurses display.