chore: update readme

This commit is contained in:
thetek 2023-06-18 18:33:06 +02:00
parent 04e65b1ea3
commit 44859624a3
1 changed files with 27 additions and 1 deletions

View File

@ -1 +1,27 @@
# Invaders
# Rust + WebGL Rectangle
Drawing a colored rectangle with Rust, WebAssembly and WebGL. The extensively
commented main code is located in `src/draw.rs`.
## Usage
Initial setup:
```sh
wasm-pack build
cd www
npm install
```
Compile `.wasm` file:
```sh
wasm-pack build
```
Run development server:
```sh
cd www
npm run start
```