- Forth 98%
- F# 2%
Kimo #
Kimo is a small 3D RPG prototype written in F#. It is inspired by Trickster Online: skills with cast times and cooldowns, status effects, gear, and enemies that patrol, remember you, and flee when hurt. Two local players can play in split screen.
It uses Mibo, an F# game framework, and is built on the adaptive architecture Mibo offers. Each world simulates on its own thread, derived state lives in incremental graphs, and every tick hands the renderers one packed frame.
Repository layout #
Three thin clients share one game library and one content pipeline:
Kimo/- the shared library (Kimo.fsproj, net10.0). All game logic and the views live here, plus acreate()composition root that assembles theAdaptiveMonoGameProgramwith the content root already configured.Content/- the shared MonoGame content pipeline (Content.mgcb). Each thin client builds it viaMonoGame.Content.Builder.Task, so assets land in all clients' output directories.DesktopGL/- thin client for OpenGL. AddsMonoGame.Framework.DesktopGL, references the shared library and content, and runsKimo.create()underAdaptiveMonoGameGame.DesktopVK/- thin client for Vulkan (MonoGamePlatform=DesktopVK). AddsMonoGame.Framework.Nativeplus theMonoGame.Runtime.{Windows,Mac,Linux}.Vulkanruntime packages on top of the same three lines as DesktopGL.WindowsDX/- thin client for DirectX 12 (MonoGamePlatform=WindowsDX12, net10.0-windows). AddsMonoGame.Framework.NativeplusMonoGame.Runtime.Windows.DX12,[<STAThread>], andapp.manifest.Kimo.Tests/- the Expecto test suite.Kimo.Tests/README.mdstates what a test must satisfy before it joins the suite.
Content pipeline #
Assets are listed in Content/Content.mgcb and load at runtime through
GameContext.getService<IAssets>. Asset names carry no file extension: load
Content/foo.png as "foo". To edit the pipeline visually, run
dotnet tool restore and then dotnet mgcb-editor.
Features #
- World: zone simulations run on their own background threads and hand the renderer one packed frame per tick.
- Combat: skills with cast times, cooldowns, and area target shapes; projectiles with arc and chain flight; timed status effects like stun, root, silence, taunt, and damage over time.
- AI: behavior trees ranked by utility scoring, with sight cones, faction checks, memories of lost targets, alertness that speeds up decisions, patrol routes, leash retreat, and kiting casters.
- Items: equipment slots, inventories, weighted gear rolls on spawn, and ground pickups.
- HUD: vitals bars, a 12 slot action bar with cooldown sweeps, status effect icons, cast bar, combat indicator, and minimap.
- Split screen: up to two local players, each seat gets its own viewport, HUD, and cursor. Mouse, keyboard, and gamepad input.
- Rendering: Mibo's forward PBR pipeline with shadow atlas, skinned characters, and particle effects.
- Diagnostics: an F3 overlay with frame rate, update and draw cost, allocations, GC, and GPU counters.
Run #
Needs the .NET 10 SDK. Three clients share the same library, pick one:
dotnet run --project DesktopGL # OpenGL
dotnet run --project DesktopVK # Vulkan
dotnet run --project WindowsDX # DirectX 12, Windows only
The first build also compiles the shared Content pipeline. Press F3 in game
to toggle frame diagnostics.
Credits #
Models come from KayKit packs, particles and cursors from Kenney packs. The licenses ship with the art.