@almadar/std 16.152.0 → 16.154.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/behaviors/lolo/infra/atoms/std-data-erasure.lolo +5 -1
  2. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +1 -0
  3. package/behaviors/lolo/ui/core/molecules/ui-emoji-picker.lolo +56 -0
  4. package/behaviors/lolo/ui/core/molecules/ui-popover.lolo +39 -0
  5. package/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +11 -0
  6. package/behaviors/lolo/ui/game/atoms/ui-draw-sprite.lolo +2 -2
  7. package/behaviors/lolo/ui/game/molecules/std-crew-board-2d.lolo +4 -4
  8. package/behaviors/lolo/ui/game/molecules/std-dungeon-board-2d.lolo +6 -6
  9. package/behaviors/lolo/ui/game/molecules/std-tactics-board-2d.lolo +41 -9
  10. package/behaviors/lolo/ui/game/molecules/std-worldmap-board-2d.lolo +2 -2
  11. package/behaviors/lolo/ui/game/molecules/ui-canvas-2d.lolo +11 -1
  12. package/behaviors/lolo/ui/game/molecules/ui-canvas.lolo +10 -0
  13. package/behaviors/lolo/ui/game/organisms/ui-arena-board.lolo +2 -2
  14. package/behaviors/lolo/ui/game/organisms/ui-battle-board.lolo +110 -7
  15. package/behaviors/lolo/ui/game/organisms/ui-builder-board.lolo +5 -20
  16. package/behaviors/lolo/ui/game/organisms/ui-card-battler-board.lolo +2 -0
  17. package/behaviors/lolo/ui/game/organisms/ui-castle-board.lolo +3 -3
  18. package/behaviors/lolo/ui/game/organisms/ui-city-builder-board.lolo +9 -7
  19. package/behaviors/lolo/ui/game/organisms/ui-fishing-board.lolo +8 -8
  20. package/behaviors/lolo/ui/game/organisms/ui-grid-tactics-demo-board.lolo +2 -2
  21. package/behaviors/lolo/ui/game/organisms/ui-hex-strategy-board.lolo +5 -1
  22. package/behaviors/lolo/ui/game/organisms/ui-holiday-runner-board.lolo +1 -1
  23. package/behaviors/lolo/ui/game/organisms/ui-minigolf-board.lolo +22 -22
  24. package/behaviors/lolo/ui/game/organisms/ui-physics-sandbox-board.lolo +5 -5
  25. package/behaviors/lolo/ui/game/organisms/ui-pinball-board.lolo +7 -7
  26. package/behaviors/lolo/ui/game/organisms/ui-pirate-board.lolo +14 -14
  27. package/behaviors/lolo/ui/game/organisms/ui-platformer-board.lolo +4 -0
  28. package/behaviors/lolo/ui/game/organisms/ui-roguelike-board.lolo +5 -5
  29. package/behaviors/lolo/ui/game/organisms/ui-sokoban-board.lolo +5 -5
  30. package/behaviors/lolo/ui/game/organisms/ui-sports-board.lolo +10 -7
  31. package/behaviors/lolo/ui/game/organisms/ui-state-architect-board.lolo +4 -4
  32. package/behaviors/lolo/ui/game/organisms/ui-tactics-demo-2d.lolo +7 -3
  33. package/behaviors/lolo/ui/game/organisms/ui-tanks-board.lolo +5 -1
  34. package/behaviors/lolo/ui/game/organisms/ui-topdown-rts-board.lolo +5 -1
  35. package/behaviors/lolo/ui/game/organisms/ui-tower-defense-board.lolo +8 -8
  36. package/behaviors/lolo/ui/game/organisms/ui-uncontrolled-battle-board.lolo +5 -5
  37. package/behaviors/lolo/ui/game/organisms/ui-winter-ski-board.lolo +7 -7
  38. package/behaviors/lolo/ui/game/organisms/ui-world-map-board.lolo +3 -3
  39. package/behaviors/registry/factory-signatures.json +6211 -2181
  40. package/behaviors/registry/infra/atoms/std-approval-gate.orb +16 -8
  41. package/behaviors/registry/infra/atoms/std-cache-aside.orb +62 -31
  42. package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +32 -16
  43. package/behaviors/registry/infra/atoms/std-data-erasure.orb +17 -9
  44. package/behaviors/registry/infra/atoms/std-mod-queue.orb +16 -8
  45. package/behaviors/registry/infra/atoms/std-rate-limiter.orb +28 -14
  46. package/behaviors/registry/ml/molecules/std-escalating-decision.orb +10 -5
  47. package/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +4 -2
  48. package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +2 -1
  49. package/behaviors/registry/ui/core/atoms/std-browse.orb +4 -0
  50. package/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +2 -1
  51. package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +4 -2
  52. package/behaviors/registry/ui/core/atoms/std-esign-request.orb +6 -3
  53. package/behaviors/registry/ui/core/atoms/std-gallery.orb +18 -9
  54. package/behaviors/registry/ui/core/atoms/std-import.orb +4 -2
  55. package/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +214 -0
  56. package/behaviors/registry/ui/core/molecules/ui-popover.orb +112 -1
  57. package/behaviors/registry/ui/core/molecules/ui-table-view.orb +44 -0
  58. package/behaviors/registry/ui/game/atoms/std-arcade-flow.orb +1 -0
  59. package/behaviors/registry/ui/game/atoms/std-arcade-play.orb +1 -0
  60. package/behaviors/registry/ui/game/atoms/std-chase-ai.orb +1 -0
  61. package/behaviors/registry/ui/game/atoms/std-dungeon-combat.orb +1 -0
  62. package/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -0
  63. package/behaviors/registry/ui/game/atoms/std-gather.orb +1 -0
  64. package/behaviors/registry/ui/game/atoms/std-gold.orb +1 -0
  65. package/behaviors/registry/ui/game/atoms/std-grid-tactics.orb +1 -0
  66. package/behaviors/registry/ui/game/atoms/std-hero-nav.orb +1 -0
  67. package/behaviors/registry/ui/game/atoms/std-market-flow.orb +1 -0
  68. package/behaviors/registry/ui/game/atoms/std-objective-flow.orb +1 -0
  69. package/behaviors/registry/ui/game/atoms/std-objective-reach.orb +1 -0
  70. package/behaviors/registry/ui/game/atoms/std-patience.orb +1 -0
  71. package/behaviors/registry/ui/game/atoms/std-production.orb +1 -0
  72. package/behaviors/registry/ui/game/atoms/std-round-flow.orb +1 -0
  73. package/behaviors/registry/ui/game/atoms/std-score.orb +1 -0
  74. package/behaviors/registry/ui/game/atoms/std-survival-flow.orb +1 -0
  75. package/behaviors/registry/ui/game/atoms/std-xp.orb +1 -0
  76. package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +2 -2
  77. package/behaviors/registry/ui/game/molecules/std-crew-board-2d.orb +10 -12
  78. package/behaviors/registry/ui/game/molecules/std-dungeon-board-2d.orb +15 -18
  79. package/behaviors/registry/ui/game/molecules/std-tactics-board-2d.orb +860 -138
  80. package/behaviors/registry/ui/game/molecules/std-worldmap-board-2d.orb +4 -54
  81. package/behaviors/registry/ui/game/molecules/ui-canvas-2d.orb +16 -1
  82. package/behaviors/registry/ui/game/molecules/ui-canvas.orb +14 -0
  83. package/behaviors/registry/ui/game/organisms/ui-arena-board.orb +5 -6
  84. package/behaviors/registry/ui/game/organisms/ui-battle-board.orb +86 -99
  85. package/behaviors/registry/ui/game/organisms/ui-builder-board.orb +21 -226
  86. package/behaviors/registry/ui/game/organisms/ui-card-battler-board.orb +42 -0
  87. package/behaviors/registry/ui/game/organisms/ui-castle-board.orb +30 -9
  88. package/behaviors/registry/ui/game/organisms/ui-city-builder-board.orb +49 -0
  89. package/behaviors/registry/ui/game/organisms/ui-fishing-board.orb +16 -16
  90. package/behaviors/registry/ui/game/organisms/ui-grid-tactics-demo-board.orb +5 -6
  91. package/behaviors/registry/ui/game/organisms/ui-hex-strategy-board.orb +30 -10
  92. package/behaviors/registry/ui/game/organisms/ui-holiday-runner-board.orb +2 -3
  93. package/behaviors/registry/ui/game/organisms/ui-minigolf-board.orb +55 -11
  94. package/behaviors/registry/ui/game/organisms/ui-physics-sandbox-board.orb +10 -10
  95. package/behaviors/registry/ui/game/organisms/ui-pinball-board.orb +8 -8
  96. package/behaviors/registry/ui/game/organisms/ui-pirate-board.orb +14 -0
  97. package/behaviors/registry/ui/game/organisms/ui-platformer-board.orb +72 -0
  98. package/behaviors/registry/ui/game/organisms/ui-roguelike-board.orb +10 -10
  99. package/behaviors/registry/ui/game/organisms/ui-sokoban-board.orb +10 -10
  100. package/behaviors/registry/ui/game/organisms/ui-sports-board.orb +60 -0
  101. package/behaviors/registry/ui/game/organisms/ui-state-architect-board.orb +8 -8
  102. package/behaviors/registry/ui/game/organisms/ui-tactics-demo-2d.orb +48 -28
  103. package/behaviors/registry/ui/game/organisms/ui-tanks-board.orb +30 -10
  104. package/behaviors/registry/ui/game/organisms/ui-topdown-rts-board.orb +31 -12
  105. package/behaviors/registry/ui/game/organisms/ui-tower-defense-board.orb +8 -0
  106. package/behaviors/registry/ui/game/organisms/ui-uncontrolled-battle-board.orb +5 -0
  107. package/behaviors/registry/ui/game/organisms/ui-winter-ski-board.orb +14 -14
  108. package/behaviors/registry/ui/game/organisms/ui-world-map-board.orb +8 -12
  109. package/dist/behaviors/behaviors-embeddings.json +384 -380
  110. package/dist/behaviors/behaviors-registry.json +594 -57
  111. package/dist/behaviors/exports-reader.js +3409 -3101
  112. package/dist/behaviors/functions/index.d.ts +596 -5
  113. package/dist/behaviors/functions/index.js +3389 -3102
  114. package/dist/behaviors/index.d.ts +1 -1
  115. package/dist/behaviors/index.js +3410 -3102
  116. package/dist/behaviors/knob-embeddings.json +1 -1
  117. package/dist/behaviors/query.js +3409 -3101
  118. package/dist/behaviors/registry/factory-signatures.json +6211 -2181
  119. package/dist/behaviors/registry/infra/atoms/std-approval-gate.orb +16 -8
  120. package/dist/behaviors/registry/infra/atoms/std-cache-aside.orb +62 -31
  121. package/dist/behaviors/registry/infra/atoms/std-circuit-breaker.orb +32 -16
  122. package/dist/behaviors/registry/infra/atoms/std-data-erasure.orb +17 -9
  123. package/dist/behaviors/registry/infra/atoms/std-mod-queue.orb +16 -8
  124. package/dist/behaviors/registry/infra/atoms/std-rate-limiter.orb +28 -14
  125. package/dist/behaviors/registry/ml/molecules/std-escalating-decision.orb +10 -5
  126. package/dist/behaviors/registry/ml/molecules/std-knowledge-tracing.orb +4 -2
  127. package/dist/behaviors/registry/ui/core/atoms/std-billable-hour.orb +2 -1
  128. package/dist/behaviors/registry/ui/core/atoms/std-browse.orb +4 -0
  129. package/dist/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +2 -1
  130. package/dist/behaviors/registry/ui/core/atoms/std-esign-flow.orb +4 -2
  131. package/dist/behaviors/registry/ui/core/atoms/std-esign-request.orb +6 -3
  132. package/dist/behaviors/registry/ui/core/atoms/std-gallery.orb +18 -9
  133. package/dist/behaviors/registry/ui/core/atoms/std-import.orb +4 -2
  134. package/dist/behaviors/registry/ui/core/molecules/ui-emoji-picker.orb +214 -0
  135. package/dist/behaviors/registry/ui/core/molecules/ui-popover.orb +112 -1
  136. package/dist/behaviors/registry/ui/core/molecules/ui-table-view.orb +44 -0
  137. package/dist/behaviors/registry/ui/game/atoms/std-arcade-flow.orb +1 -0
  138. package/dist/behaviors/registry/ui/game/atoms/std-arcade-play.orb +1 -0
  139. package/dist/behaviors/registry/ui/game/atoms/std-chase-ai.orb +1 -0
  140. package/dist/behaviors/registry/ui/game/atoms/std-dungeon-combat.orb +1 -0
  141. package/dist/behaviors/registry/ui/game/atoms/std-fx-particles.orb +1 -0
  142. package/dist/behaviors/registry/ui/game/atoms/std-gather.orb +1 -0
  143. package/dist/behaviors/registry/ui/game/atoms/std-gold.orb +1 -0
  144. package/dist/behaviors/registry/ui/game/atoms/std-grid-tactics.orb +1 -0
  145. package/dist/behaviors/registry/ui/game/atoms/std-hero-nav.orb +1 -0
  146. package/dist/behaviors/registry/ui/game/atoms/std-market-flow.orb +1 -0
  147. package/dist/behaviors/registry/ui/game/atoms/std-objective-flow.orb +1 -0
  148. package/dist/behaviors/registry/ui/game/atoms/std-objective-reach.orb +1 -0
  149. package/dist/behaviors/registry/ui/game/atoms/std-patience.orb +1 -0
  150. package/dist/behaviors/registry/ui/game/atoms/std-production.orb +1 -0
  151. package/dist/behaviors/registry/ui/game/atoms/std-round-flow.orb +1 -0
  152. package/dist/behaviors/registry/ui/game/atoms/std-score.orb +1 -0
  153. package/dist/behaviors/registry/ui/game/atoms/std-survival-flow.orb +1 -0
  154. package/dist/behaviors/registry/ui/game/atoms/std-xp.orb +1 -0
  155. package/dist/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +2 -2
  156. package/dist/behaviors/registry/ui/game/molecules/std-crew-board-2d.orb +10 -12
  157. package/dist/behaviors/registry/ui/game/molecules/std-dungeon-board-2d.orb +15 -18
  158. package/dist/behaviors/registry/ui/game/molecules/std-tactics-board-2d.orb +860 -138
  159. package/dist/behaviors/registry/ui/game/molecules/std-worldmap-board-2d.orb +4 -54
  160. package/dist/behaviors/registry/ui/game/molecules/ui-canvas-2d.orb +16 -1
  161. package/dist/behaviors/registry/ui/game/molecules/ui-canvas.orb +14 -0
  162. package/dist/behaviors/registry/ui/game/organisms/ui-arena-board.orb +5 -6
  163. package/dist/behaviors/registry/ui/game/organisms/ui-battle-board.orb +86 -99
  164. package/dist/behaviors/registry/ui/game/organisms/ui-builder-board.orb +21 -226
  165. package/dist/behaviors/registry/ui/game/organisms/ui-card-battler-board.orb +42 -0
  166. package/dist/behaviors/registry/ui/game/organisms/ui-castle-board.orb +30 -9
  167. package/dist/behaviors/registry/ui/game/organisms/ui-city-builder-board.orb +49 -0
  168. package/dist/behaviors/registry/ui/game/organisms/ui-fishing-board.orb +16 -16
  169. package/dist/behaviors/registry/ui/game/organisms/ui-grid-tactics-demo-board.orb +5 -6
  170. package/dist/behaviors/registry/ui/game/organisms/ui-hex-strategy-board.orb +30 -10
  171. package/dist/behaviors/registry/ui/game/organisms/ui-holiday-runner-board.orb +2 -3
  172. package/dist/behaviors/registry/ui/game/organisms/ui-minigolf-board.orb +55 -11
  173. package/dist/behaviors/registry/ui/game/organisms/ui-physics-sandbox-board.orb +10 -10
  174. package/dist/behaviors/registry/ui/game/organisms/ui-pinball-board.orb +8 -8
  175. package/dist/behaviors/registry/ui/game/organisms/ui-pirate-board.orb +14 -0
  176. package/dist/behaviors/registry/ui/game/organisms/ui-platformer-board.orb +72 -0
  177. package/dist/behaviors/registry/ui/game/organisms/ui-roguelike-board.orb +10 -10
  178. package/dist/behaviors/registry/ui/game/organisms/ui-sokoban-board.orb +10 -10
  179. package/dist/behaviors/registry/ui/game/organisms/ui-sports-board.orb +60 -0
  180. package/dist/behaviors/registry/ui/game/organisms/ui-state-architect-board.orb +8 -8
  181. package/dist/behaviors/registry/ui/game/organisms/ui-tactics-demo-2d.orb +48 -28
  182. package/dist/behaviors/registry/ui/game/organisms/ui-tanks-board.orb +30 -10
  183. package/dist/behaviors/registry/ui/game/organisms/ui-topdown-rts-board.orb +31 -12
  184. package/dist/behaviors/registry/ui/game/organisms/ui-tower-defense-board.orb +8 -0
  185. package/dist/behaviors/registry/ui/game/organisms/ui-uncontrolled-battle-board.orb +5 -0
  186. package/dist/behaviors/registry/ui/game/organisms/ui-winter-ski-board.orb +14 -14
  187. package/dist/behaviors/registry/ui/game/organisms/ui-world-map-board.orb +8 -12
  188. package/dist/behaviors-embeddings.json +384 -380
  189. package/dist/behaviors-registry.json +594 -57
  190. package/dist/index.d.ts +1 -1
  191. package/dist/index.js +3410 -3102
  192. package/dist/knob-embeddings.json +1 -1
  193. package/dist/registry/factory-signatures.json +6211 -2181
  194. package/package.json +2 -2
@@ -10,15 +10,6 @@
10
10
  "owner": "workspace",
11
11
  "renames": []
12
12
  },
13
- "evt_01KXG04WSJ1QXFF4Y4YJASB7DM": {
14
- "bakedName": "START",
15
- "curName": "START",
16
- "id": "evt_01KXG04WSJ1QXFF4Y4YJASB7DM",
17
- "kind": "event",
18
- "owner": "workspace",
19
- "parent": "trt_01KXG04WSJK7538267REVQZCW0",
20
- "renames": []
21
- },
22
13
  "evt_01KXG04WSN2BYA1K6M5W112QH3": {
23
14
  "bakedName": "INIT",
24
15
  "curName": "INIT",
@@ -791,11 +782,6 @@
791
782
  "scope": "instance",
792
783
  "stateMachine": {
793
784
  "events": [
794
- {
795
- "id": "evt_01KXG04WSJ1QXFF4Y4YJASB7DM",
796
- "key": "START",
797
- "name": "Start"
798
- },
799
785
  {
800
786
  "id": "evt_01KXG04WSN2BYA1K6M5W112QH3",
801
787
  "key": "INIT",
@@ -871,9 +857,6 @@
871
857
  "isInitial": true,
872
858
  "name": "playing"
873
859
  },
874
- {
875
- "name": "menu"
876
- },
877
860
  {
878
861
  "name": "complete"
879
862
  }
@@ -1082,214 +1065,6 @@
1082
1065
  }
1083
1066
  ]
1084
1067
  ],
1085
- "event": "START",
1086
- "eventId": "evt_01KXG04WSJ1QXFF4Y4YJASB7DM",
1087
- "from": "menu",
1088
- "to": "playing"
1089
- },
1090
- {
1091
- "effects": [
1092
- [
1093
- "set",
1094
- "@entity.components",
1095
- "@config.components"
1096
- ],
1097
- [
1098
- "set",
1099
- "@entity.slots",
1100
- [
1101
- "array/map",
1102
- "@config.slots",
1103
- [
1104
- "fn",
1105
- "s",
1106
- [
1107
- "object/merge",
1108
- "@s",
1109
- {
1110
- "options": [
1111
- "array/map",
1112
- "@config.components",
1113
- [
1114
- "fn",
1115
- "c",
1116
- {
1117
- "componentId": [
1118
- "object/get",
1119
- "@c",
1120
- "id"
1121
- ],
1122
- "iconUrl": [
1123
- "object/get",
1124
- "@c",
1125
- "iconUrl"
1126
- ],
1127
- "label": [
1128
- "object/get",
1129
- "@c",
1130
- "label"
1131
- ],
1132
- "slotId": [
1133
- "object/get",
1134
- "@s",
1135
- "id"
1136
- ]
1137
- }
1138
- ]
1139
- ]
1140
- }
1141
- ]
1142
- ]
1143
- ]
1144
- ],
1145
- [
1146
- "set",
1147
- "@entity.title",
1148
- "@config.title"
1149
- ],
1150
- [
1151
- "set",
1152
- "@entity.description",
1153
- "@config.description"
1154
- ],
1155
- [
1156
- "set",
1157
- "@entity.hint",
1158
- "@config.hint"
1159
- ],
1160
- [
1161
- "set",
1162
- "@entity.attempts",
1163
- 0.0
1164
- ],
1165
- [
1166
- "set",
1167
- "@entity.result",
1168
- "none"
1169
- ],
1170
- [
1171
- "render-ui",
1172
- "main",
1173
- {
1174
- "children": [
1175
- {
1176
- "children": [
1177
- {
1178
- "content": "@entity.title",
1179
- "type": "typography",
1180
- "variant": "h4"
1181
- },
1182
- {
1183
- "content": "@entity.description",
1184
- "type": "typography",
1185
- "variant": "body"
1186
- }
1187
- ],
1188
- "type": "card"
1189
- },
1190
- {
1191
- "children": [
1192
- {
1193
- "entity": "@entity.slots",
1194
- "fields": [],
1195
- "gap": "sm",
1196
- "renderItem": [
1197
- "fn",
1198
- "s",
1199
- {
1200
- "children": [
1201
- {
1202
- "children": [
1203
- {
1204
- "content": "@s.id",
1205
- "type": "typography",
1206
- "variant": "label"
1207
- },
1208
- {
1209
- "label": "@s.placedComponentId",
1210
- "type": "badge"
1211
- }
1212
- ],
1213
- "direction": "horizontal",
1214
- "gap": "sm",
1215
- "justify": "between",
1216
- "type": "stack"
1217
- },
1218
- {
1219
- "entity": "@s.options",
1220
- "fields": [],
1221
- "gap": "sm",
1222
- "renderItem": [
1223
- "fn",
1224
- "opt",
1225
- {
1226
- "action": "PLACE",
1227
- "actionPayload": {
1228
- "componentId": "@opt.componentId",
1229
- "slotId": "@opt.slotId"
1230
- },
1231
- "iconAsset": "@opt.iconUrl",
1232
- "label": "@opt.label",
1233
- "type": "button",
1234
- "variant": "primary"
1235
- }
1236
- ],
1237
- "type": "data-list"
1238
- }
1239
- ],
1240
- "type": "card"
1241
- }
1242
- ],
1243
- "type": "data-list"
1244
- }
1245
- ],
1246
- "type": "card"
1247
- }
1248
- ],
1249
- "hud": {
1250
- "children": [
1251
- {
1252
- "stats": [
1253
- {
1254
- "label": "Attempts",
1255
- "value": "@entity.attempts"
1256
- },
1257
- {
1258
- "label": "Status",
1259
- "value": "@entity.result"
1260
- }
1261
- ],
1262
- "type": "game-hud"
1263
- },
1264
- {
1265
- "children": [
1266
- {
1267
- "action": "CHECK",
1268
- "label": "Check",
1269
- "type": "button",
1270
- "variant": "primary"
1271
- },
1272
- {
1273
- "action": "PLAY_AGAIN",
1274
- "label": "Reset",
1275
- "type": "button",
1276
- "variant": "secondary"
1277
- }
1278
- ],
1279
- "direction": "horizontal",
1280
- "gap": "sm",
1281
- "type": "stack"
1282
- }
1283
- ],
1284
- "direction": "horizontal",
1285
- "gap": "md",
1286
- "justify": "between",
1287
- "type": "stack"
1288
- },
1289
- "type": "game-shell"
1290
- }
1291
- ]
1292
- ],
1293
1068
  "event": "INIT",
1294
1069
  "eventId": "evt_01KXG04WSN2BYA1K6M5W112QH3",
1295
1070
  "from": "playing",
@@ -1794,6 +1569,11 @@
1794
1569
  },
1795
1570
  {
1796
1571
  "effects": [
1572
+ [
1573
+ "set",
1574
+ "@entity.components",
1575
+ "@config.components"
1576
+ ],
1797
1577
  [
1798
1578
  "set",
1799
1579
  "@entity.slots",
@@ -1842,6 +1622,21 @@
1842
1622
  ]
1843
1623
  ]
1844
1624
  ],
1625
+ [
1626
+ "set",
1627
+ "@entity.title",
1628
+ "@config.title"
1629
+ ],
1630
+ [
1631
+ "set",
1632
+ "@entity.description",
1633
+ "@config.description"
1634
+ ],
1635
+ [
1636
+ "set",
1637
+ "@entity.hint",
1638
+ "@config.hint"
1639
+ ],
1845
1640
  [
1846
1641
  "set",
1847
1642
  "@entity.attempts",
@@ -1978,7 +1773,7 @@
1978
1773
  "event": "PLAY_AGAIN",
1979
1774
  "eventId": "evt_01KXG04WSNARM64TKS94ZYP954",
1980
1775
  "from": "complete",
1981
- "to": "menu"
1776
+ "to": "playing"
1982
1777
  }
1983
1778
  ]
1984
1779
  }
@@ -2099,6 +2099,22 @@
2099
2099
  "@entity.result"
