Features

Everything LittleKt offers, from 2D sprites and UI to physically based 3D rendering, all built on WebGPU.

WebGPU at the core

Every renderer in LittleKt is built on WebGPU. Use the high-level APIs, or drop down to the device and write your own pipelines and WGSL shaders.

  • Direct access to devices, pipelines, buffers & bind groups
  • WGSL shaders with a Kotlin shader builder
  • Compute shaders
  • Render targets, depth, MSAA & HDR attachments
  • Texture blitting for render scale
Read the docs
Thousands of boids simulated in a compute shader.
Thousands of boids simulated in a compute shader.

2D toolkit

Everything needed to draw a 2D game, from batched sprites to particles, with cameras and viewports that handle any screen size.

Read the docs
  • SpriteBatch & SpriteCache
  • Textures, texture slices & texture atlases
  • Nine-patches
  • Shapes, lines & paths
  • Frame animations & an animation player
  • Particles
  • 2D meshes
  • Orthographic cameras & viewports

3D rendering

A complete physically based 3D pipeline. Load glTF models and light them with shadows and environment maps, then finish with tonemapping and bloom.

  • glTF & GLB model loading
  • PBR & unlit materials
  • Directional, point & ambient lights
  • Cascaded directional shadows
  • Image based lighting & skyboxes
  • HDR rendering, tonemapping & bloom
  • MSAA & sorted transparency
  • Skeletal animation & skinned instancing
  • Multiple cameras & render passes
Read the docs
Sponza with PBR, cascaded shadows, point lights & ACES tonemapping.
Sponza with PBR, cascaded shadows, point lights & ACES tonemapping.

Text and fonts

Load TrueType fonts directly. Rasterize them at exact pixel sizes, or use multi-channel signed distance fields for text that scales and rotates cleanly.

  • TrueType raster fonts at exact pixel sizes
  • MSDF fonts with weight, outline & glow
  • Bitmap fonts
  • Kerning
  • Glyph layout, wrapping & alignment
  • A bundled default font
Read the docs
MSDF text with outlines, glow and weights.
MSDF text with outlines, glow and weights.

Scene graph and UI

An optional scene graph module for organizing your game, with a complete set of UI controls. Build scenes with a Kotlin DSL and Compose-style modifiers.

  • 2D & 3D nodes with signals
  • Buttons, labels, text input, scroll bars, progress bars & more
  • Rows, columns, stacks, scroll & center containers
  • Compose-style modifiers
  • Light & dark themes and a theme builder
  • Canvas layers with their own pixel scale
Read the docs
Every built-in control, styled with the default dark theme.
Every built-in control, styled with the default dark theme.

Tilemaps

Load maps made in LDtk or Tiled and render them with a single call.

Read the docs
  • LDtk worlds, levels, layers & entities
  • Tiled maps, tilesets & objects

Audio

Play sound effects and stream music, with control over volume and output devices.

Read the docs
  • Audio clips & streaming
  • Master volume
  • Output device selection & change events
  • Configurable simultaneous sounds

Input

Poll input each frame or listen for events, and map keys, buttons and axes to your own actions.

Read the docs
  • Keyboard & mouse
  • Gamepads
  • Touch gestures
  • Input bindings for actions & axes
  • Custom cursors

Windows and displays

Control the window and pick the monitor and video mode, with rendering that stays sharp on high DPI screens.

Read the docs
  • Windowed, borderless & fullscreen modes
  • Monitors & video modes
  • Present modes & frame rate limits
  • High DPI support on desktop & web

Assets and files

Read and write files the same way on every platform, and load assets in the background with coroutines.

Read the docs
  • Virtual file system
  • Asset provider for async loading
  • Coroutines on every platform

Tools

Pack textures into atlases at build time with the Gradle plugin.

Read the docs
  • Texture packer Gradle plugin
  • WebGPU profiling

Math

A math library made for games, with mutable and immutable types that avoid allocations.

Read the docs
  • Vectors, matrices & quaternions
  • Angles, rects & geometry
  • Lerp, clamp & other math extensions

Ready to build?

Start from the template, or jump into the docs.