Make 2D and 3D games in a Unity-style editor, script them in Lua or C++,
and ship them to desktop, mobile and the web.
Why JasperEngine · Features · Getting started · Documentation · Contributing · Español
Windows (.zip) · macOS (.dmg, signed and notarized) · Linux (.AppImage or .zip)
Note
JasperEngine is in active development. The downloads are nightly builds of main, previews rather than stable releases. Formats are versioned and migrated, so projects keep opening as the engine moves.
- Feels like Unity. Hierarchy, Inspector, Project, Console, Scene and Game views, Prefabs, the menus and the shortcuts you already know, with undo on every edit. Names follow Unity's, and a glossary maps the rest.
- One engine for 2D and 3D. Sprites, tilemaps and 2D lights with normal maps, or PBR meshes, terrain and cascaded shadows: one editor and one runtime for both.
- Lua or C++, your choice. Both get Unity's MonoBehaviour lifecycle, coroutines and collision callbacks. Lua needs no compile step; C++ compiles into the game.
- Runs everywhere. Six export targets on five graphics backends through sokol-gfx: no compute shaders, no SSBOs, nothing a phone or a browser lacks.
- Mobile and web first. Features are budgeted for phones and WebGL2 before desktops, and a feature that is off costs nothing on the CPU or the GPU.
- Ready for AI agents. The editor is an MCP server with 340+ tools: an agent builds scenes, writes scripts, plays the game and takes screenshots in the real editor.
| Area | Highlights |
|---|---|
| Editor | Unity-style panels and Prefab variants · Animation window and Animator · Particle Effect, Procedural Material and Title Designer windows · Profiler · Git and Subversion built in · hot reload of files changed outside the editor |
| Rendering | PBR with cascaded and soft shadows · sky IBL, SSAO, SSR and reflection probes · height and volumetric fog, volumetric clouds · a mobile-first post-processing stack · 40+ ready-made shaders and custom ones · mesh LOD with cross-fade |
| 2D | Sprites and Aseprite import · tilemaps: rectangle, isometric, hex, autotiling · 2D lights, normal maps and shadow casters · a pixel-perfect camera |
| World building | Terrain with sculpting, clipmap LOD, grass and trees · voxel volumes for caves and digging · splines for roads, walls and rivers · navigation: navmeshes, crowds, grid A* |
| Animation | Animation Clips, also from glTF and FBX models · Animator state machines, layers and Avatar Masks · humanoid retargeting · pose-to-pose animation · GPU crowds with vertex animation · lattice deformers · tweens |
| Physics | Box2D and Jolt · Unity's Rigidbody fields, joints and collision callbacks · ragdolls · placing objects with physics in the editor |
| UI | HTML and CSS UI with flexbox, grid and Lua · a Unity-style component UI with Canvas Scaler · multi-touch and on-screen sticks · safe areas |
| Audio and video | Audio Mixer with effects and snapshots · 3D sound · a built-in library of CC0 sounds · a Video Player (WebM AV1 everywhere, MP4 through the platform) |
| Scripting | Lua 5.4 and C++ · coroutines, timers, PlayerPrefs, JSON, saves · HTTP · native calls to Java, Kotlin, Swift, Objective-C and JavaScript |
| Export | One Build Settings window for every target · a prebuilt player that needs no compiler, or a compiled CMake project |
| Tooling and AI agents | MCP server and tool reference · every tool from a shell with jasperengine-editor call · headless runs · an on-device debug console |
The full list, with what each feature does, is in docs/features.md.
| Windows | Linux | macOS | Android | iOS | Web | |
|---|---|---|---|---|---|---|
| Editor | ✓ | ✓ | ✓ | |||
| Games | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Graphics | D3D11, OpenGL, Vulkan | OpenGL, GLES3, Vulkan | Metal, OpenGL, Vulkan | GLES3 | Metal | WebGL2 |
Download the editor from the latest nightly and open it:
- Windows: unzip and run
jasperengine-editor.exe. The build is not code-signed yet, so SmartScreen may ask you to confirm. - macOS: open the
.dmgand drag JasperEngine to Applications. - Linux: make the
.AppImageexecutable and run it, or unzip the.zip.
Or build it from source. On Linux, Docker is all the build needs. Build the editor, then open it:
tools/build.sh linux
build/linux/editor-install/bin/jasperengine-editorThe Project Hub creates a project from a template (3D, 2D, 2D Pixel Art, UI). A script is a Lua table with Unity's lifecycle:
-- Mover.lua: arrow keys, WASD or a gamepad stick move the GameObject
local Mover = {
properties = {
{ name = "speed", displayName = "Speed", type = "float", default = 5.0 },
}
}
function Mover:init()
self.go = GameObject(self.scene, self.entity)
RegisterEngineEvent(self, "onUpdate")
end
function Mover:onUpdate()
local move = Input.getVector("Horizontal", "Vertical")
local p = self.go.position
self.go.position = Vector3(p.x + move.x * self.speed * Time.deltaTime, p.y,
p.z - move.y * self.speed * Time.deltaTime)
end
return MoverMore build targets, and building without Docker
tools/build.sh builds inside the images under docker/ and writes to build/<target>/:
tools/build.sh linux # the editor and the engine sample project
tools/build.sh web # the engine sample project, Emscripten
tools/build.sh android # the engine sample project as an APK
tools/build.sh unit-tests # the engine and editor unit tests
tools/build.sh shell linux # a shell inside the Linux build imageWithout Docker, every platform needs a C++20 compiler (GCC 11, Clang 16, Apple Clang 15 from Xcode 15 or MSVC 19.30 from Visual Studio 2022, or newer), CMake 3.27 or newer and Python 3. CMakePresets.json and engine/CMakePresets.json hold the standard configurations for IDEs.
Linux (Ubuntu 26.04; on 22.04 get CMake from apt.kitware.com, see docker/linux.Dockerfile):
sudo apt-get install -y --no-install-recommends \
build-essential cmake git ninja-build pkg-config python3 \
libx11-dev libxcursor-dev libxi-dev libxrandr-dev \
libgl1-mesa-dev libwayland-dev wayland-protocols \
libdbus-1-dev
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build --target jasperengine-editor
./build/jasperengine-editormacOS (Xcode Command Line Tools):
brew install cmake ninja
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build --target jasperengine-editor
open build/JasperEngine.appWindows (Visual Studio 2022 or newer with Desktop development with C++ and C++ CMake tools for Windows), from a Developer PowerShell:
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release --target jasperengine-editor jasperengine-editor-cmd
build\Release\jasperengine-editor.exejasperengine-editor-cmd is the console build of the editor, for command-line automation; it is not in the default build. C++ scripts played inside the editor must be built with an MSVC-compatible toolchain of the same architecture.
Vulkan editor (Windows or Linux): install the Vulkan SDK and add -DGRAPHIC_BACKEND=vulkan to the configure command, in a separate build directory. OpenGL is the default editor backend on Windows and Linux; macOS uses Metal.
cmake --install build --prefix dist makes a redistributable install tree on any platform.
- Features: everything the engine does, in one list.
- Shipping games: Build Settings, the prebuilt player and each platform.
- Lua API and C++ scripting: the scripting references.
- Unity glossary: Unity's names and their JasperEngine equivalents.
- MCP server: connecting Claude Code, Codex, Cursor or any MCP client to the editor.
- Keyboard shortcuts: every editor shortcut.
- Testing: every test suite, and how CI runs them.
Bug reports and pull requests are welcome. Read CONTRIBUTING.md first, then AGENTS.md, the rules every engine contributor follows, human or agent. Report bugs in the issue tracker, with the steps, the platform and the graphics backend.
JasperEngine is based on Doriax by Eduardo Doria and contributors. See NOTICE.md for the fork and every bundled library.
CI sponsor: CI runs on Namespace.
JasperEngine is released under the MIT License. Bundled third-party libraries keep their own licenses.





