chore: update readme
This commit is contained in:
parent
04e65b1ea3
commit
44859624a3
28
README.md
28
README.md
|
@ -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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue