invaders/README.md

44 lines
601 B
Markdown
Raw Permalink Normal View History

2023-05-20 18:33:46 +02:00
# Invaders
2023-06-21 20:41:18 +02:00
A simple Space Invaders clone written using Rust, WebAssembly and WebGL for a
university project.
2023-06-29 10:06:50 +02:00
**The game can be played [here](https://invaders.thetek.de/)**.
2023-06-21 20:41:18 +02:00
## Requirements
- Standard Rust toolchain (`rustc` and `cargo`)
- [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)
- NodeJS and npm
## Building and Running
Initial setup:
```sh
$ wasm-pack build
$ cd www
$ npm install
```
Compile WebAssembly:
```sh
$ wasm-pack build
```
Run the dev server:
```sh
$ cd www
$ npm run start
```
Run the production server:
```sh
$ cd www
$ npm run build
$ npm run prod
```