Skip to main content
.NETStandard2.0

Mibo templates for creating functional 2D and 3D games with F# and Elmish. Includes raylib-cs templates (2D/3D) and MonoGame templates (2D/3D, with shared library targeting both DesktopGL/OpenGL and WindowsDX/DirectX).

Published
Jul 7, 2026
3mo ago
Total Downloads
4.6K
4,563

Install

dotnet add package Mibo.Templates --version 2.0.0-rc-002
ProductVersions
.NET Standard
netstandard2.0

README

Mibo

Install the templates:

dotnet new install Mibo.Templates
dotnet new mibo-2d -o MyGame
cd MyGame
dotnet run

NOTE for ADVENTURERS: raylib is a programming library to enjoy videogames programming; no fancy interface, no visual helpers, no debug button... just coding in the most pure spartan-programmers way.

Following that spirit, Mibo keeps it lean, just F# and the Elmish loop with a handful of commodities to get out of your way and let you enjoy the craft.

Mibo is an Elmish-based F# game framework with two interchangeable backends — raylib-cs and MonoGame (DesktopGL/OpenGL and WindowsDX/DirectX) — designed to allow developers to write games using familiar MVU patterns for all kinds of game genres and sizes.

Mibo aims to solve 80/20 of use cases for enabling developers to focus on game logic rather than boilerplate code, providing guidelines and architecture for structuring game code, handling input, rendering, asset management, and time management among others.

What's in the box?

  • Elmish runtime (MVU loop) with Cmd, Sub, optional fixed timestep, and frame-bounded dispatch
  • Input — raw input (Keyboard, Mouse) + semantic mapping via InputMap / ActionState
  • Assets — texture, font, sound, and model loading caches
  • Rendering — Command buffer based rendering:
    • 2D batch renderer with layers and multi-camera support
    • 3D batch renderer with opaque/transparent passes and custom shader switching
    • Escape hatches for custom GPU work
  • Camera helpers with screen-to-world, orbit, and ray casting
  • Layout — 2D procedural grid layout (CellGrid2D) with platformer, top-down, and geometric primitives
  • Layout3D — 3D voxel-style grid layout (CellGrid3D) with terrain, interior rooms, corridors, stairs, and procedural generation
  • Animation — sprite sheet slicing, AnimatedSprite state machines, and grid-based animation definitions
  • Input Mapper — Listen to raw input and map it to semantic actions

Getting started

Prerequisites:

  • .NET SDK 8 or later
  • A working OpenGL setup
dotnet --version
dotnet tool restore
dotnet restore
dotnet build
dotnet test

To build the docs site locally:

dotnet tool restore
dotnet fsdocs build
# or for live editing:
dotnet fsdocs watch

Samples

The samples developed for the initial Raylib version and the new MonoGame Samples are being stored in its own repository Mibo.Samples is the place to visit.

You'll find examples of

2D::

  • Platformer - A simple platformer featuring lights, normal maps, occluders and particles
    • Sample Mibo.Raylib targeting Desktop OpenGL
    • Sample Mibo.MonoGame targeting Windows Desktop DirectX11
  • Space Battle - A minimalistic hex grid strategy game a'la Wargroove or Advanced Wars
    • Sample Mibo.Raylib targeting Desktop OpenGL
  • Ping Pong - A Small client-server example
    • Mibo.Raylib Client
    • Mibo.MonoGame Client
    • dotnet app acting as a server running Mibo.Core's headless support

3D:

  • Platformer - A simple platformer with 3D models, lights, shadows, particles, and skeletal animation
    • Mibo.Raylib targeting Desktop OpenGL

License

Mibo is distributed under the zlib/libpng License.

Built on

Mibo is built on top of:

  • raylib — the cross-platform graphics library that powers the raylib backend's rendering, input, and audio layers
  • raylib-cs — the C# bindings that make raylib accessible from .NET
  • MonoGame — the cross-platform framework that powers the MonoGame backend (DesktopGL/OpenGL and WindowsDX/DirectX)

Feedback

Issues and PRs are very welcome. If you're interested in using F# for game development beyond simple 2D games, Mibo aims to be a practical, batteries-included framework that scales with your ambition.

Changes from Previous Version

No structural changes between v2.0.0-rc-001 and v2.0.0-rc-002.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.