GithubHelp home page GithubHelp logo

Space Invaders Emulator

This is a emulator of the classic arcade game, Space Invaders (1978), write in Rust.

Controls

'Z' is Shoot, 'Left' and 'Right' arrows to move, 'Return' for 1 Player Start button, and 'Backspace' for the 2 Player Button.

And for binary builds with the debug feature enable, press Escape to enter the debug mode.

debugger

When in debug mode, you can enter commands in the terminal:

  • run to exit the debug mode;
  • bp <HEX ADRESS> to place a breakpoint at an address;
  • runto <HEX ADRESS> to run until the given address.

Compile

To compile and run to Windows, Linux or macOS, run the command cargo run --release.

Or cargo run --release --features=debug to enable the intel 8080 debugger.

WebAssembly

To compile to WebAssembly, you can use wasm-pack with the command:

wasm-pack build --target web --out-dir ../pkg  ./space-invaders-wasm

You can run it in a webpage by starting a http server in the root directory. You can use python for that, for example:

py -m http.server

Rodrigo Batista de Moraes's Projects

bf-compiler icon bf-compiler

Interpreted, optimized, JITed and compiled implementations of the Brainfuck lang.

chasm-rs icon chasm-rs

A simple compile-to-WebAssembly language rewritten in Rust

cpal icon cpal

Cross-platform audio I/O library in pure Rust

cpu-mips icon cpu-mips

Processador MIPS para o Trabalho final da disciplina ELTD05 da Universidade Federal de Itajubá

dmg-sim icon dmg-sim

SystemVerilog files for simulating a complete Game Boy system with DMG-CPU B chip

evolve icon evolve

An incremental game about evolving a civilization

gameroy icon gameroy

A Game Boy emulator, disassembler and debugger, written in Rust

gitui icon gitui

Blazing 💥 fast terminal-ui for git written in rust 🦀

giui icon giui

A normal rust gui crate

glow icon glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code

instant icon instant

A std::time::Instant replacement that works on WASM too.

jitboy icon jitboy

A Game Boy emulator with dynamic recompilation (JIT)

jni-rs icon jni-rs

Rust bindings to the Java Native Interface — JNI

ndk icon ndk

Rust bindings to the Android NDK

neo-tree.nvim icon neo-tree.nvim

Neovim plugin to manage the file system and other tree like structures.

nlw-capsula-do-tempo icon nlw-capsula-do-tempo

Projeto da NLW Spacetime, utilizando as tecnologias NextJs, Tailwind CSS, Prisma, Fastify, Expo, OAuth e React Native.

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.