Modern, cross-platform game engine written in Rust.
Native AI integration, ECS architecture, and performance without compromise.
The Resonance Engine is the runtime foundation that executes NAL game logic. Designed from the ground up for AI-agent-driven development.
Archetype-based storage for cache efficiency, automatic system parallelization, type-safe component access, and query system with flexible filtering.
wgpu-powered pipeline with 2D sprite batching, 3D mesh rendering, shape primitives, multiple camera types, and cross-platform support.
winit integration for keyboard, mouse, and gamepad input with event-driven architecture and cross-platform compatibility.
rodio-based audio with spatial sound, music playback, sound effects, and procedural audio generation capabilities.
AABB collision detection with trigger vs solid collision distinction, physics simulation integration, and event-driven responses.
MCP server for agent control, headless runtime for testing, multi-session management, and 8 specialized tools for AI interaction.
JSON/JSONL loader for agent-generated game definitions, graph-based scene representation, and runtime validation.
NEAT neuroevolution in pure Rust, observation/action spaces, curriculum learning, and model persistence.
14 specialized crates working together seamlessly
| Crate | Purpose | Key Technologies |
|---|---|---|
resonance-core |
Foundational types, traits, math utilities | glam (SIMD math) |
resonance-ecs |
Entity-Component-System implementation | Custom archetype storage |
resonance-render |
3D/2D rendering pipeline | wgpu, shapes, cameras |
resonance-window |
Window management | winit 0.29 |
resonance-input |
Keyboard & input handling | winit event processing |
resonance-audio |
Audio playback system | rodio, procedural audio |
resonance-anl |
NAL parser and graph loader | JSON/JSONL parsing |
resonance-runtime |
Main runtime orchestration | Plugin system, app framework |
resonance-mcp |
MCP server for AI integration | JSON-RPC protocol |
resonance-agent |
ML agent interface | NEAT neuroevolution |
resonance-native |
Native game runner | miniquad, rodio |
resonance-player |
Headed game player with ML | Window + Rezzy integration |
resonance-test-utils |
Common test utilities | Testing infrastructure |
Write once, deploy everywhere
DirectX 12, Vulkan support via wgpu. Native performance with full feature set.
Metal backend for optimal Apple Silicon and Intel Mac performance.
Vulkan support for cutting-edge graphics on all major distributions.
Compile to WASM for browser deployment with WebGPU support.
Built-in Model Context Protocol server for AI agent interaction
Initialize a new game session from NAL definition with configurable parameters.
Start the game loop and begin simulation with specified configuration.
Capture game state as image for AI vision models to analyze gameplay.
Query current game state as structured JSON for AI comprehension.
Send input events (keyboard, mouse) programmatically from AI agents.
Advance simulation by one frame for precise frame-by-frame control.
Execute ECS queries to inspect entities and components at runtime.
Clean shutdown of game session and resource cleanup.
Cache-friendly memory layout. Components of the same archetype stored contiguously for optimal CPU cache utilization.
glam provides SIMD-accelerated vector and matrix operations for maximum throughput.
Systems without data dependencies run concurrently across CPU cores automatically.
Direct GPU buffer uploads and batched draw calls minimize CPU-GPU transfer overhead.
Deterministic physics simulation with interpolation for smooth rendering.
Planned support for live code updates without restarting the game session.
# Clone the repository git clone https://github.com/stevengritz/agent-native-language.git cd agent-native-language/engine # Build all crates cargo build --release # Run a demo game cargo run --release --bin platformer # Run tests cargo test --workspace # Build for WASM (browser) cargo build --target wasm32-unknown-unknown --release
Each crate includes comprehensive README files with API documentation and examples.
View Docs โMultiple working examples demonstrate engine capabilities from simple to complex.
Browse Examples โFull-featured demo games showcasing platformer, shooter, and simulation mechanics.
Play Demos โ16-month plan aligned with Harmonic IDE development
Goal: Stable engine for AI agent research + open source launch
Goal: NAL compiler + bytecode VM
Goal: First-class AI development support
Goal: Production-ready, cross-platform
Phase 1 in progress - targeting Month 4 open source launch
Explore the technology powering Ludo Resonance.