Repository navigation
Fanalor 0.4.0
Pre-release
Pre-release
0.4 closes, stage by stage (119–131), the gaps docs/ARCHITECTURE.md
listed under each subsystem's "Not yet" that a game author hits first.
Every stage is a row in the README's roadmap and a decision in
docs/ARCHITECTURE.md; the guide (docs/guide/) covers each from a
user's side. 3D is not part of it: it comes next, with a plan of its own.
2D
- Animation: animator transitions crossfade over a
duration, an
interrupted fade fading on from what shows, andexit_timecounts
loops; blend trees (Blend1D,Blend2Dsimple directional) whose
clips play in step; animator layers with masks, a weight a game can
change, and override or additive blending. Clips are sampled apart
from writing, so every mix goes through one N-input blend. - Timeline: record mode keys what is edited under the previewing
player; keys copied, cut and pasted at the playhead; the clip's own
undo history. - Physics: wheel, prismatic and mouse joints, a revolute's return
spring, andbreak_force/break_torqueon every joint, reported
once throughTick::broken_joints. In play the editor drags bodies
with a mouse joint. Characters push dynamic bodies (push_force),
keep their speed on slopes, and turn with a turning floor;
Tick::gravityfor games moving them. - Camera: the view turns with its camera's entity — culling,
picking, parallax and the editor's viewport included;CameraShake
turns too (max_angle) and moves only the view;CameraFollow2D
frames several targets and zooms to fit them, its dead zone and bounds
drawn in the viewport. - Editor: the inspector edits the fields a selection shares, a field
that differs shown mixed and an edit writing only that field, as one
undo step; duplicates and pastes are numberedName (1),Name (2). - Prefabs: variants (a prefab that is another with overrides,
"Create variant" in the asset browser); a prefab inside another follows
its own file without the outer one being saved again; a prefab that
would hold itself is refused before saving. games/platformer's walker is aCharacterBody2Dthat pushes crates
and climbs a hill; thecharacterexample blends idle, walk and run
by speed with a landing squash on an additive layer.
Networking
- Interest management: each client is sent what is within a radius
of what it watches (its own entities, or points the game sets),
answered by a grid rebuilt each tick, with hysteresis; always-relevant
entities and a radius per entity. The Network window shows each
client's relevant entities. - Lag compensation:
LagCompensatedcolliders' poses are kept for a
second;tick.net.rewoundanswers ray, cast, point and overlap queries
as the shooter saw them, bounded by that player's measured lag and
LagCompensation::max_rewind. The arena's zap uses it. - Lobby and LAN discovery: a server-held lobby (names, slots, ready,
a host who starts, late joiners refused or let in), its own channel,
replication only to its players; LAN servers found by a UDP probe
(native only — the web joins by address). A lobby screen prefab in
everycargo xtask new-game; the arena readies up in it before its
match;fanalor-servergains--lobbyand the discovery flags. - Wire: the replication wire is versioned in the handshake
(REPLICATION_WIRE_VERSION3); a 0.3 peer is refused with
ProtocolMismatchat connect.
Fixed
- A networked build opened its level — first or changed to, with
load_sceneorchange_scene— under fresh ids, so no client entity
was the server's: the arena's coin had no sprite and its bot stood
still. With replication on, the level keeps its file's ids; a client
sets the level's replicated records aside — onload_sceneas on
change_scene— and spawns the server's copy of each from them when it
arrives, so a coin keeps its sprite and one the server no longer has
(taken) stays gone. A copy a change swept early is asked for again
until it arrives — once a round trip, so a lost ask is not the end of
it — and the server answers an ask for one it no longer has with a
despawn.ReplicaStats::level_waitingcounts what is set aside apart
fromout_of_interest. - A level reloaded under its ids no longer spawns a twin of a
Persistententity it holds. - A region unloading on a replication client let go of every entity the
first snapshot swept, not only its own; a region now notes its
replicated ids as each spawns, and a scene replaced lets go of the old
level's unsent entries. - The MCP
run_scenescreenshot drew HUD buttons unlaid out; the run now
lays the HUD out on the shot's size, or onWindowConfig::default()'s. - Test scratch folders are removed when their test ends, and those of
ended processes swept — never one under a minute old
(FANALOR_KEEP_SCRATCHkeeps them). - The new microsecond benchmarks (
keyframes/sample,keyframes/blend,
lag/*,interest/grid) take three times the samples
(Config::steady) and keep their limits; only
interest/server-frame-withoutwent from 15 to 20 %.