@almadar/std 16.86.0 → 16.88.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.
@@ -1971,6 +1971,11 @@
1971
1971
  "backgroundImage": "@config.backgroundImage",
1972
1972
  "effects": "@entity.effects",
1973
1973
  "features": "@config.features",
1974
+ "keyMap": {
1975
+ "ArrowUp": "JUMP",
1976
+ "KeyW": "JUMP",
1977
+ "Space": "JUMP"
1978
+ },
1974
1979
  "projection": "flat",
1975
1980
  "scale": "@config.scale",
1976
1981
  "selectedUnitId": "@entity.selectedUnitId",
@@ -2105,6 +2110,11 @@
2105
2110
  "backgroundImage": "@config.backgroundImage",
2106
2111
  "effects": "@entity.effects",
2107
2112
  "features": "@config.features",
2113
+ "keyMap": {
2114
+ "ArrowUp": "JUMP",
2115
+ "KeyW": "JUMP",
2116
+ "Space": "JUMP"
2117
+ },
2108
2118
  "projection": "flat",
2109
2119
  "scale": "@config.scale",
2110
2120
  "selectedUnitId": "@entity.selectedUnitId",
@@ -2244,6 +2254,11 @@
2244
2254
  "backgroundImage": "@config.backgroundImage",
2245
2255
  "effects": "@entity.effects",
2246
2256
  "features": "@config.features",
2257
+ "keyMap": {
2258
+ "ArrowUp": "JUMP",
2259
+ "KeyW": "JUMP",
2260
+ "Space": "JUMP"
2261
+ },
2247
2262
  "projection": "flat",
2248
2263
  "scale": "@config.scale",
2249
2264
  "selectedUnitId": "@entity.selectedUnitId",
@@ -2351,6 +2366,34 @@
2351
2366
  },
