Manual
The Clayground manual covers the development tools and workflows in detail.
Development Tools
- Dojo - Live Reloading - The primary development environment with hot-reload
- Logging Overlay - Real-time debugging and property watching
- Plugin Development - Creating your own Clayground plugins
Core Concepts
Live Development
Clayground is built around the concept of instant feedback. Edit your QML files while the sandbox is running, and changes appear within milliseconds.
Plugin Architecture
The framework is modular - each plugin provides specific functionality that you can mix and match:
import Clayground.Common
import Clayground.Canvas
import Clayground.Physics
Some plugins build on others:
- World requires Canvas (2D) or Canvas3D (3D) and Physics
- Behavior works best with World and Physics
- Most plugins use Common for utilities
Scene Loading
Use SVG files for level design with SceneLoader2d or SceneLoader3d. World components often have built-in camera tracking via observedObject.
Best Practices
- Prototype in the Sandbox First - Test ideas quickly before creating standalone apps
- Small Incremental Changes - Make small changes to leverage instant feedback
- Watch Properties - Use
Clayground.watch()to monitor game state - Check Examples - The examples demonstrate most common patterns
- Read Plugin Docs - Each plugin has comprehensive documentation
Next Steps
- Explore Dojo in detail
- Learn about the Logging Overlay
- Create your own plugins