Skip to content
Cursor Agent edited this page Nov 29, 2026 · 8 revisions

Fanalor Engine

Fanalor is a 2D game engine written in Rust on wgpu and winit. Version 0.4 is a 2D engine with an editor, a player, native and web export, and multiplayer over UDP and WebSocket. Games are Rust crates the editor hot-reloads. 3D is not in the tree yet.

The project site is fanalor.dev/Fanalor-Engine. English is the default. Spanish (Spain) is at fanalor.dev/Fanalor-Engine/es/.

Site fanalor.dev/Fanalor-Engine
Guide on the site guide
Play the samples play
Changelog on the site changelog
Roadmap on the site roadmap
Repository Fanalor-Labs/Fanalor-Engine
User guide (in the repo, checked by CI) docs/guide
Changelog CHANGELOG.md
Issues issue tracker

New here? Read Getting Started, then the guide in the repository. It goes from install to a game in a browser, and the shell blocks marked for CI are run on every change (cargo xtask guide).

What 0.4 ships

  • Editor and player. Hierarchy, inspector, asset browser, gizmos, undo, a timeline, a profiler, prefabs and variants. The player runs a scene with no editor in the binary.
  • Games as crates. cargo xtask new-game makes one. The editor loads it, plays it, and hot-reloads it. cargo xtask dist packages a native build; cargo xtask dist --web packages a static folder any host serves.
  • 2D gameplay. Sprites and tilemaps, lights and shadows, physics (including characters, joints that can break, sensors), UI and shaped text, audio with buses and effects, animation (crossfades, blend trees, layers), particles, bones, navigation.
  • Networking. Authoritative server, replication, interpolation, prediction, interest management, lag compensation, a lobby and LAN discovery. The sample is games/arena.

Sample games in games/: platformer, breakout, dodge, and the networked arena.

Design stance

  • No engine-framework crates. No third-party ECS, scene graph, or engine framework. Core systems are written in this repository. Leaf libraries (math, serialization, physics, UI widgets) are used where they do not decide the architecture.
  • wgpu, not a hand-rolled graphics API. One backend-agnostic API. Native builds use Vulkan, Metal, DirectX 12, or OpenGL, whichever the machine has. The web build uses WebGPU where the browser offers it and WebGL2 otherwise.
  • Workspace-first. Every subsystem is its own crate. Versions of third-party crates live only in the root [workspace.dependencies]. See Architecture.

This wiki

Page What it covers
Getting Started Toolchain, first run, commands, environment variables
Editor Panels, tools, play mode, scenes, prefabs
Building Games cargo xtask new-game, the Game trait, hot reload, samples
Architecture Crates, layering, frame flow
Rendering The 2D renderer: batches, lights, post, cameras
Input The per-frame input snapshot and action maps
Logging The log crate and RUST_LOG
Networking Sessions, replication, interest, lag compensation, lobby, LAN
Export cargo xtask dist and cargo xtask dist --web
Testing Guide cargo test, the guide check, benchmarks
Contribution Guide Branches, commits, the checks before a PR
Code of Conduct How people are expected to behave here

The long-form user guide in the repository is the source the CI job checks. This wiki is the map: where to start, how the crates fit, and the commands that match main at v0.4.

Clone this wiki locally