[go: up one dir, main page]

Skip to content

A Space Invaders emulator written in C++ using SDL2 and SDL_mixer

Notifications You must be signed in to change notification settings

encephalalgia/space-invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👾 Space Invaders 👾

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!

Spacefight Invaders attract mode gif

Controls

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

Usage

Dependencies

  • A c++ compiler
  • CMake version 3.26+
  • CMake build generator
  • SDL2
  • SDL_mixer

Build & Run

  1. Download the source code
    git clone https://github.com/encephalalgia/space-invaders.git
    cd space-invaders
    
  2. Optional: If you want, you can customize the colors of the emulator by changing the color code constants defined in Display.h.
  3. Build
    cmake -S . -B build -G <generator> -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_PREFIX_PATH=<path/to/sdl>
    cmake --build build --config Release
    
  4. Add the ROMs and sound files to the assets folder.
  5. Run the executable
    build/src/space-invaders.exe <PARAMETERS...>
    

DIP Switch

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

Resources

Computer Archeology Space Invaders

About

A Space Invaders emulator written in C++ using SDL2 and SDL_mixer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published