/space_invaders

A Space Invaders emulator written in C

Primary LanguageCMIT LicenseMIT

Space Invaders

A Space Invaders emulator written in C, following Emulator 101.

Requirements

Only tested on Linux and macOS. On macOS all you need is to run

brew install sdl2

On linux, you most likely need to install both SDL2 and SDL2-devel.

Usage

Place the invaders.e, invaders.f, invaders.g and invaders.h files on the game_files directory and then run the game with:

make run

The controls are:

  • C to insert coins
  • Return to start the game once coins are inserted
  • Arrows to move
  • Space to shoot

Only supports player one for now.

Tests

The 8080 processor test structure is essentially copied from this 8080 emulator. To run all tests:

make run_tests

TODO

Play the game sound.

Other References