Skip to content

Bastl34/rustl

Repository files navigation

Rustl - a game engine written in rust

  • WIP (very very very early state)
  • this is going to be a game engine soon ™️ 😬 (once it's grown up)

current state

model from: https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/DamagedHelmet

model from: https://sketchfab.com/3d-models/cathedral-faed84a829114e378be255414a7826ca

model from: https://sketchfab.com/3d-models/apocalyptic-city-a0c8f318ed6f4075a97c2e55b1272495

requrements

# install

# cargo watch
cargo install cargo-watch

# wasm-pack
#https://rustwasm.github.io/wasm-pack/installer/
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# build locally (with watch)
cargo watch -s "cargo run --release" -w src/ -w resources/

# build for web  (with watch)
cargo watch -s "wasm-pack build --target web" -w src/ -w resources/

# run with backtrace (on windows)
set RUST_BACKTRACE=1 && cargo watch -s "cargo run --release" -w src/ -w resources/

# run with backtrace (mac/linux)
RUST_BACKTRACE=1 && cargo watch -s "cargo run --release" -w src/ -w resources/

Linux (Ubuntu) Requirements:

sudo apt-get install pkg-config cmake libglib2.0-dev build-essential librust-atk-dev libgtk-3-dev

Hints

  • prevent large scale values for objects -> this can cause flickering (because of float precision)

About

A game engine based on wgpu written in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published