Repository navigation
Releases
engine64 v0.1.0
First public release of engine64, a framework style game engine for the Nintendo 64, written in C on top of Libdragon and Tiny3D.
The engine builds from the project that uses it, not on its own. A game hands over data, assets, scenes, states and bindings, and the engine supplies the rest.
What is in it
Physics. A port of qu3e expanded to every basic primitive plus triangle meshes: rigid bodies with island solving and sleeping, sequential impulse contacts with warm starting, friction and restitution.
Character physics. The collision recovery and contact classification from Godot Engine, ported: a kinematic capsule against boxes, spheres, capsules and meshes, with floor detection, snapping, and internal edge normals corrected the way Jolt does it. Registered in the physics world, so bodies push back.
Movement and animation. Gait based locomotion with exponential convergence, charged jumps, air control and roll phases. Animation through a blend tree: clip playback, sequencing, 1D and 2D blend spaces, and weighted layering.
Cloth and spring bones. Verlet cloth after the Advanced Character Physics paper by Thomas Jakobsen, and a port of SpringBoneSimulator3D from Godot Engine as a skeleton modifier, with the world motion damping from Kawaii Physics.
Water. Procedural surfaces through the mesh deform path, with analytic normals and height shaded vertices. Buoyancy reads the same wave surface the renderer draws, sampling submerged volume per shape.
Scenes. 3D and 2D scenes are definitions: lighting, fog, camera, wind, sound emitters, sprites, text. Loading resolves one into a live world.
Sound. Positional audio over the Libdragon mixer: inverse distance falloff, priority based channels, constant power panning from the listener, and character sounds driven by animation state.
Camera and controls. A spring arm third person camera whose every value comes from the scene definition, and input the game owns: it names a button per action and the engine reads it, with nothing hardcoded on this side.
Getting started
Install the Libdragon toolchain and Tiny3D, then run ./build.sh from the root to build the examples, or make inside one of them.
examples/01 scene 3d is the smallest thing the engine can put on screen and the place to start reading.