GithubHelp home page GithubHelp logo

superzazu / invaders Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 7.0 546 KB

A Space Invaders emulator written in C99 with the SDL2 and SDL2_mixer.

C 88.79% CMake 11.21%
space invaders 8080 emulator i8080

invaders's Introduction

Space Invaders

A Space Invaders emulator written in C99 with the SDL2.

space invaders demo gif

Features:

  • full emulation
  • sound
  • colourised screen (can also play in black & white)
  • two-players mode
  • joystick support
  • web export to HTML5 using emscripten
  • high score automatically saved

How to build it

You should be able to launch it by running:

mkdir build
cd build
cmake .. -DROMS_DIR=/path/to/roms
make
./invaders

It has been tested on macOS 10.13 with clang and debian 8 with gcc 5.

You'll need to have the files invaders.e, invaders.f, invaders.g and invaders.h. You can also drop the Space Invaders wav files in the same folder if you have them.

You can also build it for the web if you have emscripten installed (for macOS, install with brew install emscripten). Just replace cmake .. with emcmake cmake .. to obtain four files invaders.(js|wasm|data|html) which can be hosted on a web server.

How to play

Computer Space Invaders
c insert a coin
return start a game
2 start a game in two-player mode
left move the player left
right move the player right
space shoot
t tilt the machine
F9 toggle between black and white / coloured mode

invaders's People

Contributors

superzazu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

invaders's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.