A trickster online inspired wannabe RPG
README.md

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 a create() composition root that assembles the AdaptiveMonoGameProgram with the content root already configured.
  • Content/ - the shared MonoGame content pipeline (Content.mgcb). Each thin client builds it via MonoGame.Content.Builder.Task, so assets land in all clients' output directories.
  • DesktopGL/ - thin client for OpenGL. Adds MonoGame.Framework.DesktopGL, references the shared library and content, and runs Kimo.create() under AdaptiveMonoGameGame.
  • DesktopVK/ - thin client for Vulkan (MonoGamePlatform = DesktopVK). Adds MonoGame.Framework.Native plus the MonoGame.Runtime.{Windows,Mac,Linux}.Vulkan runtime packages on top of the same three lines as DesktopGL.
  • WindowsDX/ - thin client for DirectX 12 (MonoGamePlatform = WindowsDX12, net10.0-windows). Adds MonoGame.Framework.Native plus MonoGame.Runtime.Windows.DX12, [<STAThread>], and app.manifest.
  • Kimo.Tests/ - the Expecto test suite. Kimo.Tests/README.md states 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.