This is an emulator of the 1978 Taito arcade machine Space Invaders running on top of my Intel8080 emulator. It comes with color, sound, and high score persistence!
| Key | Action |
|---|---|
| C | deposit credits |
| 1 | start the game in one-player mode |
| 2 | start the game in two-player mode |
| left arrow | move left |
| right arrow | move right |
| space | shoot |
| T | tilt the machine |
- Download the source code
git clone https://github.com/camelliya/space-invaders.git cd space-invaders - Optional: If you want, you can customize the colors of the emulator by changing the color code constants defined in Display.h.
- Build
cmake -S . -B build -G <generator> -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_PREFIX_PATH=<path/to/sdl> cmake --build build --config Release - Add the ROMs and sound files to the assets folder.
- Run the executable
build/src/space-invaders.exe <PARAMETERS...>
Replace <PARAMETERS...> with zero or more of the following:
| Parameter | Range | Default | Description |
|---|---|---|---|
-lives <n> |
[3,6] | 3 | changes the number of lives you start with |
-extra_life <n> |
1500 or 1000 | 1500 | changes the amount of points needed to gain an extra life |
