A Phaser.js game engine for creating AI-driven social scenarios. Characters move, talk, and interact โ all orchestrated by your LLM.
Interactive demo at /player.html
Watch scenarios play out with characters moving, talking, and interacting. Test your YAML scenarios in real-time.
Design scenes visually. Drag props, set positions, and export YAML. Demo mode โ changes saved to your browser.
Browse the JSON schema for LLM actions. See available commands like say, move, emote, and more.
Full source code, AGENTS.md documentation, example scenarios, and integration guides.
Built-in callbacks for LLM decision points. Your AI controls character actions.
<PixelGame> component with full TypeScript support and ref-based API.
Define scenes, characters, and sequences in readable YAML format.
Headless mode for simulations and evaluations. No browser required.
import { PixelGame } from 'pixelgame/react'; function App() { return ( <PixelGame scenario={scenarioYaml} autoPlay={true} onReady={() => console.log('Ready!')} onLLMQuery={async (req) => { // Your LLM decides what the character does return { actions: [{ action: 'say', params: { text: 'Hello!' }}] }; }} /> ); }