2100
2100
  ]
2101
2101
  ],
2102
+ [
2103
+ "if",
2104
+ [
2105
+ "!=",
2106
+ "@entity.result",
2107
+ "none"
2108
+ ],
2109
+ [
2110
+ "emit",
2111
+ "GAME_END",
2112
+ {
2113
+ "result": "@entity.result"
2114
+ }
2115
+ ],
2116
+ null
2117
+ ],
2102
2118
  [
2103
2119
  "render-ui",
2104
2120
  "main",
@@ -2559,6 +2575,32 @@
2559
2575
  "justify": "between",
2560
2576
  "type": "stack"
2561
2577
  },
2578
+ "overlay": {
2579
+ "options": [
2580
+ {
2581
+ "event": "PLAY_AGAIN",
2582
+ "id": "again",
2583
+ "label": "Play Again",
2584
+ "variant": "primary"
2585
+ }
2586
+ ],
2587
+ "subtitle": [
2588
+ "str/concat",
2589
+ "Result: ",
2590
+ "@entity.result"
2591
+ ],
2592
+ "title": [
2593
+ "if",
2594
+ [
2595
+ "==",
2596
+ "@entity.result",
2597
+ "won"
2598
+ ],
2599
+ "VICTORY!",
2600
+ "DEFEAT"
2601
+ ],
2602
+ "type": "game-menu"
2603
+ },
2562
2604
  "type": "game-shell"
