scifi6546 / erosion-rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building the Game

Prerequisite Software

cargo,
wasm-pack,
npm

Build Instructions

To run the game fist install the rust toolchain by following the directions at https://www.rust-lang.org/. Next install wasm-pack using the instructions at https://rustwasm.github.io/wasm-pack/installer/.

Next clone this repo with

git clone https://github.com/scifi6546/ski_tycoon_v2.git

Then enter the directory ski_tycoon_v2/ski_tycoon

cd ski_tycoon_v2/ski_tycoon_v2

Next build the rust project (may take a while on slow computers)

wasm-pack build --release

Next enter the folder for the node js project.

cd ../www

Next install npn components

npm install

Finally either build the development environment with

npm run start

Or build a minimized project

npm run build

About

License:GNU Affero General Public License v3.0


Languages

Language:Rust 70.1%Language:JavaScript 21.1%Language:HTML 6.8%Language:GLSL 1.4%Language:CSS 0.4%Language:Python 0.2%