Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

144 stars

Watchers

5 watching

Forks

Latest commit

 

History

15,930 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JasperEngine

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.

CI License: MIT Platforms: Windows, Linux, macOS, Android, iOS, Web MCP server for AI agents CI powered by Namespace

Why JasperEngine · Features · Getting started · Documentation · Contributing · Español

The JasperEngine editor: Hierarchy, Scene view, Inspector, Project and Console around a lit 3D scene

Download the latest nightly build
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.

Why JasperEngine

  • 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.

Features

A humanoid running in the Scene view above the Animator window's state graph
Animator Controllers: states, blend trees and layers, on any humanoid
The Title Designer window with a chrome title and a lens flare
Title Designer: metal, bevels, glows and lens flares, baked to textures
A game's main menu written in HTML and CSS
Game UI in HTML and CSS, wired in Lua, drawn by the engine itself
The built-in code editor with the Lua script behind that menu
Lua and C++ in the built-in code editor: here, the script behind that menu
Three coloured 2D lights on a normal-mapped brick wall
2D lights and normal maps: each brick catches the light from its side
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.

Platforms

Windows Linux macOS Android iOS Web
Editor ✓ ✓ ✓
Games ✓ ✓ ✓ ✓ ✓ ✓
Graphics D3D11, OpenGL, Vulkan OpenGL, GLES3, Vulkan Metal, OpenGL, Vulkan GLES3 Metal WebGL2

Getting started

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 .dmg and drag JasperEngine to Applications.
  • Linux: make the .AppImage executable 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-editor

The 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 Mover
More 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 image

Without 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-editor

macOS (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.app

Windows (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.exe

jasperengine-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.

Documentation

Contributing

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.

Credits and license

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.

About

No description, website, or topics provided.

Resources

Contributing

Stars

144 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages