A Godot-inspired game engine written entirely in Python.
Build, test, and debug games with real code.
Vulkan rendering · Visual editor · Integrated IDE · Headless CI testing · LLM-ready
Everything renders through Vulkan. From pixel-art 2D games to PBR-lit 3D scenes, and a complete visual editor built on top of the engine itself.
from simvx.core import *
from simvx.graphics import App
class Player(CharacterBody2D):
speed = Setting(300.0) # Visible in editor inspector
def ready(self):
self.position = Vec2(400, 550)
def physics_process(self, dt):
if Input.is_action_pressed("move_left"):
self.position.x -= self.speed * dt
if Input.is_action_pressed("move_right"):
self.position.x += self.speed * dt
if Input.is_action_pressed("fire"):
self.parent.add_child(Bullet(
position=self.position - Vec2(0, 15)
))
class Alien(CharacterBody2D):
points = Setting(10)
def __init__(self, **kw):
super().__init__(collision=12, **kw)
self.add_to_group("aliens")
class Game(Node):
def ready(self):
self.add_child(Player(name="Player"))
for row in range(5):
for col in range(11):
self.add_child(Alien(
position=Vec2(100 + col*40, 60 + row*36)
))
# That's it — run it
App("Space Invaders", 800, 600).run(Game())
Four packages. No framework lock-in. Use the full Python ecosystem — numpy for math, any library from PyPI, standard debugging tools.
No custom scripting language. Write game logic in real Python with full access to PyPI, pdb, static analysis, and your existing tools.
GPU-driven forward renderer with multi-draw indirect, PBR materials, SSAO, IBL, shadows, and post-processing. NumPy-backed math.
Composable node hierarchy with signals, groups, and coroutines. Node2D, Node3D, CharacterBody, RigidBody, UI widgets, and more.
Sprites, tilemaps, particle systems, physics (Jolt), pathfinding, collision detection, and animation state machines.
Viewport, scene tree, inspector, gizmos, and play mode. Built on the engine's own UI system — fully self-hosted.
Code editor with syntax highlighting, LSP diagnostics, DAP debugging, terminal, file browser, search, and minimap. No VS Code needed.
simvx-core (logic, no GPU), simvx-graphics (Vulkan), simvx-editor, simvx-ide. Use only what you need.
Spatial 2D/3D audio via miniaudio. Timeline keyframes, tweens, sprite sheets, and animation state machines with blend trees.
Linux (Arch, Ubuntu) and macOS (via MoltenVK). GLFW3 windowing with Vulkan surface creation.
SimVX treats testability as a first-class feature. Replay sessions in CI, inject input programmatically, and let LLMs debug your game by inspecting scene state and reviewing live screen captures.
Record and replay both game and editor sessions deterministically. DemoRunner scripts define step-by-step sequences with MoveTo, Click, TypeText, PressKey, Wait, and Assert actions. Run them headlessly in CI to catch regressions without a display server.
InputSimulator injects key presses, mouse clicks, and scroll events directly into the engine's input pipeline. Test gameplay logic, UI flows, and editor workflows without touching a keyboard. Same API as platform input — your game can't tell the difference.
Full programmatic access to the scene tree during tests. Query nodes by path, name, type, or group. Inspect properties, call methods, emit signals. SceneRunner advances frames and lets you assert on game state between each one.
App.run_headless() renders full Vulkan frames without a window and returns RGBA numpy arrays. Combined with direct scene state inspection, LLMs can autonomously debug gameplay, verify visual output, and generate documentation — like the screenshots on this page.
# Replay an editor session in CI
from simvx.core.scripted_demo import (
DemoRunner, Click, TypeText,
PressKey, Wait, Assert
)
steps = [
Click(400, 300),
TypeText("player_name"),
PressKey(Key.ENTER),
Wait(1.0),
Assert(
lambda tree: tree.find("Player"),
"Player node should exist"
),
]
# Run headlessly — no window, no GPU display
DemoRunner.run_headless(
scene, steps,
speed=50.0,
max_frames=20000
)
# Simulate gameplay with mocked input
from simvx.core.testing import InputSimulator
from simvx.core import Key
sim = InputSimulator()
def on_frame(idx):
if idx == 0:
sim.tap_key(Key.ENTER) # Start
if idx == 30:
sim.press_key(Key.LEFT) # Move
if idx == 50:
sim.release_key(Key.LEFT)
sim.tap_key(Key.SPACE) # Fire!
# Works identically to real input
frames = app.run_headless(
game, frames=100,
on_frame=on_frame,
capture_frames=[99]
)
# Query the scene tree in tests
from simvx.core.testing import SceneRunner
runner = SceneRunner()
runner.load(MyGame())
# Advance 10 frames
runner.advance_frames(10)
# Direct node access
player = runner.find("Player")
assert player.position == Vec2(100, 200)
# Simulate input, advance, assert
runner.simulate_key_press("space")
runner.advance_frames(1)
assert player.velocity.y < 0 # Jumped!
# Compare scene state snapshots
before = runner.tree.snapshot()
runner.advance_frames(60)
diff = scene_diff(before, runner.tree.snapshot())
assert "score" in diff.changed
# Inspect state + capture frames for LLM debugging
from simvx.graphics import App
from PIL import Image
app = App("My Game", 800, 600)
# Render 100 frames, capture the last one
frames = app.run_headless(
MyScene(),
frames=100,
capture_frames=[99]
)
# frames[0] is a numpy array (H, W, 4) uint8 RGBA
img = Image.fromarray(frames[0][:, :, :3])
img.save("debug_frame.png")
# Feed to vision model for analysis
# "What's wrong with this frame?"
# "The player sprite is clipping through
# the wall at position (320, 180)"
#
# Every screenshot on this page was
# generated this way.
Requires Python 3.13+ · Vulkan 1.2+ · GLFW3 · glslc
SimVX is free for non-commercial use — personal projects, game jams, education, research. A commercial license is only required if your project generates more than $1,000 in revenue. Source code releases are freely available.