├── .github └── workflows │ └── build.yml ├── .gitignore ├── .rustfmt ├── .tool-versions ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── js └── index.js ├── package.json ├── rust-toolchain.toml ├── rustfmt.toml ├── src ├── browser.rs ├── engine.rs ├── game.rs ├── lib.rs ├── segments.rs ├── sound.rs └── test_browser.rs ├── static ├── BG.png ├── Button.svg ├── SFX_Jump_23.mp3 ├── Stone.png ├── background_song.mp3 ├── index.html ├── kenney_future_narrow-webfont.woff2 ├── rhb.json ├── rhb.png ├── styles.css ├── tiles.json └── tiles.png ├── tests └── app.rs └── webpack.config.js /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/.gitignore -------------------------------------------------------------------------------- /.rustfmt: -------------------------------------------------------------------------------- 1 | edition = "2018" 2 | -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | nodejs 16.13.0 2 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/README.md -------------------------------------------------------------------------------- /js/index.js: -------------------------------------------------------------------------------- 1 | import("../pkg/index.js").catch(console.error); 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/package.json -------------------------------------------------------------------------------- /rust-toolchain.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/rust-toolchain.toml -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | edition = "2018" 2 | -------------------------------------------------------------------------------- /src/browser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/src/browser.rs -------------------------------------------------------------------------------- /src/engine.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/src/engine.rs -------------------------------------------------------------------------------- /src/game.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/src/game.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/segments.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/src/segments.rs -------------------------------------------------------------------------------- /src/sound.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/src/sound.rs -------------------------------------------------------------------------------- /src/test_browser.rs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/BG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/BG.png -------------------------------------------------------------------------------- /static/Button.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/Button.svg -------------------------------------------------------------------------------- /static/SFX_Jump_23.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/SFX_Jump_23.mp3 -------------------------------------------------------------------------------- /static/Stone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/Stone.png -------------------------------------------------------------------------------- /static/background_song.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/background_song.mp3 -------------------------------------------------------------------------------- /static/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/index.html -------------------------------------------------------------------------------- /static/kenney_future_narrow-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/kenney_future_narrow-webfont.woff2 -------------------------------------------------------------------------------- /static/rhb.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/rhb.json -------------------------------------------------------------------------------- /static/rhb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/rhb.png -------------------------------------------------------------------------------- /static/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/styles.css -------------------------------------------------------------------------------- /static/tiles.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/tiles.json -------------------------------------------------------------------------------- /static/tiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/static/tiles.png -------------------------------------------------------------------------------- /tests/app.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/tests/app.rs -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Game-Development-with-Rust-and-WebAssembly/HEAD/webpack.config.js --------------------------------------------------------------------------------