2563
2605
  }
2564
2606
  ]
@@ -9535,9 +9535,17 @@
9535
9535
  "eventId": "evt_01KXG04WYVZ6D7S7BVHPFGDR2J",
9536
9536
  "from": "idle",
9537
9537
  "guard": [
9538
- ">=",
9539
- "@entity.wave",
9540
- 3.0
9538
+ "and",
9539
+ [
9540
+ ">=",
9541
+ "@entity.wave",
9542
+ 3.0
9543
+ ],
9544
+ [
9545
+ ">",
9546
+ "@entity.health",
9547
+ 0.0
9548
+ ]
9541
9549
  ],
9542
9550
  "to": "victory"
9543
9551
  },
@@ -12686,7 +12694,11 @@
12686
12694
  0.0,
12687
12695
  [
12688
12696
  "-",
12689
- "@entity.wave",
12697
+ [
12698
+ "*",
12699
+ "@entity.wave",
12700
+ 4.0
12701
+ ],
12690
12702
  [
12691
12703
  "array/len",
12692
12704
  "@entity.buildings"
@@ -13325,11 +13337,20 @@
13325
13337
  }
13326
13338
  ],
13327
13339
  [
13328
- "emit",
13329
- "WAVE_DEFEATED",
13330
- {
13331
- "wave": "@entity.wave"
13332
- }
13340
+ "if",
13341
+ [
13342
+ ">",
13343
+ "@entity.health",
13344
+ 0.0
13345
+ ],
13346
+ [
13347
+ "emit",
13348
+ "WAVE_DEFEATED",
13349
+ {
13350
+ "wave": "@entity.wave"
13351
+ }
13352
+ ],
13353
+ null
13333
13354
  ]
