@almadar/std 16.81.0 → 16.82.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.
- package/behaviors/registry/ui/game/2d/organisms/ui-battle-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-castle-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-fishing-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-hex-strategy-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-minigolf-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-pinball-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-platformer-board.orb +28 -521
- package/behaviors/registry/ui/game/2d/organisms/ui-racing-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-sokoban-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-space-shmup-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-sports-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-tanks-board.orb +21 -75
- package/behaviors/registry/ui/game/2d/organisms/ui-uncontrolled-battle-board.orb +549 -251
- package/behaviors/registry/ui/game/2d/organisms/ui-world-map-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-battle-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-castle-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-fishing-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-hex-strategy-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-minigolf-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-pinball-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-platformer-board.orb +28 -521
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-racing-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-sokoban-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-space-shmup-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-sports-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-tanks-board.orb +21 -75
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-uncontrolled-battle-board.orb +549 -251
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-world-map-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-battle-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-castle-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-fishing-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-hex-strategy-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-minigolf-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-pinball-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-platformer-board.orb +28 -521
- package/dist/registry/ui/game/2d/organisms/ui-racing-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-sokoban-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-space-shmup-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-sports-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-tanks-board.orb +21 -75
- package/dist/registry/ui/game/2d/organisms/ui-uncontrolled-battle-board.orb +549 -251
- package/dist/registry/ui/game/2d/organisms/ui-world-map-board.orb +21 -75
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "UncontrolledBattleBoard
|
|
2
|
+
"description": "UncontrolledBattleBoard — game-shell composition with LOLO-driven sprite animation and combat effects; self-resolving auto-battle.",
|
|
3
3
|
"name": "ui-uncontrolled-battle-board",
|
|
4
4
|
"orbitals": [
|
|
5
5
|
{
|
|
@@ -241,6 +241,9 @@
|
|
|
241
241
|
"traits": [
|
|
242
242
|
{
|
|
243
243
|
"ref": "UncontrolledBattleBoardRender"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"ref": "UncontrolledBattleBoardAnimTick"
|
|
244
247
|
}
|
|
245
248
|
]
|
|
246
249
|
}
|
|
@@ -959,7 +962,7 @@
|
|
|
959
962
|
"unitType": "shadow"
|
|
960
963
|
}
|
|
961
964
|
],
|
|
962
|
-
"description": "Starting unit roster
|
|
965
|
+
"description": "Starting unit roster — each needs id, team (player|enemy), hp, atk, position.",
|
|
963
966
|
"items": {
|
|
964
967
|
"properties": {
|
|
965
968
|
"animation": {
|
|
@@ -1801,7 +1804,7 @@
|
|
|
1801
1804
|
},
|
|
1802
1805
|
"emits": [
|
|
1803
1806
|
{
|
|
1804
|
-
"description": "stepEvent prop
|
|
1807
|
+
"description": "stepEvent prop — emitted each battle round with attack result",
|
|
1805
1808
|
"event": "STEP",
|
|
1806
1809
|
"payloadSchema": [
|
|
1807
1810
|
{
|
|
@@ -1824,7 +1827,7 @@
|
|
|
1824
1827
|
"tier": "domain"
|
|
1825
1828
|
},
|
|
1826
1829
|
{
|
|
1827
|
-
"description": "playAgainEvent prop
|
|
1830
|
+
"description": "playAgainEvent prop — reset + restart the battle",
|
|
1828
1831
|
"event": "PLAY_AGAIN",
|
|
1829
1832
|
"payloadSchema": [
|
|
1830
1833
|
{
|
|
@@ -1836,7 +1839,7 @@
|
|
|
1836
1839
|
"tier": "domain"
|
|
1837
1840
|
},
|
|
1838
1841
|
{
|
|
1839
|
-
"description": "tileClickEvent prop
|
|
1842
|
+
"description": "tileClickEvent prop — emitted when a tile is clicked on the canvas",
|
|
1840
1843
|
"event": "TILE_CLICK",
|
|
1841
1844
|
"payloadSchema": [
|
|
1842
1845
|
{
|
|
@@ -1854,7 +1857,7 @@
|
|
|
1854
1857
|
"tier": "domain"
|
|
1855
1858
|
},
|
|
1856
1859
|
{
|
|
1857
|
-
"description": "unitClickEvent prop
|
|
1860
|
+
"description": "unitClickEvent prop — emitted when a unit is clicked on the canvas",
|
|
1858
1861
|
"event": "UNIT_CLICK",
|
|
1859
1862
|
"payloadSchema": [
|
|
1860
1863
|
{
|
|
@@ -1895,7 +1898,19 @@
|
|
|
1895
1898
|
"name": "Initialize"
|
|
1896
1899
|
},
|
|
1897
1900
|
{
|
|
1898
|
-
"description": "
|
|
1901
|
+
"description": "playAgainEvent prop — reset + restart the battle",
|
|
1902
|
+
"key": "PLAY_AGAIN",
|
|
1903
|
+
"name": "Play Again",
|
|
1904
|
+
"payloadSchema": [
|
|
1905
|
+
{
|
|
1906
|
+
"name": "id",
|
|
1907
|
+
"type": "string"
|
|
1908
|
+
}
|
|
1909
|
+
],
|
|
1910
|
+
"tier": "domain"
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
"description": "stepEvent prop — emitted each battle round with attack result",
|
|
1899
1914
|
"key": "STEP",
|
|
1900
1915
|
"name": "Step",
|
|
1901
1916
|
"payloadSchema": [
|
|
@@ -1918,19 +1933,7 @@
|
|
|
1918
1933
|
"tier": "domain"
|
|
1919
1934
|
},
|
|
1920
1935
|
{
|
|
1921
|
-
"description": "
|
|
1922
|
-
"key": "PLAY_AGAIN",
|
|
1923
|
-
"name": "Play Again",
|
|
1924
|
-
"payloadSchema": [
|
|
1925
|
-
{
|
|
1926
|
-
"name": "id",
|
|
1927
|
-
"type": "string"
|
|
1928
|
-
}
|
|
1929
|
-
],
|
|
1930
|
-
"tier": "domain"
|
|
1931
|
-
},
|
|
1932
|
-
{
|
|
1933
|
-
"description": "tileClickEvent prop \u2014 emitted when a tile is clicked on the canvas",
|
|
1936
|
+
"description": "tileClickEvent prop — emitted when a tile is clicked on the canvas",
|
|
1934
1937
|
"key": "TILE_CLICK",
|
|
1935
1938
|
"name": "Tile Click",
|
|
1936
1939
|
"payloadSchema": [
|
|
@@ -1948,7 +1951,7 @@
|
|
|
1948
1951
|
"tier": "domain"
|
|
1949
1952
|
},
|
|
1950
1953
|
{
|
|
1951
|
-
"description": "unitClickEvent prop
|
|
1954
|
+
"description": "unitClickEvent prop — emitted when a unit is clicked on the canvas",
|
|
1952
1955
|
"key": "UNIT_CLICK",
|
|
1953
1956
|
"name": "Unit Click",
|
|
1954
1957
|
"payloadSchema": [
|
|
@@ -2310,41 +2313,154 @@
|
|
|
2310
2313
|
}
|
|
2311
2314
|
],
|
|
2312
2315
|
"type": "game-hud"
|
|
2313
|
-
}
|
|
2316
|
+
}
|
|
2317
|
+
],
|
|
2318
|
+
"direction": "horizontal",
|
|
2319
|
+
"gap": "md",
|
|
2320
|
+
"justify": "between",
|
|
2321
|
+
"type": "stack"
|
|
2322
|
+
},
|
|
2323
|
+
"type": "game-shell"
|
|
2324
|
+
}
|
|
2325
|
+
]
|
|
2326
|
+
],
|
|
2327
|
+
"event": "INIT",
|
|
2328
|
+
"from": "playing",
|
|
2329
|
+
"to": "playing"
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
"effects": [
|
|
2333
|
+
[
|
|
2334
|
+
"set",
|
|
2335
|
+
"@entity.units",
|
|
2336
|
+
"@config.initialUnits"
|
|
2337
|
+
],
|
|
2338
|
+
[
|
|
2339
|
+
"set",
|
|
2340
|
+
"@entity.turn",
|
|
2341
|
+
1.0
|
|
2342
|
+
],
|
|
2343
|
+
[
|
|
2344
|
+
"set",
|
|
2345
|
+
"@entity.result",
|
|
2346
|
+
"none"
|
|
2347
|
+
],
|
|
2348
|
+
[
|
|
2349
|
+
"set",
|
|
2350
|
+
"@entity.effects",
|
|
2351
|
+
[]
|
|
2352
|
+
],
|
|
2353
|
+
[
|
|
2354
|
+
"set",
|
|
2355
|
+
"@entity.selectedUnitId",
|
|
2356
|
+
""
|
|
2357
|
+
],
|
|
2358
|
+
[
|
|
2359
|
+
"set",
|
|
2360
|
+
"@entity.validMoves",
|
|
2361
|
+
[]
|
|
2362
|
+
],
|
|
2363
|
+
[
|
|
2364
|
+
"render-ui",
|
|
2365
|
+
"main",
|
|
2366
|
+
{
|
|
2367
|
+
"children": [
|
|
2368
|
+
{
|
|
2369
|
+
"assetManifest": "@config.assetManifest",
|
|
2370
|
+
"effects": "@entity.effects",
|
|
2371
|
+
"features": "@config.features",
|
|
2372
|
+
"projection": "isometric",
|
|
2373
|
+
"scale": "@config.scale",
|
|
2374
|
+
"selectedUnitId": "@entity.selectedUnitId",
|
|
2375
|
+
"showMinimap": true,
|
|
2376
|
+
"tileClickEvent": "TILE_CLICK",
|
|
2377
|
+
"tiles": "@config.tiles",
|
|
2378
|
+
"type": "canvas-2d",
|
|
2379
|
+
"unitClickEvent": "UNIT_CLICK",
|
|
2380
|
+
"units": "@entity.units",
|
|
2381
|
+
"validMoves": "@entity.validMoves"
|
|
2382
|
+
}
|
|
2383
|
+
],
|
|
2384
|
+
"hud": {
|
|
2385
|
+
"children": [
|
|
2314
2386
|
{
|
|
2315
|
-
"
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2387
|
+
"stats": [
|
|
2388
|
+
{
|
|
2389
|
+
"label": "Round",
|
|
2390
|
+
"value": "@entity.turn"
|
|
2391
|
+
},
|
|
2392
|
+
{
|
|
2393
|
+
"label": "Allies",
|
|
2394
|
+
"value": [
|
|
2395
|
+
"array/len",
|
|
2323
2396
|
[
|
|
2324
|
-
"
|
|
2325
|
-
"
|
|
2397
|
+
"array/filter",
|
|
2398
|
+
"@entity.units",
|
|
2326
2399
|
[
|
|
2327
|
-
"
|
|
2400
|
+
"fn",
|
|
2401
|
+
"u",
|
|
2328
2402
|
[
|
|
2329
|
-
"
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2403
|
+
"and",
|
|
2404
|
+
[
|
|
2405
|
+
"==",
|
|
2406
|
+
[
|
|
2407
|
+
"object/get",
|
|
2408
|
+
"u",
|
|
2409
|
+
"team"
|
|
2410
|
+
],
|
|
2411
|
+
"player"
|
|
2412
|
+
],
|
|
2413
|
+
[
|
|
2414
|
+
">",
|
|
2415
|
+
[
|
|
2416
|
+
"object/get",
|
|
2417
|
+
"u",
|
|
2418
|
+
"hp"
|
|
2419
|
+
],
|
|
2420
|
+
0.0
|
|
2421
|
+
]
|
|
2422
|
+
]
|
|
2334
2423
|
]
|
|
2335
2424
|
]
|
|
2336
2425
|
]
|
|
2337
|
-
|
|
2338
|
-
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
"label": "Enemies",
|
|
2429
|
+
"value": [
|
|
2430
|
+
"array/len",
|
|
2431
|
+
[
|
|
2432
|
+
"array/filter",
|
|
2433
|
+
"@entity.units",
|
|
2434
|
+
[
|
|
2435
|
+
"fn",
|
|
2436
|
+
"u",
|
|
2437
|
+
[
|
|
2438
|
+
"and",
|
|
2439
|
+
[
|
|
2440
|
+
"==",
|
|
2441
|
+
[
|
|
2442
|
+
"object/get",
|
|
2443
|
+
"u",
|
|
2444
|
+
"team"
|
|
2445
|
+
],
|
|
2446
|
+
"enemy"
|
|
2447
|
+
],
|
|
2448
|
+
[
|
|
2449
|
+
">",
|
|
2450
|
+
[
|
|
2451
|
+
"object/get",
|
|
2452
|
+
"u",
|
|
2453
|
+
"hp"
|
|
2454
|
+
],
|
|
2455
|
+
0.0
|
|
2456
|
+
]
|
|
2457
|
+
]
|
|
2458
|
+
]
|
|
2459
|
+
]
|
|
2460
|
+
]
|
|
2461
|
+
}
|
|
2339
2462
|
],
|
|
2340
|
-
"type": "
|
|
2341
|
-
},
|
|
2342
|
-
{
|
|
2343
|
-
"type": "damage-number",
|
|
2344
|
-
"value": 0.0,
|
|
2345
|
-
"visible": false,
|
|
2346
|
-
"x": 0.0,
|
|
2347
|
-
"y": 0.0
|
|
2463
|
+
"type": "game-hud"
|
|
2348
2464
|
}
|
|
2349
2465
|
],
|
|
2350
2466
|
"direction": "horizontal",
|
|
@@ -2356,7 +2472,7 @@
|
|
|
2356
2472
|
}
|
|
2357
2473
|
]
|
|
2358
2474
|
],
|
|
2359
|
-
"event": "
|
|
2475
|
+
"event": "PLAY_AGAIN",
|
|
2360
2476
|
"from": "playing",
|
|
2361
2477
|
"to": "playing"
|
|
2362
2478
|
},
|
|
@@ -3273,39 +3389,11 @@
|
|
|
3273
3389
|
"type": "game-hud"
|
|
3274
3390
|
},
|
|
3275
3391
|
{
|
|
3276
|
-
"
|
|
3277
|
-
"
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
[
|
|
3282
|
-
"array/filter",
|
|
3283
|
-
"@entity.units",
|
|
3284
|
-
[
|
|
3285
|
-
"fn",
|
|
3286
|
-
"u",
|
|
3287
|
-
[
|
|
3288
|
-
"==",
|
|
3289
|
-
[
|
|
3290
|
-
"object/get",
|
|
3291
|
-
"u",
|
|
3292
|
-
"team"
|
|
3293
|
-
],
|
|
3294
|
-
"player"
|
|
3295
|
-
]
|
|
3296
|
-
]
|
|
3297
|
-
]
|
|
3298
|
-
],
|
|
3299
|
-
"modelUrl"
|
|
3300
|
-
],
|
|
3301
|
-
"type": "sprite"
|
|
3302
|
-
},
|
|
3303
|
-
{
|
|
3304
|
-
"type": "damage-number",
|
|
3305
|
-
"value": 0.0,
|
|
3306
|
-
"visible": false,
|
|
3307
|
-
"x": 0.0,
|
|
3308
|
-
"y": 0.0
|
|
3392
|
+
"action": "PLAY_AGAIN",
|
|
3393
|
+
"icon": "refresh",
|
|
3394
|
+
"label": "Play Again",
|
|
3395
|
+
"type": "button",
|
|
3396
|
+
"variant": "primary"
|
|
3309
3397
|
}
|
|
3310
3398
|
],
|
|
3311
3399
|
"direction": "horizontal",
|
|
@@ -3326,80 +3414,6 @@
|
|
|
3326
3414
|
"ticks": [
|
|
3327
3415
|
{
|
|
3328
3416
|
"effects": [
|
|
3329
|
-
[
|
|
3330
|
-
"set",
|
|
3331
|
-
"@entity.units",
|
|
3332
|
-
[
|
|
3333
|
-
"array/map",
|
|
3334
|
-
"@entity.units",
|
|
3335
|
-
[
|
|
3336
|
-
"fn",
|
|
3337
|
-
"u",
|
|
3338
|
-
[
|
|
3339
|
-
"object/merge",
|
|
3340
|
-
"u",
|
|
3341
|
-
{
|
|
3342
|
-
"frame": [
|
|
3343
|
-
"%",
|
|
3344
|
-
[
|
|
3345
|
-
"+",
|
|
3346
|
-
[
|
|
3347
|
-
"object/get",
|
|
3348
|
-
"u",
|
|
3349
|
-
"frame"
|
|
3350
|
-
],
|
|
3351
|
-
1.0
|
|
3352
|
-
],
|
|
3353
|
-
8.0
|
|
3354
|
-
]
|
|
3355
|
-
}
|
|
3356
|
-
]
|
|
3357
|
-
]
|
|
3358
|
-
]
|
|
3359
|
-
],
|
|
3360
|
-
[
|
|
3361
|
-
"set",
|
|
3362
|
-
"@entity.effects",
|
|
3363
|
-
[
|
|
3364
|
-
"array/filter",
|
|
3365
|
-
[
|
|
3366
|
-
"array/map",
|
|
3367
|
-
"@entity.effects",
|
|
3368
|
-
[
|
|
3369
|
-
"fn",
|
|
3370
|
-
"e",
|
|
3371
|
-
[
|
|
3372
|
-
"object/merge",
|
|
3373
|
-
"e",
|
|
3374
|
-
{
|
|
3375
|
-
"ttl": [
|
|
3376
|
-
"-",
|
|
3377
|
-
[
|
|
3378
|
-
"object/get",
|
|
3379
|
-
"e",
|
|
3380
|
-
"ttl"
|
|
3381
|
-
],
|
|
3382
|
-
1.0
|
|
3383
|
-
]
|
|
3384
|
-
}
|
|
3385
|
-
]
|
|
3386
|
-
]
|
|
3387
|
-
],
|
|
3388
|
-
[
|
|
3389
|
-
"fn",
|
|
3390
|
-
"e",
|
|
3391
|
-
[
|
|
3392
|
-
">",
|
|
3393
|
-
[
|
|
3394
|
-
"object/get",
|
|
3395
|
-
"e",
|
|
3396
|
-
"ttl"
|
|
3397
|
-
],
|
|
3398
|
-
0.0
|
|
3399
|
-
]
|
|
3400
|
-
]
|
|
3401
|
-
]
|
|
3402
|
-
],
|
|
3403
3417
|
[
|
|
3404
3418
|
"render-ui",
|
|
3405
3419
|
"main",
|
|
@@ -3548,7 +3562,7 @@
|
|
|
3548
3562
|
]
|
|
3549
3563
|
],
|
|
3550
3564
|
"interval": 100.0,
|
|
3551
|
-
"name": "
|
|
3565
|
+
"name": "renderTick"
|
|
3552
3566
|
},
|
|
3553
3567
|
{
|
|
3554
3568
|
"effects": [
|
|
@@ -3855,7 +3869,62 @@
|
|
|
3855
3869
|
"u",
|
|
3856
3870
|
"hp"
|
|
3857
3871
|
],
|
|
3858
|
-
|
|
3872
|
+
[
|
|
3873
|
+
"object/get",
|
|
3874
|
+
[
|
|
3875
|
+
"array/first",
|
|
3876
|
+
[
|
|
3877
|
+
"array/filter",
|
|
3878
|
+
"@entity.units",
|
|
3879
|
+
[
|
|
3880
|
+
"fn",
|
|
3881
|
+
"e",
|
|
3882
|
+
[
|
|
3883
|
+
"and",
|
|
3884
|
+
[
|
|
3885
|
+
"and",
|
|
3886
|
+
[
|
|
3887
|
+
"==",
|
|
3888
|
+
[
|
|
3889
|
+
"object/get",
|
|
3890
|
+
"e",
|
|
3891
|
+
"team"
|
|
3892
|
+
],
|
|
3893
|
+
"enemy"
|
|
3894
|
+
],
|
|
3895
|
+
[
|
|
3896
|
+
">",
|
|
3897
|
+
[
|
|
3898
|
+
"object/get",
|
|
3899
|
+
"e",
|
|
3900
|
+
"hp"
|
|
3901
|
+
],
|
|
3902
|
+
0.0
|
|
3903
|
+
]
|
|
3904
|
+
],
|
|
3905
|
+
[
|
|
3906
|
+
"==",
|
|
3907
|
+
[
|
|
3908
|
+
"grid/manhattan-distance",
|
|
3909
|
+
[
|
|
3910
|
+
"object/get",
|
|
3911
|
+
"e",
|
|
3912
|
+
"position"
|
|
3913
|
+
],
|
|
3914
|
+
[
|
|
3915
|
+
"object/get",
|
|
3916
|
+
"u",
|
|
3917
|
+
"position"
|
|
3918
|
+
]
|
|
3919
|
+
],
|
|
3920
|
+
1.0
|
|
3921
|
+
]
|
|
3922
|
+
]
|
|
3923
|
+
]
|
|
3924
|
+
]
|
|
3925
|
+
],
|
|
3926
|
+
"atk"
|
|
3927
|
+
]
|
|
3859
3928
|
]
|
|
3860
3929
|
],
|
|
3861
3930
|
0.0
|
|
@@ -3873,7 +3942,62 @@
|
|
|
3873
3942
|
"u",
|
|
3874
3943
|
"hp"
|
|
3875
3944
|
],
|
|
3876
|
-
|
|
3945
|
+
[
|
|
3946
|
+
"object/get",
|
|
3947
|
+
[
|
|
3948
|
+
"array/first",
|
|
3949
|
+
[
|
|
3950
|
+
"array/filter",
|
|
3951
|
+
"@entity.units",
|
|
3952
|
+
[
|
|
3953
|
+
"fn",
|
|
3954
|
+
"e",
|
|
3955
|
+
[
|
|
3956
|
+
"and",
|
|
3957
|
+
[
|
|
3958
|
+
"and",
|
|
3959
|
+
[
|
|
3960
|
+
"==",
|
|
3961
|
+
[
|
|
3962
|
+
"object/get",
|
|
3963
|
+
"e",
|
|
3964
|
+
"team"
|
|
3965
|
+
],
|
|
3966
|
+
"enemy"
|
|
3967
|
+
],
|
|
3968
|
+
[
|
|
3969
|
+
">",
|
|
3970
|
+
[
|
|
3971
|
+
"object/get",
|
|
3972
|
+
"e",
|
|
3973
|
+
"hp"
|
|
3974
|
+
],
|
|
3975
|
+
0.0
|
|
3976
|
+
]
|
|
3977
|
+
],
|
|
3978
|
+
[
|
|
3979
|
+
"==",
|
|
3980
|
+
[
|
|
3981
|
+
"grid/manhattan-distance",
|
|
3982
|
+
[
|
|
3983
|
+
"object/get",
|
|
3984
|
+
"e",
|
|
3985
|
+
"position"
|
|
3986
|
+
],
|
|
3987
|
+
[
|
|
3988
|
+
"object/get",
|
|
3989
|
+
"u",
|
|
3990
|
+
"position"
|
|
3991
|
+
]
|
|
3992
|
+
],
|
|
3993
|
+
1.0
|
|
3994
|
+
]
|
|
3995
|
+
]
|
|
3996
|
+
]
|
|
3997
|
+
]
|
|
3998
|
+
],
|
|
3999
|
+
"atk"
|
|
4000
|
+
]
|
|
3877
4001
|
]
|
|
3878
4002
|
]
|
|
3879
4003
|
}
|
|
@@ -3887,48 +4011,268 @@
|
|
|
3887
4011
|
],
|
|
3888
4012
|
[
|
|
3889
4013
|
"set",
|
|
3890
|
-
"@entity.
|
|
4014
|
+
"@entity.units",
|
|
3891
4015
|
[
|
|
3892
|
-
"array/
|
|
3893
|
-
"@entity.
|
|
3894
|
-
|
|
3895
|
-
"
|
|
3896
|
-
"
|
|
3897
|
-
|
|
3898
|
-
"
|
|
4016
|
+
"array/map",
|
|
4017
|
+
"@entity.units",
|
|
4018
|
+
[
|
|
4019
|
+
"fn",
|
|
4020
|
+
"u",
|
|
4021
|
+
[
|
|
4022
|
+
"if",
|
|
3899
4023
|
[
|
|
3900
|
-
"
|
|
4024
|
+
"and",
|
|
3901
4025
|
[
|
|
3902
|
-
"
|
|
4026
|
+
"==",
|
|
3903
4027
|
[
|
|
3904
|
-
"
|
|
3905
|
-
"
|
|
4028
|
+
"object/get",
|
|
4029
|
+
"u",
|
|
4030
|
+
"team"
|
|
4031
|
+
],
|
|
4032
|
+
"enemy"
|
|
4033
|
+
],
|
|
4034
|
+
[
|
|
4035
|
+
">",
|
|
4036
|
+
[
|
|
4037
|
+
"object/get",
|
|
4038
|
+
"u",
|
|
4039
|
+
"hp"
|
|
4040
|
+
],
|
|
4041
|
+
0.0
|
|
4042
|
+
]
|
|
4043
|
+
],
|
|
4044
|
+
[
|
|
4045
|
+
"if",
|
|
4046
|
+
[
|
|
4047
|
+
">",
|
|
4048
|
+
[
|
|
4049
|
+
"array/len",
|
|
3906
4050
|
[
|
|
3907
|
-
"
|
|
3908
|
-
"
|
|
4051
|
+
"array/filter",
|
|
4052
|
+
"@entity.units",
|
|
3909
4053
|
[
|
|
3910
|
-
"
|
|
4054
|
+
"fn",
|
|
4055
|
+
"p",
|
|
3911
4056
|
[
|
|
3912
|
-
"
|
|
4057
|
+
"and",
|
|
3913
4058
|
[
|
|
3914
|
-
"
|
|
3915
|
-
|
|
3916
|
-
|
|
4059
|
+
"and",
|
|
4060
|
+
[
|
|
4061
|
+
"==",
|
|
4062
|
+
[
|
|
4063
|
+
"object/get",
|
|
4064
|
+
"p",
|
|
4065
|
+
"team"
|
|
4066
|
+
],
|
|
4067
|
+
"player"
|
|
4068
|
+
],
|
|
4069
|
+
[
|
|
4070
|
+
">",
|
|
4071
|
+
[
|
|
4072
|
+
"object/get",
|
|
4073
|
+
"p",
|
|
4074
|
+
"hp"
|
|
4075
|
+
],
|
|
4076
|
+
0.0
|
|
4077
|
+
]
|
|
3917
4078
|
],
|
|
3918
|
-
|
|
4079
|
+
[
|
|
4080
|
+
"==",
|
|
4081
|
+
[
|
|
4082
|
+
"grid/manhattan-distance",
|
|
4083
|
+
[
|
|
4084
|
+
"object/get",
|
|
4085
|
+
"p",
|
|
4086
|
+
"position"
|
|
4087
|
+
],
|
|
4088
|
+
[
|
|
4089
|
+
"object/get",
|
|
4090
|
+
"u",
|
|
4091
|
+
"position"
|
|
4092
|
+
]
|
|
4093
|
+
],
|
|
4094
|
+
1.0
|
|
4095
|
+
]
|
|
4096
|
+
]
|
|
4097
|
+
]
|
|
4098
|
+
]
|
|
4099
|
+
],
|
|
4100
|
+
0.0
|
|
4101
|
+
],
|
|
4102
|
+
[
|
|
4103
|
+
"object/merge",
|
|
4104
|
+
"u",
|
|
4105
|
+
{
|
|
4106
|
+
"animation": [
|
|
4107
|
+
"if",
|
|
4108
|
+
[
|
|
4109
|
+
"<=",
|
|
4110
|
+
[
|
|
4111
|
+
"math/max",
|
|
4112
|
+
0.0,
|
|
4113
|
+
[
|
|
4114
|
+
"-",
|
|
4115
|
+
[
|
|
4116
|
+
"object/get",
|
|
4117
|
+
"u",
|
|
4118
|
+
"hp"
|
|
4119
|
+
],
|
|
4120
|
+
[
|
|
4121
|
+
"object/get",
|
|
4122
|
+
[
|
|
4123
|
+
"array/first",
|
|
4124
|
+
[
|
|
4125
|
+
"array/filter",
|
|
4126
|
+
"@entity.units",
|
|
4127
|
+
[
|
|
4128
|
+
"fn",
|
|
4129
|
+
"p",
|
|
4130
|
+
[
|
|
4131
|
+
"and",
|
|
4132
|
+
[
|
|
4133
|
+
"and",
|
|
4134
|
+
[
|
|
4135
|
+
"==",
|
|
4136
|
+
[
|
|
4137
|
+
"object/get",
|
|
4138
|
+
"p",
|
|
4139
|
+
"team"
|
|
4140
|
+
],
|
|
4141
|
+
"player"
|
|
4142
|
+
],
|
|
4143
|
+
[
|
|
4144
|
+
">",
|
|
4145
|
+
[
|
|
4146
|
+
"object/get",
|
|
4147
|
+
"p",
|
|
4148
|
+
"hp"
|
|
4149
|
+
],
|
|
4150
|
+
0.0
|
|
4151
|
+
]
|
|
4152
|
+
],
|
|
4153
|
+
[
|
|
4154
|
+
"==",
|
|
4155
|
+
[
|
|
4156
|
+
"grid/manhattan-distance",
|
|
4157
|
+
[
|
|
4158
|
+
"object/get",
|
|
4159
|
+
"p",
|
|
4160
|
+
"position"
|
|
4161
|
+
],
|
|
4162
|
+
[
|
|
4163
|
+
"object/get",
|
|
4164
|
+
"u",
|
|
4165
|
+
"position"
|
|
4166
|
+
]
|
|
4167
|
+
],
|
|
4168
|
+
1.0
|
|
4169
|
+
]
|
|
4170
|
+
]
|
|
4171
|
+
]
|
|
4172
|
+
]
|
|
4173
|
+
],
|
|
4174
|
+
"atk"
|
|
4175
|
+
]
|
|
4176
|
+
]
|
|
4177
|
+
],
|
|
4178
|
+
0.0
|
|
4179
|
+
],
|
|
4180
|
+
"death",
|
|
4181
|
+
"hit"
|
|
4182
|
+
],
|
|
4183
|
+
"hp": [
|
|
4184
|
+
"math/max",
|
|
4185
|
+
0.0,
|
|
4186
|
+
[
|
|
4187
|
+
"-",
|
|
4188
|
+
[
|
|
4189
|
+
"object/get",
|
|
4190
|
+
"u",
|
|
4191
|
+
"hp"
|
|
3919
4192
|
],
|
|
3920
4193
|
[
|
|
3921
|
-
"
|
|
4194
|
+
"object/get",
|
|
3922
4195
|
[
|
|
3923
|
-
"
|
|
3924
|
-
|
|
3925
|
-
|
|
4196
|
+
"array/first",
|
|
4197
|
+
[
|
|
4198
|
+
"array/filter",
|
|
4199
|
+
"@entity.units",
|
|
4200
|
+
[
|
|
4201
|
+
"fn",
|
|
4202
|
+
"p",
|
|
4203
|
+
[
|
|
4204
|
+
"and",
|
|
4205
|
+
[
|
|
4206
|
+
"and",
|
|
4207
|
+
[
|
|
4208
|
+
"==",
|
|
4209
|
+
[
|
|
4210
|
+
"object/get",
|
|
4211
|
+
"p",
|
|
4212
|
+
"team"
|
|
4213
|
+
],
|
|
4214
|
+
"player"
|
|
4215
|
+
],
|
|
4216
|
+
[
|
|
4217
|
+
">",
|
|
4218
|
+
[
|
|
4219
|
+
"object/get",
|
|
4220
|
+
"p",
|
|
4221
|
+
"hp"
|
|
4222
|
+
],
|
|
4223
|
+
0.0
|
|
4224
|
+
]
|
|
4225
|
+
],
|
|
4226
|
+
[
|
|
4227
|
+
"==",
|
|
4228
|
+
[
|
|
4229
|
+
"grid/manhattan-distance",
|
|
4230
|
+
[
|
|
4231
|
+
"object/get",
|
|
4232
|
+
"p",
|
|
4233
|
+
"position"
|
|
4234
|
+
],
|
|
4235
|
+
[
|
|
4236
|
+
"object/get",
|
|
4237
|
+
"u",
|
|
4238
|
+
"position"
|
|
4239
|
+
]
|
|
4240
|
+
],
|
|
4241
|
+
1.0
|
|
4242
|
+
]
|
|
4243
|
+
]
|
|
4244
|
+
]
|
|
4245
|
+
]
|
|
3926
4246
|
],
|
|
3927
|
-
|
|
4247
|
+
"atk"
|
|
3928
4248
|
]
|
|
3929
4249
|
]
|
|
3930
4250
|
]
|
|
3931
|
-
|
|
4251
|
+
}
|
|
4252
|
+
],
|
|
4253
|
+
"u"
|
|
4254
|
+
],
|
|
4255
|
+
"u"
|
|
4256
|
+
]
|
|
4257
|
+
]
|
|
4258
|
+
]
|
|
4259
|
+
],
|
|
4260
|
+
[
|
|
4261
|
+
"set",
|
|
4262
|
+
"@entity.effects",
|
|
4263
|
+
[
|
|
4264
|
+
"array/append",
|
|
4265
|
+
"@entity.effects",
|
|
4266
|
+
{
|
|
4267
|
+
"key": "slash",
|
|
4268
|
+
"ttl": 4.0,
|
|
4269
|
+
"x": [
|
|
4270
|
+
"object/get",
|
|
4271
|
+
[
|
|
4272
|
+
"object/get",
|
|
4273
|
+
[
|
|
4274
|
+
"array/first",
|
|
4275
|
+
"@entity.units"
|
|
3932
4276
|
],
|
|
3933
4277
|
"position"
|
|
3934
4278
|
],
|
|
@@ -3940,35 +4284,7 @@
|
|
|
3940
4284
|
"object/get",
|
|
3941
4285
|
[
|
|
3942
4286
|
"array/first",
|
|
3943
|
-
|
|
3944
|
-
"array/filter",
|
|
3945
|
-
"@entity.units",
|
|
3946
|
-
[
|
|
3947
|
-
"fn",
|
|
3948
|
-
"u",
|
|
3949
|
-
[
|
|
3950
|
-
"and",
|
|
3951
|
-
[
|
|
3952
|
-
"==",
|
|
3953
|
-
[
|
|
3954
|
-
"object/get",
|
|
3955
|
-
"u",
|
|
3956
|
-
"team"
|
|
3957
|
-
],
|
|
3958
|
-
"player"
|
|
3959
|
-
],
|
|
3960
|
-
[
|
|
3961
|
-
">",
|
|
3962
|
-
[
|
|
3963
|
-
"object/get",
|
|
3964
|
-
"u",
|
|
3965
|
-
"hp"
|
|
3966
|
-
],
|
|
3967
|
-
0.0
|
|
3968
|
-
]
|
|
3969
|
-
]
|
|
3970
|
-
]
|
|
3971
|
-
]
|
|
4287
|
+
"@entity.units"
|
|
3972
4288
|
],
|
|
3973
4289
|
"position"
|
|
3974
4290
|
],
|
|
@@ -4178,45 +4494,10 @@
|
|
|
4178
4494
|
"type": "game-hud"
|
|
4179
4495
|
},
|
|
4180
4496
|
{
|
|
4181
|
-
"label": "Player",
|
|
4182
|
-
"src": [
|
|
4183
|
-
"object/get",
|
|
4184
|
-
[
|
|
4185
|
-
"array/first",
|
|
4186
|
-
[
|
|
4187
|
-
"array/filter",
|
|
4188
|
-
"@entity.units",
|
|
4189
|
-
[
|
|
4190
|
-
"fn",
|
|
4191
|
-
"u",
|
|
4192
|
-
[
|
|
4193
|
-
"==",
|
|
4194
|
-
[
|
|
4195
|
-
"object/get",
|
|
4196
|
-
"u",
|
|
4197
|
-
"team"
|
|
4198
|
-
],
|
|
4199
|
-
"player"
|
|
4200
|
-
]
|
|
4201
|
-
]
|
|
4202
|
-
]
|
|
4203
|
-
],
|
|
4204
|
-
"modelUrl"
|
|
4205
|
-
],
|
|
4206
|
-
"type": "sprite"
|
|
4207
|
-
},
|
|
4208
|
-
{
|
|
4209
|
-
"type": "damage-number",
|
|
4210
|
-
"value": 0.0,
|
|
4211
|
-
"visible": false,
|
|
4212
|
-
"x": 0.0,
|
|
4213
|
-
"y": 0.0
|
|
4214
|
-
},
|
|
4215
|
-
{
|
|
4216
|
-
"type": "button",
|
|
4217
4497
|
"action": "PLAY_AGAIN",
|
|
4218
|
-
"label": "Play Again",
|
|
4219
4498
|
"icon": "refresh",
|
|
4499
|
+
"label": "Play Again",
|
|
4500
|
+
"type": "button",
|
|
4220
4501
|
"variant": "secondary"
|
|
4221
4502
|
}
|
|
4222
4503
|
],
|
|
@@ -4313,6 +4594,23 @@
|
|
|
4313
4594
|
"name": "autoBattleTick"
|
|
4314
4595
|
}
|
|
4315
4596
|
]
|
|
4597
|
+
},
|
|
4598
|
+
{
|
|
4599
|
+
"config": {
|
|
4600
|
+
"frameCount": {
|
|
4601
|
+
"default": 8.0,
|
|
4602
|
+
"type": "unknown"
|
|
4603
|
+
}
|
|
4604
|
+
},
|
|
4605
|
+
"linkedEntity": "UncontrolledBattleBoardItem",
|
|
4606
|
+
"name": "UncontrolledBattleBoardAnimTick",
|
|
4607
|
+
"ref": "AnimTick.traits.AnimTick"
|
|
4608
|
+
}
|
|
4609
|
+
],
|
|
4610
|
+
"uses": [
|
|
4611
|
+
{
|
|
4612
|
+
"as": "AnimTick",
|
|
4613
|
+
"from": "std/behaviors/std-anim-tick"
|
|
4316
4614
|
}
|
|
4317
4615
|
]
|
|
4318
4616
|
}
|