No Description
Inderjit Gill ff397bbc46 updated readme 4 months ago
assets assets folder for tileset pdn 4 months ago
client separate client and server directories 4 months ago
server separate client and server directories 4 months ago
.gitattributes initial commit 7 months ago
.gitignore separate client and server directories 4 months ago
README.md updated readme 4 months ago

README.md

RogueLike

Overview

A roguelike-look-a-like game that I’m making up as I go along. It’s purpose is to learn about developing graphical apps on the web using Rust compiled to WASM

ensure that the correct toolchain is installed

$ rustup update
$ rustup install nightly
$ rustup target add wasm32-unknown-unknown --toolchain nightly
$ cargo +nightly install wasm-bindgen-cli
$ cd client
$ npm install

during dev

$ cd client
$ npm run build:dev:wasm
$ npm run build:dev
$ npm run serve:dev

can now visit http://localhost:8080

for ‘release’

$ cd server
$ cargo run
$ cd ../client
$ npm run build:release

can now visit http://localhost:8080

graphics

  • origin is in the bottom left
  • rendering order for a square is: bl, br, tl, tr

file structure

client

/dist -> destination directory for webpack output (npm run build) index.html /src -> rust source for top-level program + wasm declarations /target -> destination directory for rust /web -> destination for wasm-bindgen generated files (*.js, *.ts, *.wasm) /web/js -> js files

/libs -> pure rust crates referenced by main top-level crate