13334
13355
  ],
13335
13356
  "guard": [
@@ -5608,6 +5608,7 @@
5608
5608
  "type": "draw-sprite-layer"
5609
5609
  }
5610
5610
  ],
5611
+ "fit": true,
5611
5612
  "projection": "isometric",
5612
5613
  "showMinimap": true,
5613
5614
  "tileClickEvent": "PLACE_BUILDING",
@@ -5993,6 +5994,7 @@
5993
5994
  "type": "draw-sprite-layer"
5994
5995
  }
5995
5996
  ],
5997
+ "fit": true,
5996
5998
  "projection": "isometric",
5997
5999
  "showMinimap": true,
5998
6000
  "tileClickEvent": "PLACE_BUILDING",
@@ -6229,6 +6231,22 @@
6229
6231
  "@entity.result"
6230
6232
  ]
6231
6233
  ],
6234
+ [
6235
+ "if",
6236
+ [
6237
+ "!=",
6238
+ "@entity.result",
6239
+ "none"
6240
+ ],
6241
+ [
6242
+ "emit",
6243
+ "GAME_END",
6244
+ {
6245
+ "result": "@entity.result"
6246
+ }
6247
+ ],
6248
+ null
6249
+ ],
6232
6250
  [
6233
6251
  "set",
6234
6252
  "@entity.selectedUnitId",
@@ -6471,6 +6489,7 @@
6471
6489
  "type": "draw-sprite-layer"
6472
6490
  }
6473
6491
  ],
6492
+ "fit": true,
6474
6493
  "projection": "isometric",
6475
6494
  "showMinimap": true,
6476
6495
  "tileClickEvent": "PLACE_BUILDING",
@@ -6981,6 +7000,7 @@
6981
7000
  "type": "draw-sprite-layer"
6982
7001
  }
6983
7002
  ],
7003
+ "fit": true,
6984
7004
  "projection": "isometric",
6985
7005
  "showMinimap": true,
6986
7006
  "tileClickEvent": "PLACE_BUILDING",
@@ -7118,6 +7138,32 @@
7118
7138
  "url": "https://almadar-kflow-assets.web.app/shared/_shared/kenney-ui-pack/ui/greySheet.png",
7119
7139
  "variant": ""
7120
7140
  },
7141
+ "overlay": {
7142
+ "options": [
7143
+ {
7144
+ "event": "PLAY_AGAIN",
7145
+ "id": "again",
7146
+ "label": "Play Again",
7147
+ "variant": "primary"
7148
+ }
7149
+ ],
7150
+ "subtitle": [
7151
+ "str/concat",
7152
+ "Population: ",
7153
+ "@entity.population"
7154
+ ],
7155
+ "title": [
7156
+ "if",
7157
+ [
7158
+ "==",
7159
+ "@entity.result",
7160
+ "won"
7161
+ ],
7162
+ "CITY COMPLETE!",
7163
+ "GAME OVER"
7164
+ ],
7165
+ "type": "game-menu"
7166
+ },
7121
7167
  "type": "game-shell"
7122
7168
  }
7123
7169
  ]
@@ -7429,6 +7475,7 @@
7429
7475
  "type": "draw-sprite-layer"
7430
7476
  }
7431
7477
  ],
7478
+ "fit": true,
7432
7479
  "projection": "isometric",
7433
7480
  "showMinimap": true,
7434
7481
  "tileClickEvent": "PLACE_BUILDING",
@@ -7886,6 +7933,7 @@
7886
7933
  "type": "draw-sprite-layer"
7887
7934
  }
7888
7935
  ],
7936
+ "fit": true,
7889
7937
  "projection": "isometric",
7890
7938
  "showMinimap": true,
7891
7939
  "tileClickEvent": "PLACE_BUILDING",
@@ -8431,6 +8479,7 @@
8431
8479
  "type": "draw-sprite-layer"
8432
8480
  }
8433
8481
  ],
8482
+ "fit": true,
8434
8483
  "projection": "isometric",
8435
8484
  "showMinimap": true,
8436
8485
  "tileClickEvent": "PLACE_BUILDING",
@@ -3256,7 +3256,7 @@
3256
3256
  "@t",
3257
3257
  "terrainSprite"
3258
3258
  ],
3259
- "height": 0.5,
3259
+ "height": 1.0,
3260
3260
  "position": {
3261
3261
  "x": [
3262
3262
  "object/get",
@@ -3270,7 +3270,7 @@
3270
3270
  ]
3271
3271
  },
3272
3272
  "type": "draw-sprite",
3273
- "width": 0.5
3273
+ "width": 1.0
3274
3274
  }
3275
3275
  ]
3276
3276
  ],
@@ -3773,7 +3773,7 @@
3773
3773
  "@t",
3774
3774
  "terrainSprite"
3775
3775
  ],
3776
- "height": 0.5,
3776
+ "height": 1.0,
3777
3777
  "position": {
3778
3778
  "x": [
3779
3779
  "object/get",
@@ -3787,7 +3787,7 @@
3787
3787
  ]
3788
3788
  },
3789
3789
  "type": "draw-sprite",
3790
- "width": 0.5
3790
+ "width": 1.0
3791
3791
  }
3792
3792
  ]
3793
3793
  ],
@@ -4422,7 +4422,7 @@
4422
4422
  "@t",
4423
4423
  "terrainSprite"
4424
4424
  ],
4425
- "height": 0.5,
4425
+ "height": 1.0,
4426
4426
  "position": {
4427
4427
  "x": [
4428
4428
  "object/get",
@@ -4436,7 +4436,7 @@
4436
4436
  ]
4437
4437
  },
4438
4438
  "type": "draw-sprite",
4439
- "width": 0.5
4439
+ "width": 1.0
4440
4440
  }
4441
4441
  ]
4442
4442
  ],
@@ -4893,7 +4893,7 @@
4893
4893
  "@t",
4894
4894
  "terrainSprite"
4895
4895
  ],
4896
- "height": 0.5,
4896
+ "height": 1.0,
4897
4897
  "position": {
4898
4898
  "x": [
4899
4899
  "object/get",
@@ -4907,7 +4907,7 @@
4907
4907
  ]
4908
4908
  },
4909
4909
  "type": "draw-sprite",
4910
- "width": 0.5
4910
+ "width": 1.0
4911
4911
  }
4912
4912
  ]
4913
4913
  ],
@@ -5416,7 +5416,7 @@
5416
5416
  "@t",
5417
5417
  "terrainSprite"
5418
5418
  ],
5419
- "height": 0.5,
5419
+ "height": 1.0,
5420
5420
  "position": {
5421
5421
  "x": [
5422
5422
  "object/get",
@@ -5430,7 +5430,7 @@
5430
5430
  ]
5431
5431
  },
5432
5432
  "type": "draw-sprite",
5433
- "width": 0.5
5433
+ "width": 1.0
5434
5434
  }
5435
5435
  ]
5436
5436
  ],
@@ -6074,7 +6074,7 @@
6074
6074
  "@t",
6075
6075
  "terrainSprite"
6076
6076
  ],
6077
- "height": 0.5,
6077
+ "height": 1.0,
6078
6078
  "position": {
6079
6079
  "x": [
6080
6080
  "object/get",
@@ -6088,7 +6088,7 @@
6088
6088
  ]
6089
6089
  },
6090
6090
  "type": "draw-sprite",
6091
- "width": 0.5
6091
+ "width": 1.0
6092
6092
  }
6093
6093
  ]
6094
6094
  ],
@@ -6678,7 +6678,7 @@
6678
6678
  "@t",
6679
6679
  "terrainSprite"
6680
6680
  ],
6681
- "height": 0.5,
6681
+ "height": 1.0,
6682
6682
  "position": {
6683
6683
  "x": [
6684
6684
  "object/get",
@@ -6692,7 +6692,7 @@
6692
6692
  ]
6693
6693
  },
6694
6694
  "type": "draw-sprite",
6695
- "width": 0.5
6695
+ "width": 1.0
6696
6696
  }
6697
6697
  ]
6698
6698
  ],
@@ -7155,7 +7155,7 @@
7155
7155
  "@t",
7156
7156
  "terrainSprite"
7157
7157
  ],
7158
- "height": 0.5,
7158
+ "height": 1.0,
7159
7159
  "position": {
7160
7160
  "x": [
7161
7161
  "object/get",
@@ -7169,7 +7169,7 @@
7169
7169
  ]
7170
7170
  },
7171
7171
  "type": "draw-sprite",
7172
- "width": 0.5
7172
+ "width": 1.0
7173
7173
  }
7174
7174
  ]
7175
7175
  ],