2352
2367
  {
2353
2368
  "effects": [
2369
+ [
2370
+ "set",
2371
+ "@entity.units",
2372
+ [
2373
+ "array/map",
2374
+ "@entity.units",
2375
+ [
2376
+ "fn",
2377
+ "u",
2378
+ [
2379
+ "if",
2380
+ [
2381
+ "==",
2382
+ "@u.unitType",
2383
+ "runner"
2384
+ ],
2385
+ [
2386
+ "object/merge",
2387
+ "@u",
2388
+ {
2389
+ "animation": "attack"
2390
+ }
2391
+ ],
2392
+ "@u"
2393
+ ]
2394
+ ]
2395
+ ]
2396
+ ],
2354
2397
  [
2355
2398
  "render-ui",
2356
2399
  "main",
@@ -2373,6 +2416,11 @@
2373
2416
  "backgroundImage": "@config.backgroundImage",
2374
2417
  "effects": "@entity.effects",
2375
2418
  "features": "@config.features",
2419
+ "keyMap": {
2420
+ "ArrowUp": "JUMP",
2421
+ "KeyW": "JUMP",
2422
+ "Space": "JUMP"
2423
+ },
2376
2424
  "projection": "flat",
2377
2425
  "scale": "@config.scale",
2378
2426
  "selectedUnitId": "@entity.selectedUnitId",
@@ -2593,6 +2641,11 @@
2593
2641
  "backgroundImage": "@config.backgroundImage",
2594
2642
  "effects": "@entity.effects",
2595
2643
  "features": "@config.features",
2644
+ "keyMap": {
2645
+ "ArrowUp": "JUMP",
2646
+ "KeyW": "JUMP",
2647
+ "Space": "JUMP"
2648
+ },
2596
2649
  "projection": "flat",
2597
2650
  "scale": "@config.scale",
2598
2651
  "selectedUnitId": "@entity.selectedUnitId",
@@ -726,33 +726,31 @@
726
726
  "tier": "domain"
727
727
  },
728
728
  {
729
- "description": "Left arrow / A key pressed",
729
+ "description": "Move-left intent (keyboard keyMap or d-pad directionEvents)",
730
730
  "event": "LEFT",
731
731
  "payloadSchema": [
732
732
  {
733
- "name": "direction",
734
- "required": true,
735
- "type": "number"
733
+ "name": "id",
734
+ "type": "string"
736
735
  }
737
736
  ],
738
737
  "scope": "external",
739
738
  "tier": "domain"
740
739
  },
741
740
  {
742
- "description": "Right arrow / D key pressed",
741
+ "description": "Move-right intent (keyboard keyMap or d-pad directionEvents)",
743
742
  "event": "RIGHT",
744
743
  "payloadSchema": [
745
744
  {
746
- "name": "direction",
747
- "required": true,
748
- "type": "number"
745
+ "name": "id",
746
+ "type": "string"
749
747
  }
750
748
  ],
751
749
  "scope": "external",
752
750
  "tier": "domain"
753
751
  },
754
752
  {
755
- "description": "Up / Space pressed",
753
+ "description": "Jump intent (keyboard keyMap or d-pad directionEvents)",
756
754
  "event": "JUMP",
757
755
  "payloadSchema": [
758
756
  {
@@ -764,7 +762,7 @@
764
762
  "tier": "domain"
765
763
  },
766
764
  {
767
- "description": "Horizontal key released",
765
+ "description": "Stop-horizontal intent (keyboard keyUpMap or d-pad directionReleaseEvents)",
768
766
  "event": "STOP",
769
767
  "payloadSchema": [
770
768
  {
@@ -815,33 +813,31 @@
815
813
  "name": "Initialize"
816
814
  },
817
815
  {
818
- "description": "Left arrow / A key pressed",
816
+ "description": "Move-left intent (keyboard keyMap or d-pad directionEvents)",
819
817
  "key": "LEFT",
820
818
  "name": "Left",
821
819
  "payloadSchema": [
822
820
  {
823
- "name": "direction",
824
- "required": true,
825
- "type": "number"
821
+ "name": "id",
822
+ "type": "string"
826
823
  }
827
824
  ],
828
825
  "tier": "domain"
829
826
  },
830
827
  {
831
- "description": "Right arrow / D key pressed",
828
+ "description": "Move-right intent (keyboard keyMap or d-pad directionEvents)",
832
829
  "key": "RIGHT",
833
830
  "name": "Right",
834
831
  "payloadSchema": [
835
832
  {
836
- "name": "direction",
837
- "required": true,
838
- "type": "number"
833
+ "name": "id",
834
+ "type": "string"
839
835
  }
840
836
  ],
841
837
  "tier": "domain"
842
838
  },
843
839
  {
844
- "description": "Up / Space pressed",
840
+ "description": "Jump intent (keyboard keyMap or d-pad directionEvents)",
845
841
  "key": "JUMP",
846
842
  "name": "Jump",
847
843
  "payloadSchema": [
@@ -853,7 +849,7 @@
853
849
  "tier": "domain"
854
850
  },
855
851
  {
856
- "description": "Horizontal key released",
852
+ "description": "Stop-horizontal intent (keyboard keyUpMap or d-pad directionReleaseEvents)",
857
853
  "key": "STOP",
858
854
  "name": "Stop",
859
855
  "payloadSchema": [
@@ -1023,6 +1019,21 @@
1023
1019
  "backgroundImage": "@config.backgroundImage",
1024
1020
  "bgColor": "@config.bgColor",
1025
1021
  "camera": "follow",
1022
+ "keyMap": {
1023
+ "ArrowLeft": "LEFT",
1024
+ "ArrowRight": "RIGHT",
1025
+ "ArrowUp": "JUMP",
1026
+ "KeyA": "LEFT",
1027
+ "KeyD": "RIGHT",
1028
+ "KeyW": "JUMP",
1029
+ "Space": "JUMP"
1030
+ },
1031
+ "keyUpMap": {
1032
+ "ArrowLeft": "STOP",
1033
+ "ArrowRight": "STOP",
1034
+ "KeyA": "STOP",
1035
+ "KeyD": "STOP"
1036
+ },
1026
1037
  "platforms": "@config.platforms",
1027
1038
  "player": "@entity.player",
1028
1039
  "playerSprite": "@config.playerSprite",
@@ -1063,11 +1074,11 @@
1063
1074
  "aspect": "1:1",
1064
1075
  "category": "ui",
1065
1076
  "dimension": "2d",
1066
- "name": "health",
1077
+ "name": "coin",
1067
1078
  "role": "ui",
1068
1079
  "style": "pixel",
1069
1080
  "thumbnailUrl": "",
1070
- "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/health.png",
1081
+ "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/coin.png",
1071
1082
  "variant": ""
1072
1083
  },
1073
1084
  "label": "Lives",
@@ -1127,7 +1138,15 @@
1127
1138
  "variant": ""
1128
1139
  }
1129
1140
  },
1130
- "directionEvent": "DPAD",
1141
+ "directionEvents": {
1142
+ "left": "LEFT",
1143
+ "right": "RIGHT",
1144
+ "up": "JUMP"
1145
+ },
1146
+ "directionReleaseEvents": {
1147
+ "left": "STOP",
1148
+ "right": "STOP"
1149
+ },
1131
1150
  "kind": "dpad",
1132
1151
  "type": "control-grid"
1133
1152
  },
@@ -1402,6 +1421,21 @@
1402
1421
  "backgroundImage": "@config.backgroundImage",
1403
1422
  "bgColor": "@config.bgColor",
1404
1423
  "camera": "follow",
1424
+ "keyMap": {
1425
+ "ArrowLeft": "LEFT",
1426
+ "ArrowRight": "RIGHT",
1427
+ "ArrowUp": "JUMP",
1428
+ "KeyA": "LEFT",
1429
+ "KeyD": "RIGHT",
1430
+ "KeyW": "JUMP",
1431
+ "Space": "JUMP"
1432
+ },
1433
+ "keyUpMap": {
1434
+ "ArrowLeft": "STOP",
1435
+ "ArrowRight": "STOP",
1436
+ "KeyA": "STOP",
1437
+ "KeyD": "STOP"
1438
+ },
1405
1439
  "platforms": "@config.platforms",
1406
1440
  "player": "@entity.player",
1407
1441
  "playerSprite": "@config.playerSprite",
@@ -1442,11 +1476,11 @@
1442
1476
  "aspect": "1:1",
1443
1477
  "category": "ui",
1444
1478
  "dimension": "2d",
1445
- "name": "health",
1479
+ "name": "coin",
1446
1480
  "role": "ui",
1447
1481
  "style": "pixel",
1448
1482
  "thumbnailUrl": "",
1449
- "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/health.png",
1483
+ "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/coin.png",
1450
1484
  "variant": ""
1451
1485
  },
1452
1486
  "label": "Lives",
@@ -1506,7 +1540,15 @@
1506
1540
  "variant": ""
1507
1541
  }
1508
1542
  },
1509
- "directionEvent": "DPAD",
1543
+ "directionEvents": {
1544
+ "left": "LEFT",
1545
+ "right": "RIGHT",
1546
+ "up": "JUMP"
1547
+ },
1548
+ "directionReleaseEvents": {
1549
+ "left": "STOP",
1550
+ "right": "STOP"
1551
+ },
1510
1552
  "kind": "dpad",
1511
1553
  "type": "control-grid"
1512
1554
  },
@@ -1618,6 +1660,21 @@
1618
1660
  "backgroundImage": "@config.backgroundImage",
1619
1661
  "bgColor": "@config.bgColor",
1620
1662
  "camera": "follow",
1663
+ "keyMap": {
1664
+ "ArrowLeft": "LEFT",
1665
+ "ArrowRight": "RIGHT",
1666
+ "ArrowUp": "JUMP",
1667
+ "KeyA": "LEFT",
1668
+ "KeyD": "RIGHT",
1669
+ "KeyW": "JUMP",
1670
+ "Space": "JUMP"
1671
+ },
1672
+ "keyUpMap": {
1673
+ "ArrowLeft": "STOP",
1674
+ "ArrowRight": "STOP",
1675
+ "KeyA": "STOP",
1676
+ "KeyD": "STOP"
1677
+ },
1621
1678
  "platforms": "@config.platforms",
1622
1679
  "player": "@entity.player",
1623
1680
  "playerSprite": "@config.playerSprite",
@@ -1658,11 +1715,11 @@
1658
1715
  "aspect": "1:1",
1659
1716
  "category": "ui",
1660
1717
  "dimension": "2d",
1661
- "name": "health",
1718
+ "name": "coin",
1662
1719
  "role": "ui",
1663
1720
  "style": "pixel",
1664
1721
  "thumbnailUrl": "",
1665
- "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/health.png",
1722
+ "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/coin.png",
1666
1723
  "variant": ""
1667
1724
  },
