Skip to content
Niš, Serbia

Kulisa

A visual novel and narrative game engine written in Rust. Stories are scripted in Luau, and one game folder builds for desktop, web, Android and iOS.

Role
Engine Developer
Platform
Cross-platform engine (Windows, Linux, macOS, Web, Android, iOS)
Categories
Desktop, Web
Year
2026
Kulisa cover: title and project illustration on a dark background

01 The brief

Assignment

Build an open-source visual novel and narrative game engine with no built-in look, where the whole interface is written in the engine's own scripting.

Objective

Give writers and programmers one engine that can be shaped into any kind of story game by: - Keeping the engine to rendering, text, input, audio, scripting, saves and rollback - Letting writers work in `.kulisa` story files that read like Ren'Py, with clear errors - Giving programmers a full Luau API, so a game can be a visual novel, a chat app or a text RPG - Building the same game folder for Windows, Linux, macOS, Web, Android and iOS - Staying fast and small: batched GPU rendering, instant start and quality tiers for slow devices

Built with

  • Rust
  • wgpu
  • WGSL shaders
  • Luau (mlua)
  • cosmic-text
  • kira
  • winit
  • gilrs
  • WebGPU
  • WebGL2
  • Astro Starlight
  • GitHub Actions

Project overview

Project Background

Kulisa is Serbian for stage scenery. I built it as a visual novel engine that only builds the stage. It draws nothing on its own: the classic visual novel interface is a template written in Kulisa's own scripting, so a game can keep it, restyle it, or replace it with something completely different.


Objective

  • An engine with no hardcoded visuals, only a scene graph, renderer, text, audio, input, scripting and saves
  • Two scripting layers: .kulisa story files for writers and Luau for programmers
  • One project that builds for six platforms, tested in CI on every commit
  • Rollback through the story, and saves that survive story edits
  • A smooth path for Ren'Py projects through kulisa import

Deliverables

  • A batched wgpu renderer with WGSL shaders, post-effect chains, meshes and GPU particles
  • A story language with its own compiler and bytecode VM, rollback and update-safe saves
  • A Luau API over the whole engine, plus a reactive UI system with widgets and layouts
  • Touch, mouse, keyboard and gamepad input, with gestures, safe areas, haptics and sensors
  • The kulisa CLI: new, run with live reload, build for every target and import for Ren'Py
  • Three templates (classic-vn, text-rpg, desktop-os), four demos and a documentation site with playable web builds

Gallery - 06 images

Execution

Phase 1: Platform & Rendering

  • Set up a Rust workspace and CI that builds and tests Windows, Linux, macOS, Web, Android and iOS from day one
  • Built the renderer on wgpu: batching, layers, cameras, parallax, render targets, custom WGSL shaders and post effects
  • Added text shaping with cosmic-text (markup, typewriter, per-glyph effects, ruby) and audio channels on kira
  • Skills Used: Rust, GPU programming, cross-platform builds, CI design

Phase 2: Story Language & Scripting

  • Wrote the .kulisa parser, compiler and bytecode VM, with errors that name the file, line and column
  • Designed rollback and saves that keep their place even after the story is edited
  • Exposed the whole engine to sandboxed Luau, then built a reactive UI system with widgets, layouts and transitions on top
  • Skills Used: Compiler and VM design, API design, state management

Phase 3: Templates, Demos & Tooling

  • Built the classic-vn, text-rpg and desktop-os templates and the parallax, interact, PC unwrap and smoke demos, using only the public API
  • Added meshes, hit testing, drag and drop, multi-touch, gamepad focus navigation, text input and haptics
  • Shipped the kulisa CLI with live reload of stories, Luau, shaders and assets, quality tiers and a Ren'Py importer
  • Published the docs site with Astro Starlight, where every template and demo is playable in the browser
  • Skills Used: Tooling, developer experience, technical writing, automated testing