GithubHelp home page GithubHelp logo

rodrigodd / cpal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rustaudio/cpal

0.0 0.0 0.0 8.67 MB

Cross-platform audio I/O library in pure Rust

License: Apache License 2.0

Rust 99.64% C++ 0.28% Dockerfile 0.08%

cpal's Introduction

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

cpal's People

Contributors

alexmoon avatar artemgr avatar dependabot[bot] avatar derekdreery avatar dheijl avatar diwic avatar enfipy avatar est31 avatar freesig avatar gentoid avatar hybrideidolon avatar ishitatsuyuki avatar jansol avatar joshuabatty avatar jwestfall69 avatar luni-4 avatar maxded avatar michaelhills avatar mitchmindtree avatar msiglreith avatar plietar avatar psych0d0g avatar ralith avatar retep998 avatar rfwatson avatar shockham avatar simlay avatar thiolliere avatar tomaka avatar xmac94x avatar

Watchers

 avatar

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.