aochagavia/rocket_wasm
حول
The Rocket game, now compiling to WASM
الألعاب والمحاكاةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلRocket on WASM
An adapted version of the Rocket game, running on WASM!
Read the blog post about the development of this WASM version (includes an embedded canvas where you can play the game).
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.
Related projects
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…