1668
1725
  "label": "Lives",
@@ -1722,7 +1779,15 @@
1722
1779
  "variant": ""
1723
1780
  }
1724
1781
  },
1725
- "directionEvent": "DPAD",
1782
+ "directionEvents": {
1783
+ "left": "LEFT",
1784
+ "right": "RIGHT",
1785
+ "up": "JUMP"
1786
+ },
1787
+ "directionReleaseEvents": {
1788
+ "left": "STOP",
1789
+ "right": "STOP"
1790
+ },
1726
1791
  "kind": "dpad",
1727
1792
  "type": "control-grid"
1728
1793
  },
@@ -2322,6 +2387,21 @@
2322
2387
  "backgroundImage": "@config.backgroundImage",
2323
2388
  "bgColor": "@config.bgColor",
2324
2389
  "camera": "follow",
2390
+ "keyMap": {
2391
+ "ArrowLeft": "LEFT",
2392
+ "ArrowRight": "RIGHT",
2393
+ "ArrowUp": "JUMP",
2394
+ "KeyA": "LEFT",
2395
+ "KeyD": "RIGHT",
2396
+ "KeyW": "JUMP",
2397
+ "Space": "JUMP"
2398
+ },
2399
+ "keyUpMap": {
2400
+ "ArrowLeft": "STOP",
2401
+ "ArrowRight": "STOP",
2402
+ "KeyA": "STOP",
2403
+ "KeyD": "STOP"
2404
+ },
2325
2405
  "platforms": "@config.platforms",
