@arcane-engine/runtime
v0.10.2
Published
Agent-native 2D game engine runtime - TypeScript APIs for state management, rendering, and game logic
Maintainers
Readme
@arcane-engine/runtime
TypeScript runtime for Arcane — a code-first, test-native, agent-native 2D game engine.
Installation
npm install @arcane-engine/runtimeNote: You also need the Arcane CLI:
cargo install arcane-cliQuick Example
import { onFrame, drawSprite, createSolidTexture, setCamera, getViewportSize } from "@arcane/runtime/rendering";
const TEX = createSolidTexture("player", 60, 180, 255);
const { width: VPW, height: VPH } = getViewportSize();
onFrame(() => {
setCamera(VPW / 2, VPH / 2); // (0,0) = top-left
drawSprite({ textureId: TEX, x: 100, y: 100, w: 32, h: 32, layer: 1 });
});Note: Code imports use
@arcane/runtime/{module}(mapped via tsconfig paths to@arcane-engine/runtime). The Arcane CLI scaffolds this automatically.
Modules
state, rendering, ui, physics, pathfinding, tweening, particles, systems, scenes, persistence, procgen, agent, testing
Documentation
License
Apache 2.0
