Expand description
Original, dependency-free gameplay systems shared by small Ferravex games. Renderer-independent systems; cameras share the first-party scalar math crate.
Modulesยง
- ability
- Fixed-capacity ability charges, resource costs and cancellable reservations. Hosts own conditions and actual effects; no ability creates a hit or movement.
- action
- Fixed-clock action timelines. Gameplay drives animation, never the reverse.
- ai
- Bounded, renderer-independent perception, decisions and work scheduling. Hosts supply candidates and authoritative occlusion queries. Deferred sight never counts as a fresh sighting; decisions cannot manufacture combat hits.
- animation
- Tracks, bounded playback/events, pose blending and reusable animation controllers.
- attributes
- Bounded attribute modifiers and timed status effects, with explicit stacking. Periodic pulses report work to the host; the host applies authoritative damage.
- audio
- First-party validated PCM clips, procedural cues and a bounded spatial mixer. Hosts supply sample output; no platform calls or unsafe code live here.
- authoring
- First-party typed scene authoring, hierarchical prefab expansion and compact cooked data. Parsing/validation happens on load, never during scene traversal.
- camera
- Allocation-free presentation cameras. World Y is up. Shooter yaw zero faces -Z; orbit eye offsets and vehicle-local chase forward use +Z. No simulation or input state is changed by damping, obstruction recovery or shake.
- encounter
- Fixed-clock spawn admission. Hosts choose safe spawn locations and apply the accepted spawn; the director never reads hidden player positions.
- environment
- Parametric solid blueprints shared by rendering, collision and authoring. Construct once, then instantiate the exact same pieces in both hosts.
- feedback
- Confirmed-event presentation routing. Never changes health, ammo or the clock.
- gameplay
- Composable game-loop rules. Hosts provide accepted events and simulation time.
No renderer, ECS, platform, or external dependencies. See
docs/GAMEPLAY_40.md. - input
- Bounded action mapping shared by platform hosts. Digital edges and accumulated motion survive until consumed; frames and fixed simulation ticks are separate.
- motion
- Small, renderer-independent tools for responsive arcade motion and impacts.
- navigation
- Deterministic weighted-grid A* and small 2D steering helpers.
- objective
- Authoritative, bounded puzzle/quest DAGs. Feed ordered accepted game events; this module does not validate world distance, visibility or inventory itself.
- particles
- Bounded particles, seeded emitters, ribbons/trails and short-lived beams. Simulation and geometry use first-party math; no GPU/device dependency.
- performance
- Presentation budgets and local playtest traces. Never change simulation dt, authoritative state, input sampling or saved user fidelity preferences.
- persistence
- Versioned, bounded first-party save data. Checksums detect corruption, not tampering. No filesystem, browser or game-specific dependencies.
- racing
- Bounded polyline racing driver. Produces ordinary controls, never teleports or awards progress. Hosts pass perceived nearby traffic, not hidden rival state.
- replay
- Bounded deterministic replay timelines. Games own checkpoint/input semantics; the timeline owns fixed ticks, accepted events, hashes, seeking and byte limits.
- rounds
- Authoritative tactical round/economy rules. The host supplies validated movement and hit results; this module validates teams, phase, money, bomb possession, interaction distance, alive state, and uninterrupted plant/defuse durations.
- scene
- Generational scene hierarchy, exact matrix composition, prefabs, a bounded binary scene format, and skeleton skin palettes. No renderer or asset loader.
- tuning
- Validated, versioned gameplay profiles. Loading is separate from applying;
hosts adopt a complete profile at a restart/checkpoint, never half an edit.
Use
TuningProfile::diffto inspect a candidate before replacing a profile. - tween
- Easing curves, tweens, springs and UI/screen transition timing.
- ui
- Renderer-independent anchored rectangles, clipped hit testing, pointer capture, and keyboard focus. Rendering and accessibility adapters remain host concerns.
- vehicle
- Arcade ground/hover and assisted-flight motors. Outputs are candidate motion; hosts resolve collisions, terrain, boost resources and race/mission authority.