std-game-canvas3d
Level: Atom | Entity: GameCanvas3d | Persistence: runtime
2 states, 4 events, 7 transitions
Live Preview
orbital GameCanvas3dOrbital {
entity GameCanvas3d [runtime] {
id : string
name : string
description : string
status : string
createdAt : string
}
trait GameCanvas3dGameCanvas3d -> GameCanvas3d [interaction] {
initial: idle
state idle {
INIT -> idle
(fetch GameCanvas3d)
(render-ui main { type: "game-canvas-3d", tiles: "@GameCanvas3d", units: "@GameCanvas3d", features: "@GameCanvas3d", orientation: "isometric", cameraMode: "orbital", showGrid: true, shadows: true, backgroundColor: "#1a1a2e", tileClickEvent: "TILE_CLICK", unitClickEvent: "UNIT_CLICK" })
TILE_CLICK -> active
(render-ui main { type: "game-canvas-3d", tiles: "@GameCanvas3d", units: "@GameCanvas3d", features: "@GameCanvas3d", orientation: "isometric", cameraMode: "orbital", showGrid: true, shadows: true, backgroundColor: "#1a1a2e", tileClickEvent: "TILE_CLICK", unitClickEvent: "UNIT_CLICK" })
UNIT_CLICK -> active
(render-ui main { type: "game-canvas-3d", tiles: "@GameCanvas3d", units: "@GameCanvas3d", features: "@GameCanvas3d", orientation: "isometric", cameraMode: "orbital", showGrid: true, shadows: true, backgroundColor: "#1a1a2e", tileClickEvent: "TILE_CLICK", unitClickEvent: "UNIT_CLICK" })
CAMERA_CHANGE -> idle
}
state active {
TILE_CLICK -> active
(render-ui main { type: "game-canvas-3d", tiles: "@GameCanvas3d", units: "@GameCanvas3d", features: "@GameCanvas3d", orientation: "isometric", cameraMode: "orbital", showGrid: true, shadows: true, backgroundColor: "#1a1a2e", tileClickEvent: "TILE_CLICK", unitClickEvent: "UNIT_CLICK" })
UNIT_CLICK -> active
(render-ui main { type: "game-canvas-3d", tiles: "@GameCanvas3d", units: "@GameCanvas3d", features: "@GameCanvas3d", orientation: "isometric", cameraMode: "orbital", showGrid: true, shadows: true, backgroundColor: "#1a1a2e", tileClickEvent: "TILE_CLICK", unitClickEvent: "UNIT_CLICK" })
CAMERA_CHANGE -> active
}
}
page "/gamecanvas3ds" -> GameCanvas3dGameCanvas3d
}
Loading preview...
Orbital Visualization
Loading visualization...
Entity Fields
| Field | Type | Default |
|---|---|---|
| id | string | - |
| name | string | - |
| description | string | - |
| status | string | "active" |
| createdAt | string | - |
States
| State | Type |
|---|---|
| idle | Initial |
| active | - |
Events
| Event | Payload |
|---|---|
| INIT | - |
| TILE_CLICK | tileId: string |
| UNIT_CLICK | unitId: string |
| CAMERA_CHANGE | - |
Transitions
| From | Event | To | Effects |
|---|---|---|---|
| idle | INIT | idle | 2 effects |
| idle | TILE_CLICK | active | 1 effect |
| idle | UNIT_CLICK | active | 1 effect |
| active | TILE_CLICK | active | 1 effect |
| active | UNIT_CLICK | active | 1 effect |
| active | CAMERA_CHANGE | active | - |
| idle | CAMERA_CHANGE | idle | - |