Browse Source

updated readme

Inderjit Gill 4 months ago
parent
commit
471669cf11
1 changed files with 10 additions and 34 deletions
  1. 10
    34
      README.md

+ 10
- 34
README.md View File

@@ -8,43 +8,19 @@ A Game
8 8
 ## ensure that the correct toolchain is installed
9 9
 ```sh
10 10
 $ rustup update
11
-$ rustup install nightly
12
-$ rustup target add wasm32-unknown-unknown --toolchain nightly
13
-$ cargo +nightly install wasm-bindgen-cli
14
-
15
-$ npm install
16
-$ npm run build:server
17
-```
18
-
19
-## during dev
20
-```sh
21
-$ npm run build:dev:wasm
22
-$ npm run build:dev
23
-$ npm run serve:dev
24
-```
25
-
26
-can now visit http://localhost:8080
27
-
28
-
29
-## for 'release'
30
-```sh
31
-$ npm run build:release
32
-$ npm run serve:release
11
+$ rustup target add wasm32-unknown-unknown
12
+$ cargo install wasm-bindgen-cli
33 13
 ```
34 14
 
35
-can now visit http://localhost:3000
15
+build with:
16
+$ ./build.sh
36 17
 
18
+build release version with:
19
+$ ./build.sh release
37 20
 
38
-# misc. notes
21
+once built, launch a server in /www
22
+$ cd www
23
+$ basic-http-server
39 24
 
40
-## graphics
41
-  - origin is in the bottom left
42
-  - rendering order for a square is: bl, br, tl, tr
43 25
 
44
-## file structure
45
-  /dist -> destination directory for webpack output (npm run build)
46
-  index.html
47
-  /src -> rust source for top-level program + wasm declarations
48
-  /target -> destination directory for rust
49
-  /web -> destination for wasm-bindgen generated files (*.js, *.ts, *.wasm)
50
-  /web/js -> js files
26
+visit the apropriate url in a browser

Loading…
Cancel
Save