Cannon
A value shape that methods take or return.
Getting one
scene:cannon()Fields
| Field | Type | Description |
|---|---|---|
tile | WorldPoint? | The cannon's tile (the south-west corner of its 3x3 area), or nil while the game holds none. |
cannonballs | number | Cannonballs loaded. |
decayed | boolean | Whether it has decayed and must be repaired. |
Returned by
| Method | Returns | Description |
|---|---|---|
SceneDomain.cannon | Cannon? | The local player's cannon, read live from the game's vars. |