Giter Club home page Giter Club logo

rocket_wasm's Introduction

Rocket on WASM

An adapted version of the Rocket game, running on WASM!

Play now or read the blog post about the development of this WASM version.

Screenshot

Screenshot

How to play

As you can see in the screenshot, you are the red rocket and have to save the world from the yellow invaders. To do so, you can use the following controls:

Keyboard Action
Boost
Rotate left
Rotate right
Space Shoot

Compiling and running

Follow the steps on the hellorust website in order to set up everything. Besides the wasm32-unknown-unknown target, the post_build.py script requires python 2.7 and wasm-gc.

After setting things up, you should be able to compile the code using the commands below:

cargo build --release --target wasm32-unknown-unknown
python post_build.py

The generated wasm will be copied to the html directory and wasm-gced.

python -m SimpleHTTPServer

Try opening http://localhost:8000/ on your browser to check whether it works.

rocket_wasm's People

Contributors

alexcrichton avatar aochagavia avatar king6cong avatar unship avatar

Watchers

 avatar  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.