fyrox-platformer/executor-wasm
artem b3fe69a4f4
Gitea Actions Demo / build_and_push (push) Failing after 13s Details
update engine
2024-04-07 19:09:16 +03:00
..
pkg update engine 2024-04-07 19:09:16 +03:00
src UI fix - assets + build 2024-03-21 08:35:43 +03:00
Cargo.toml init 2024-01-07 23:35:05 +03:00
README.md init 2024-01-07 23:35:05 +03:00
index.html correct widnow size 2024-04-06 16:26:01 +03:00
main.js init 2024-01-07 23:35:05 +03:00
styles.css preloader 2024-01-14 22:42:13 +03:00

README.md

Build instructions

  1. Make sure you have wasm32-unknown-unknown target installed in rustup (if not, do: rustup target add wasm32-unknown-unknown)
  2. Make sure you have wasm-pack installed (if not, do: cargo install wasm-pack)
  3. To build the executor, do: wasm-pack build --target web --release

How to run the game on localhost

  1. Make sure you have basic-http-server installed (if not, do: cargo install basic-http-server).
  2. Clone assets to the executor-wasm directory. Alternatively, clone everything except Cargo.toml and src directory to the root of your project (../).
  3. Execute basic-http-server in executor-wasm directory (or in root folder if you you've used alternative path).

If everything has succeeded, open a web browser at http://localhost:4000/, click "Start" button and your game shoud load.