This is an emulation of the 1978 arcade machine used to play Space Invaders written in C. The emulator consists of two parts: the Intel 8080 CPU found inside the machine and the rest of the hardware necessary to run the game.
First of all the project requires the ROM files for the game. These are copyrighted and can't be uploaded with the project, but can be found online. In the project folder they should be saved in a folder called /res/roms/. The following files are required:
- invaders.e
- invaders.f
- invaders.g
- invaders.h
Building the project requires a C compiler and is easiest built using make.
- SDL2
-
Get SDL2 library:
sudo apt install libsdl2-dev
-
In project folder, run:
-
gcc:
make && ./spaceinvaders
-
clang or other compiler:
make CC=clang && ./spaceinvaders
-
ACTION | KEY |
---|---|
Insert Coin | c |
Start 1P | return |
Start 2P | 2 |
Shoot | Space |
Move Left | ← |
Move Right | → |
Quit | q |