Skip to main content

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

FieldTypeDefault
idstring-
namestring-
descriptionstring-
statusstring"active"
createdAtstring-

States

StateType
idleInitial
active-

Events

EventPayload
INIT-
TILE_CLICKtileId: string
UNIT_CLICKunitId: string
CAMERA_CHANGE-

Transitions

FromEventToEffects
idleINITidle2 effects
idleTILE_CLICKactive1 effect
idleUNIT_CLICKactive1 effect
activeTILE_CLICKactive1 effect
activeUNIT_CLICKactive1 effect
activeCAMERA_CHANGEactive-
idleCAMERA_CHANGEidle-