Install
Fanalor is a Rust workspace on stable. You need Rust 1.97 or newer, from rustup. On Debian or Ubuntu the audio and gamepad layers also need system packages:
sudo apt-get install -y libasound2-dev libudev-dev pkg-config
macOS and Windows need nothing beyond Rust. The renderer uses Vulkan, Metal, DirectX 12, or OpenGL, whichever the machine has.
Open the editor
git clone https://github.com/Fanalor-Labs/Fanalor-Engine
cd Fanalor-Engine
cargo run -p fanalor-editor
The first build compiles the engine and takes a while. After that, a change rebuilds in seconds. The editor opens on a small scene: hierarchy on the left, the scene in the middle, the inspector on the right.
A game of your own
cargo xtask new-game my-game
cargo run -p fanalor-editor -- --game games/my-game/build.ron
Play runs the game. Saving a change under its src/ rebuilds it and swaps the new code in. cargo xtask dist --manifest games/my-game/build.ron packages it, and the same command with --web writes the browser build. Web builds need the wasm32-unknown-unknown target and a wasm-bindgen CLI that matches the crate in Cargo.lock. Chapter 7 has the exact commands.
Chapters
- Install — toolchain, system packages, the editor.
- A first scene — sprites, the inspector, prefabs and variants, tilemaps, cameras.
- A first game — a game crate, components, turns, hot reload.
- Physics — bodies, characters that push, joints that spring and break.
- UI — HUD, options, text, touch.
- Audio — sources, buses, streamed music.
- Export — a native build and a web build.
- Networking — replication, a lobby, LAN discovery.
- Effects and animation — particles, blend trees, bones.
- Big worlds — regions streamed around the player.
Four sample games sit beside the engine: platformer, breakout, dodge, and the networked arena.