2326
2406
  "player": "@entity.player",
2327
2407
  "playerSprite": "@config.playerSprite",
@@ -2362,11 +2442,11 @@
2362
2442
  "aspect": "1:1",
2363
2443
  "category": "ui",
2364
2444
  "dimension": "2d",
2365
- "name": "health",
2445
+ "name": "coin",
2366
2446
  "role": "ui",
2367
2447
  "style": "pixel",
2368
2448
  "thumbnailUrl": "",
2369
- "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/health.png",
2449
+ "url": "https://almadar-kflow-assets.web.app/shared/ui-platformer-board/default/ui/coin.png",
2370
2450
  "variant": ""
2371
2451
  },
2372
2452
  "label": "Lives",
@@ -2426,7 +2506,15 @@
2426
2506
  "variant": ""
2427
2507
  }
2428
2508
  },
2429
- "directionEvent": "DPAD",
2509
+ "directionEvents": {
2510
+ "left": "LEFT",
2511
+ "right": "RIGHT",
2512
+ "up": "JUMP"
2513
+ },
2514
+ "directionReleaseEvents": {
2515
+ "left": "STOP",
2516
+ "right": "STOP"
2517
+ },
2430
2518
  "kind": "dpad",
2431
2519
  "type": "control-grid"
2432
2520
  },
@@ -1077,6 +1077,11 @@
1077
1077
  "children": [
1078
1078
  {
1079
1079
  "assetManifest": "@config.assetManifest",
1080
+ "backgroundImage": [
1081
+ "object/get",
1082
+ "@config.assetManifest",
1083
+ "background"
1084
+ ],
1080
1085
  "effects": "@entity.effects",
1081
1086
  "features": [
1082
1087
  "array/map",
@@ -1109,7 +1114,7 @@
1109
1114
  }
1110
1115
  ]
1111
1116
  ],
1112
- "projection": "flat",
1117
+ "projection": "free",
1113
1118
  "scale": "@config.scale",
1114
1119
  "selectedUnitId": "@entity.selectedUnitId",
1115
1120
  "showMinimap": false,
@@ -1381,6 +1386,11 @@
1381
1386
  "children": [
1382
1387
  {
1383
1388
  "assetManifest": "@config.assetManifest",
1389
+ "backgroundImage": [
1390
+ "object/get",
1391
+ "@config.assetManifest",
1392
+ "background"
1393
+ ],
1384
1394
  "effects": "@entity.effects",
1385
1395
  "features": [
1386
1396
  "array/map",
@@ -1413,7 +1423,7 @@
1413
1423
  }
1414
1424
  ]
1415
1425
  ],
1416
- "projection": "flat",
1426
+ "projection": "free",
1417
1427
  "scale": "@config.scale",
1418
1428
  "selectedUnitId": "@entity.selectedUnitId",
1419
1429
  "showMinimap": false,
@@ -1690,6 +1700,11 @@
1690
1700
  "children": [
1691
1701
  {
1692
1702
  "assetManifest": "@config.assetManifest",
1703
+ "backgroundImage": [
1704
+ "object/get",
1705
+ "@config.assetManifest",
1706
+ "background"
1707
+ ],
1693
1708
  "effects": "@entity.effects",
1694
1709
  "features": [
1695
1710
  "array/map",
@@ -1722,7 +1737,7 @@
1722
1737
  }
1723
1738
  ]
1724
1739
  ],
1725
- "projection": "flat",
1740
+ "projection": "free",
1726
1741
  "scale": "@config.scale",
1727
1742
  "selectedUnitId": "@entity.selectedUnitId",
1728
1743
  "showMinimap": false,
