Fanalor

Version 0.4.0 · MIT · Rust · wgpu

Fanalor

Fanalor is an open-source 2D game engine in Rust, built on wgpu, with an editor you can hot reload and a build that runs natively and in the browser.

2D now, drawn in painter’s order · no depth buffer · 3D comes next

01

What you get in 0.4

  • 01

    Editor with hot reload

    The editor loads a game crate and plays it. Save a change to the game’s Rust and it rebuilds and swaps in while the scene is still running.

  • 02

    Native and web export

    cargo xtask dist writes a desktop build. cargo xtask dist --web writes a static page: WebGPU where the browser has it, WebGL2 where it does not.

  • 03

    UDP and WebSocket multiplayer

    Native games speak UDP. Browser games speak WebSocket. Snapshots and deltas, prediction, interest management, and lag-compensated hit tests.

  • 04

    Animation blend trees

    Transitions crossfade. 1D and 2D directional blend trees keep their clips in step. Layers mask, override, or add.

  • 05

    Physics joints

    Revolute, distance, weld, wheel, prismatic, and mouse joints, with springs, motors, and a break force reported once when a joint gives.

  • 06

    Prefab variants

    A variant is a prefab of another prefab, with its own overrides. An edit to the base reaches the variant and its instances, except what each has changed.

  • 07

    Lobby and LAN discovery

    A server-held lobby: names, slots, ready, a host who starts the match. Native builds find servers on the LAN. A browser joins by address.

  • 08

    An in-house core

    No engine framework, no third-party ECS, no scene-graph crate. The world, the loop, and the renderer are written in this repository.

  • 09

    MIT licensed

    Use it, change it, and ship a game. The engine and the sample games are MIT.

02

Play a sample in the browser

  • Platformer

    Walk, jump, push

    A small level: coins, crates, a goal. The walker is a character body that pushes what it runs into.

    A D or arrows · Space jumps

    Play
  • Breakout

    Physics, in a brick wall

    A paddle, a ball, and bricks taken by collision events. The engine does the bounce.

    A D or arrows move the paddle

    Play
  • Dodge

    Timers, tweens, sensors

    Steer clear of falling rocks. A timer drops them, a sensor ends the run, a tween fades you out.

    WASD or arrows

    Play