A simple Space Invaders clone implemented in Rust using WebAssembly and WebGL
https://invaders.thetek.de/
thetek cc7ce92253 | ||
---|---|---|
src | ||
www | ||
.gitignore | ||
Cargo.toml | ||
LICENSE | ||
README.md |
README.md
Invaders
A simple Space Invaders clone written using Rust, WebAssembly and WebGL for a university project.
The game can be played here.
Requirements
- Standard Rust toolchain (
rustc
andcargo
) - wasm-pack
- NodeJS and npm
Building and Running
Initial setup:
$ wasm-pack build
$ cd www
$ npm install
Compile WebAssembly:
$ wasm-pack build
Run the dev server:
$ cd www
$ npm run start
Run the production server:
$ cd www
$ npm run build
$ npm run prod