@@ -1956,6 +1971,11 @@
1956
1971
  "children": [
1957
1972
  {
1958
1973
  "assetManifest": "@config.assetManifest",
1974
+ "backgroundImage": [
1975
+ "object/get",
1976
+ "@config.assetManifest",
1977
+ "background"
1978
+ ],
1959
1979
  "effects": "@entity.effects",
1960
1980
  "features": [
1961
1981
  "array/map",
@@ -1988,7 +2008,7 @@
1988
2008
  }
1989
2009
  ]
1990
2010
  ],
1991
- "projection": "flat",
2011
+ "projection": "free",
1992
2012
  "scale": "@config.scale",
1993
2013
  "selectedUnitId": "@entity.selectedUnitId",
1994
2014
  "showMinimap": false,
@@ -2222,6 +2242,11 @@
2222
2242
  "children": [
2223
2243
  {
2224
2244
  "assetManifest": "@config.assetManifest",
2245
+ "backgroundImage": [
2246
+ "object/get",
2247
+ "@config.assetManifest",
2248
+ "background"
2249
+ ],
2225
2250
  "effects": "@entity.effects",
2226
2251
  "features": [
2227
2252
  "array/map",
@@ -2254,7 +2279,7 @@
2254
2279
  }
2255
2280
  ]
2256
2281
  ],
2257
- "projection": "flat",
2282
+ "projection": "free",
2258
2283
  "scale": "@config.scale",
2259
2284
  "selectedUnitId": "@entity.selectedUnitId",
2260
2285
  "showMinimap": false,
@@ -2478,6 +2503,11 @@
2478
2503
  "children": [
2479
2504
  {
2480
2505
  "assetManifest": "@config.assetManifest",
2506
+ "backgroundImage": [
2507
+ "object/get",
2508
+ "@config.assetManifest",
2509
+ "background"
2510
+ ],
2481
2511
  "effects": "@entity.effects",
2482
2512
  "features": [
2483
2513
  "array/map",
@@ -2510,7 +2540,7 @@
2510
2540
  }
2511
2541
  ]
2512
2542
  ],
2513
- "projection": "flat",
2543
+ "projection": "free",
2514
2544
  "scale": "@config.scale",
2515
2545
  "selectedUnitId": "@entity.selectedUnitId",
2516
2546
  "showMinimap": false,
@@ -2850,6 +2880,11 @@
2850
2880
  "children": [
2851
2881
  {
2852
2882
  "assetManifest": "@config.assetManifest",
2883
+ "backgroundImage": [
2884
+ "object/get",
2885
+ "@config.assetManifest",
2886
+ "background"
2887
+ ],
2853
2888
  "effects": "@entity.effects",
2854
2889
  "features": [
2855
2890
  "array/map",
@@ -2882,7 +2917,7 @@
2882
2917
  }
2883
2918
  ]
2884
2919
  ],
2885
- "projection": "flat",
2920
+ "projection": "free",
2886
2921
  "scale": "@config.scale",
2887
2922
  "selectedUnitId": "@entity.selectedUnitId",
2888
2923
  "showMinimap": false,
@@ -3201,6 +3236,11 @@
3201
3236
  "children": [
3202
3237
  {
3203
3238
  "assetManifest": "@config.assetManifest",
3239
+ "backgroundImage": [
3240
+ "object/get",
3241
+ "@config.assetManifest",
3242
+ "background"
3243
+ ],
3204
3244
  "effects": "@entity.effects",
3205
3245
  "features": [
3206
3246
  "array/map",
@@ -3233,7 +3273,7 @@
3233
3273
  }
3234
3274
  ]
3235
3275
  ],
3236
- "projection": "flat",
3276
+ "projection": "free",
3237
3277
  "scale": "@config.scale",
3238
3278
  "selectedUnitId": "@entity.selectedUnitId",
3239
3279
  "showMinimap": false,
@@ -4072,6 +4112,11 @@
4072
4112
  "children": [
4073
4113
  {
4074
4114
  "assetManifest": "@config.assetManifest",
4115
+ "backgroundImage": [
4116
+ "object/get",
4117
+ "@config.assetManifest",
4118
+ "background"
4119
+ ],
4075
4120
  "effects": "@entity.effects",
4076
4121
  "features": [
4077
4122
  "array/map",
@@ -4104,7 +4149,7 @@
4104
4149
  }
4105
4150
  ]
4106
4151
  ],
4107
- "projection": "flat",
4152
+ "projection": "free",
4108
4153
  "scale": "@config.scale",
4109
4154
  "selectedUnitId": "@entity.selectedUnitId",
4110
4155
  "showMinimap": false,