create-threenative 0.2.18 → 0.2.21

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 (186) hide show
  1. package/agent-docs/references/assertion-reference.md +1 -1
  2. package/agent-docs/references/capability-reference.md +792 -5
  3. package/agent-docs/references/kit-racing.md +4 -2
  4. package/agent-docs/references/performance-basics.md +2 -1
  5. package/agent-docs/references/terrain-authoring.md +25 -7
  6. package/agent-files/.agents/skills/prd-creator/SKILL.md +24 -0
  7. package/dist/index.js +268 -237
  8. package/dist/quality.d.ts +5 -1
  9. package/dist/quality.js +75 -6
  10. package/dist/terrain-kit.js +1 -1
  11. package/dist/threenative.js +7 -5
  12. package/dist/web-engine-post-effects.js +6 -0
  13. package/dist/web-engine-runtime.js +407 -38
  14. package/package.json +6 -6
  15. package/template-assets/assets/floor-fern-0.glb +0 -0
  16. package/template-assets/assets/floor-litter-0.glb +0 -0
  17. package/template-assets/assets/floor-log-0.glb +0 -0
  18. package/template-assets/assets/floor-log-1.glb +0 -0
  19. package/template-assets/assets/floor-stump-0.glb +0 -0
  20. package/template-assets/assets/floor-twig-0.glb +0 -0
  21. package/template-assets/patches/three@0.187.0.patch +108 -21
  22. package/template-assets/quality/eslint.config.js +1 -1
  23. package/templates/action-rpg/package.json +7 -7
  24. package/templates/action-rpg/src/loot/drops.ts +3 -7
  25. package/templates/action-rpg/src/render/camera.ts +2 -2
  26. package/templates/action-rpg/src/render/clouds.ts +3 -1
  27. package/templates/action-rpg/src/render/materials.ts +3 -2
  28. package/templates/action-rpg/src/render/touch-controls.ts +7 -6
  29. package/templates/action-rpg/src/scenes/Play.ts +1 -15
  30. package/templates/adventure/AGENTS.md +3 -3
  31. package/templates/adventure/CLAUDE.md +3 -3
  32. package/templates/adventure/native-playtests/survives.playtest.json +12 -0
  33. package/templates/adventure/native-playtests/woodland-floor.playtest.json +61 -0
  34. package/templates/adventure/package.json +7 -7
  35. package/templates/adventure/playtests/grass.playtest.json +61 -0
  36. package/templates/adventure/playtests/performance.playtest.json +1 -1
  37. package/templates/adventure/playtests/survives.playtest.json +2 -2
  38. package/templates/adventure/playtests/woodland-floor.playtest.json +61 -0
  39. package/templates/adventure/src/entities/LockOn.ts +42 -4
  40. package/templates/adventure/src/entities/Warden.ts +12 -3
  41. package/templates/adventure/src/level/Vale.ts +241 -16
  42. package/templates/adventure/src/render/camera.ts +2 -2
  43. package/templates/adventure/src/render/foliage.ts +64 -20
  44. package/templates/adventure/src/render/grass.ts +325 -0
  45. package/templates/adventure/src/render/materials.ts +3 -2
  46. package/templates/adventure/src/render/palette.ts +3 -0
  47. package/templates/adventure/src/render/touch-controls.ts +4 -1
  48. package/templates/adventure/src/scenes/Play.ts +96 -1
  49. package/templates/collectathon/package.json +7 -7
  50. package/templates/collectathon/src/level/Course.ts +2 -7
  51. package/templates/collectathon/src/level/terrain.ts +2 -1
  52. package/templates/collectathon/src/render/camera.ts +2 -2
  53. package/templates/collectathon/src/render/ground.ts +4 -4
  54. package/templates/collectathon/src/render/hero.ts +1 -1
  55. package/templates/collectathon/src/render/materials.ts +0 -1
  56. package/templates/collectathon/src/render/sky.ts +4 -3
  57. package/templates/kart/package.json +6 -6
  58. package/templates/kart/src/entities/Kart.ts +2 -1
  59. package/templates/kart/src/render/course.ts +2 -1
  60. package/templates/kart/src/track/Course.ts +3 -1
  61. package/templates/minimal/package.json +6 -6
  62. package/templates/minimal/src/render/camera.ts +2 -2
  63. package/templates/minimal/src/render/clouds.ts +3 -1
  64. package/templates/minimal/src/render/materials.ts +3 -2
  65. package/templates/minimal/src/render/touch-controls.ts +7 -6
  66. package/templates/platformer/package.json +7 -7
  67. package/templates/platformer/playtests/collect.playtest.json +4 -1
  68. package/templates/platformer/src/level/Stage.ts +2 -6
  69. package/templates/platformer/src/scenes/Play.ts +2 -1
  70. package/templates/puzzle/package.json +7 -7
  71. package/templates/puzzle/src/entities/Warden.ts +3 -3
  72. package/templates/puzzle/src/render/camera.ts +2 -2
  73. package/templates/puzzle/src/render/touch-controls.ts +7 -6
  74. package/templates/racing/AGENTS.md +2 -2
  75. package/templates/racing/CLAUDE.md +2 -2
  76. package/templates/racing/CREDITS.md +29 -0
  77. package/templates/racing/assets/engine-loop.wav +0 -0
  78. package/templates/racing/assets/grass/Grass004_color.jpg +0 -0
  79. package/templates/racing/assets/grass/Grass004_normal.jpg +0 -0
  80. package/templates/racing/assets/grass/Grass004_roughness.jpg +0 -0
  81. package/templates/racing/assets/nitro-burst.wav +0 -0
  82. package/templates/racing/assets/tyre-squeal.wav +0 -0
  83. package/templates/racing/package.json +7 -7
  84. package/templates/racing/playtests/drift-natural.playtest.json +68 -0
  85. package/templates/racing/playtests/drift.playtest.json +100 -0
  86. package/templates/racing/playtests/hud.playtest.json +117 -0
  87. package/templates/racing/playtests/launch-pose.playtest.json +34 -0
  88. package/templates/racing/playtests/nitro.playtest.json +158 -0
  89. package/templates/racing/playtests/outcome.playtest.json +4 -4
  90. package/templates/racing/playtests/performance.playtest.json +1 -1
  91. package/templates/racing/playtests/steady-camera.playtest.json +88 -0
  92. package/templates/racing/src/audio/engine.ts +138 -0
  93. package/templates/racing/src/entities/CarBody.ts +83 -10
  94. package/templates/racing/src/entities/Drift.ts +243 -0
  95. package/templates/racing/src/entities/LineDriver.ts +2 -2
  96. package/templates/racing/src/entities/Nitro.ts +72 -0
  97. package/templates/racing/src/entities/RacingCar.ts +86 -21
  98. package/templates/racing/src/entities/Rival.ts +35 -21
  99. package/templates/racing/src/game.ts +6 -0
  100. package/templates/racing/src/gauges.ts +74 -0
  101. package/templates/racing/src/render/camera.ts +29 -4
  102. package/templates/racing/src/render/clouds.ts +3 -1
  103. package/templates/racing/src/render/effects.ts +244 -0
  104. package/templates/racing/src/render/materials.ts +43 -8
  105. package/templates/racing/src/render/shapes.ts +37 -0
  106. package/templates/racing/src/render/skids.ts +84 -0
  107. package/templates/racing/src/render/touch-controls.ts +10 -10
  108. package/templates/racing/src/scenes/Race.ts +277 -25
  109. package/templates/racing/src/state.ts +35 -0
  110. package/templates/racing/src/style.css +3 -0
  111. package/templates/racing/src/track/Ranking.ts +8 -4
  112. package/templates/racing/src/track/Track.ts +132 -58
  113. package/templates/racing/src/track/TrackSector.ts +19 -1
  114. package/templates/racing/src/track/circuit.ts +21 -15
  115. package/templates/racing/src/ui/GameUi.tsx +0 -2
  116. package/templates/racing/src/ui/Hud.tsx +417 -50
  117. package/templates/racing/threenative.config.ts +15 -0
  118. package/templates/racing/tools/make-racing-audio.mjs +388 -0
  119. package/templates/rain/package.json +6 -6
  120. package/templates/rain/src/render/noise-volume.ts +2 -1
  121. package/templates/rain/src/state.ts +3 -1
  122. package/templates/rain/src/ui/GameUi.tsx +1 -1
  123. package/templates/rain/src/ui/automation.ts +10 -8
  124. package/templates/rain/src/ui/tempest.ts +3 -4
  125. package/templates/rts/package.json +6 -6
  126. package/templates/rts/src/sim/terrain.ts +1 -0
  127. package/templates/rts/src/sim/types.ts +1 -0
  128. package/templates/runner/package.json +7 -7
  129. package/templates/runner/src/render/clouds.ts +3 -1
  130. package/templates/runner/src/render/materials.ts +3 -2
  131. package/templates/runner/src/render/touch-controls.ts +7 -6
  132. package/templates/runner/src/scenes/Run.ts +4 -9
  133. package/templates/sailing/package.json +7 -7
  134. package/templates/sailing/src/render/touch-controls.ts +7 -6
  135. package/templates/shooter/package.json +7 -7
  136. package/templates/shooter/src/render/clouds.ts +3 -1
  137. package/templates/snow/package.json +7 -7
  138. package/templates/snow/src/entities/Explorer.ts +6 -12
  139. package/templates/snow/src/render/bootPrint.ts +3 -1
  140. package/templates/snow/src/render/camera.ts +3 -2
  141. package/templates/snow/src/render/scenery.ts +3 -3
  142. package/templates/snow/src/render/touch-controls.ts +7 -6
  143. package/templates/snow/src/render/weather.ts +3 -5
  144. package/templates/snow/src/terrain.ts +2 -1
  145. package/templates/starter/native-playtests/render-chain.playtest.json +9 -9
  146. package/templates/starter/package.json +7 -7
  147. package/templates/starter/src/entities/Player.ts +10 -2
  148. package/templates/starter/src/render/camera.ts +2 -2
  149. package/templates/starter/src/render/clouds.ts +3 -1
  150. package/templates/starter/src/render/materials.ts +3 -2
  151. package/templates/starter/src/render/touch-controls.ts +7 -6
  152. package/templates/starter/src/scenes/Play.ts +1 -14
  153. package/templates/tower-defense/package.json +7 -7
  154. package/templates/tower-defense/src/render/shapes.ts +1 -2
  155. package/templates/tower-defense/src/scenes/Battle.ts +3 -8
  156. package/template-assets/terrain/alpine/assets.json +0 -12
  157. package/template-assets/terrain/alpine/bake.mjs +0 -6
  158. package/template-assets/terrain/alpine/credits.json +0 -164
  159. package/template-assets/terrain/alpine/heightmap.r16 +0 -0
  160. package/template-assets/terrain/alpine/recipe.json +0 -119
  161. package/template-assets/terrain/alpine/surface.json +0 -53
  162. package/template-assets/terrain/coastal/assets.json +0 -11
  163. package/template-assets/terrain/coastal/bake.mjs +0 -6
  164. package/template-assets/terrain/coastal/credits.json +0 -117
  165. package/template-assets/terrain/coastal/heightmap.r16 +0 -0
  166. package/template-assets/terrain/coastal/recipe.json +0 -113
  167. package/template-assets/terrain/coastal/surface.json +0 -41
  168. package/template-assets/terrain/desert/assets.json +0 -12
  169. package/template-assets/terrain/desert/bake.mjs +0 -6
  170. package/template-assets/terrain/desert/credits.json +0 -164
  171. package/template-assets/terrain/desert/heightmap.r16 +0 -0
  172. package/template-assets/terrain/desert/recipe.json +0 -108
  173. package/template-assets/terrain/desert/surface.json +0 -54
  174. package/template-assets/terrain/forest/assets.json +0 -65
  175. package/template-assets/terrain/forest/bake.mjs +0 -8
  176. package/template-assets/terrain/forest/credits.json +0 -225
  177. package/template-assets/terrain/forest/heightmap.r16 +0 -0
  178. package/template-assets/terrain/forest/recipe.json +0 -350
  179. package/template-assets/terrain/forest/surface.json +0 -79
  180. package/template-assets/terrain/tundra/assets.json +0 -12
  181. package/template-assets/terrain/tundra/bake.mjs +0 -6
  182. package/template-assets/terrain/tundra/credits.json +0 -164
  183. package/template-assets/terrain/tundra/heightmap.r16 +0 -0
  184. package/template-assets/terrain/tundra/recipe.json +0 -277
  185. package/template-assets/terrain/tundra/surface.json +0 -54
  186. package/templates/racing/src/ui/Menu.tsx +0 -7
@@ -19,9 +19,9 @@
19
19
  "format:check": "biome format src"
20
20
  },
21
21
  "dependencies": {
22
- "@threenative/core": "0.3.13",
23
- "@threenative/physics": "0.3.13",
24
- "@threenative/ui": "0.3.13",
22
+ "@threenative/core": ">=0.3.16",
23
+ "@threenative/physics": ">=0.3.16",
24
+ "@threenative/ui": ">=0.3.16",
25
25
  "react": "19.2.0",
26
26
  "react-dom": "19.2.0",
27
27
  "three": "0.187.0"
@@ -29,13 +29,13 @@
29
29
  "devDependencies": {
30
30
  "@gltf-transform/cli": "4.4.2",
31
31
  "@tailwindcss/vite": "4.3.3",
32
- "@threenative/assets": "0.3.14",
33
- "@threenative/playtest": "0.3.13",
32
+ "@threenative/assets": ">=0.3.17",
33
+ "@threenative/playtest": ">=0.3.16",
34
34
  "@types/react": "19.2.0",
35
35
  "@types/react-dom": "19.2.0",
36
36
  "@types/three": "0.187.0",
37
37
  "@vitejs/plugin-react": "6.0.5",
38
- "create-threenative": "0.2.18",
38
+ "create-threenative": "0.2.21",
39
39
  "esbuild": "0.27.0",
40
40
  "playwright": "1.62.1",
41
41
  "tailwindcss": "4.3.3",
@@ -45,7 +45,7 @@
45
45
  "eslint": "10.13.0"
46
46
  },
47
47
  "optionalDependencies": {
48
- "@threenative/runtime-native": "0.3.13"
48
+ "@threenative/runtime-native": ">=0.3.16"
49
49
  },
50
50
  "overrides": {
51
51
  "sharp": ">=0.35.4",
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "drift-natural",
3
+ "target": "web",
4
+ "schemaVersion": 1,
5
+ "viewport": {
6
+ "width": 1280,
7
+ "height": 720
8
+ },
9
+ "warmupFrames": 10,
10
+ "subject": "player",
11
+ "steps": [
12
+ {
13
+ "kind": "input",
14
+ "label": "straight",
15
+ "press": ["ArrowUp"],
16
+ "holdTicks": 240,
17
+ "release": false
18
+ },
19
+ {
20
+ "kind": "input",
21
+ "label": "full-lock",
22
+ "press": ["ArrowUp", "ArrowRight"],
23
+ "holdTicks": 30,
24
+ "release": false
25
+ },
26
+ {
27
+ "kind": "input",
28
+ "label": "catch",
29
+ "press": ["ArrowUp", "ArrowLeft"],
30
+ "holdTicks": 14,
31
+ "release": false
32
+ },
33
+ {
34
+ "kind": "input",
35
+ "label": "straighten",
36
+ "press": ["ArrowUp"],
37
+ "holdTicks": 60,
38
+ "release": true
39
+ }
40
+ ],
41
+ "assert": {
42
+ "diagnostics": {
43
+ "noConsoleErrors": true,
44
+ "runtimeReady": true
45
+ },
46
+ "resources": [
47
+ {
48
+ "id": "state",
49
+ "path": "driftsBanked",
50
+ "gte": 1,
51
+ "changed": true
52
+ },
53
+ {
54
+ "id": "state",
55
+ "path": "driftSpins",
56
+ "equals": 0,
57
+ "allowTrivial": "A spin is the failure this scenario looks for; zero is the held invariant while the banked drift above proves the tail let go with no handbrake."
58
+ }
59
+ ],
60
+ "components": [
61
+ {
62
+ "entity": "effects",
63
+ "component": "skidMarks",
64
+ "gte": 5
65
+ }
66
+ ]
67
+ }
68
+ }
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "drift",
3
+ "target": "web",
4
+ "schemaVersion": 1,
5
+ "viewport": {
6
+ "width": 1280,
7
+ "height": 720
8
+ },
9
+ "warmupFrames": 10,
10
+ "subject": "player",
11
+ "steps": [
12
+ {
13
+ "kind": "input",
14
+ "label": "straight",
15
+ "press": ["ArrowUp"],
16
+ "holdTicks": 170,
17
+ "release": false
18
+ },
19
+ {
20
+ "kind": "input",
21
+ "label": "kick",
22
+ "press": ["ArrowUp", "ArrowRight", "ShiftLeft"],
23
+ "holdTicks": 8,
24
+ "release": false
25
+ },
26
+ {
27
+ "kind": "input",
28
+ "label": "hold",
29
+ "press": ["ArrowUp", "ArrowRight"],
30
+ "holdTicks": 22,
31
+ "release": false
32
+ },
33
+ {
34
+ "kind": "input",
35
+ "label": "catch",
36
+ "press": ["ArrowUp", "ArrowLeft"],
37
+ "holdTicks": 14,
38
+ "release": false
39
+ },
40
+ {
41
+ "kind": "input",
42
+ "label": "straighten",
43
+ "press": ["ArrowUp"],
44
+ "holdTicks": 60,
45
+ "release": true
46
+ }
47
+ ],
48
+ "assert": {
49
+ "diagnostics": {
50
+ "noConsoleErrors": true,
51
+ "runtimeReady": true
52
+ },
53
+ "resources": [
54
+ {
55
+ "id": "state",
56
+ "path": "driftsBanked",
57
+ "gte": 1,
58
+ "changed": true
59
+ },
60
+ {
61
+ "id": "state",
62
+ "path": "driftSpins",
63
+ "equals": 0,
64
+ "allowTrivial": "A spin is the failure this scenario looks for; zero is the held invariant while the banked drift above proves the slide happened."
65
+ },
66
+ {
67
+ "id": "state",
68
+ "path": "drifting",
69
+ "atSteps": [
70
+ {
71
+ "label": "straight",
72
+ "equals": false
73
+ },
74
+ {
75
+ "label": "hold",
76
+ "equals": true
77
+ }
78
+ ]
79
+ }
80
+ ],
81
+ "components": [
82
+ {
83
+ "entity": "effects",
84
+ "component": "skidMarks",
85
+ "gte": 5,
86
+ "atSteps": [
87
+ {
88
+ "label": "straight",
89
+ "equals": 0
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "entity": "effects",
95
+ "component": "smokeTicks",
96
+ "gte": 5
97
+ }
98
+ ]
99
+ }
100
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "name": "hud",
3
+ "target": "web",
4
+ "schemaVersion": 1,
5
+ "viewport": {
6
+ "width": 1280,
7
+ "height": 720
8
+ },
9
+ "warmupFrames": 10,
10
+ "subject": "player",
11
+ "steps": [
12
+ {
13
+ "kind": "wait",
14
+ "label": "idle",
15
+ "waitTicks": 30
16
+ },
17
+ {
18
+ "kind": "input",
19
+ "label": "drive",
20
+ "press": ["ArrowUp"],
21
+ "holdTicks": 240,
22
+ "release": false
23
+ },
24
+ {
25
+ "kind": "input",
26
+ "label": "kick",
27
+ "press": ["ArrowUp", "ArrowRight", "ShiftLeft"],
28
+ "holdTicks": 8,
29
+ "release": false
30
+ },
31
+ {
32
+ "kind": "input",
33
+ "label": "hold",
34
+ "press": ["ArrowUp", "ArrowRight"],
35
+ "holdTicks": 30,
36
+ "release": false
37
+ },
38
+ {
39
+ "kind": "input",
40
+ "label": "catch",
41
+ "press": ["ArrowUp", "ArrowLeft"],
42
+ "holdTicks": 14,
43
+ "release": false
44
+ },
45
+ {
46
+ "kind": "input",
47
+ "label": "straighten",
48
+ "press": ["ArrowUp"],
49
+ "holdTicks": 40,
50
+ "release": true
51
+ }
52
+ ],
53
+ "assert": {
54
+ "diagnostics": {
55
+ "noConsoleErrors": true,
56
+ "runtimeReady": true
57
+ },
58
+ "resources": [
59
+ {
60
+ "id": "state",
61
+ "path": "gear",
62
+ "gte": 3,
63
+ "changed": true
64
+ },
65
+ {
66
+ "id": "state",
67
+ "path": "rpm",
68
+ "gte": 0.3,
69
+ "changed": true
70
+ },
71
+ {
72
+ "id": "state",
73
+ "path": "topSpeed",
74
+ "gte": 15
75
+ },
76
+ {
77
+ "id": "state",
78
+ "path": "driftsBanked",
79
+ "gte": 1,
80
+ "changed": true
81
+ },
82
+ {
83
+ "id": "state",
84
+ "path": "driftLast",
85
+ "gte": 5,
86
+ "changed": true
87
+ },
88
+ {
89
+ "id": "state",
90
+ "path": "engineRate",
91
+ "gte": 1,
92
+ "changed": true
93
+ },
94
+ {
95
+ "id": "state",
96
+ "path": "engineRate",
97
+ "atSteps": [
98
+ {
99
+ "label": "idle",
100
+ "lte": 0.8
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "id": "state",
106
+ "path": "driftPopup",
107
+ "gte": 0.3,
108
+ "atSteps": [
109
+ {
110
+ "label": "idle",
111
+ "lte": 0
112
+ }
113
+ ]
114
+ }
115
+ ]
116
+ }
117
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "launch-pose",
3
+ "target": "web",
4
+ "schemaVersion": 1,
5
+ "viewport": { "width": 1280, "height": 720 },
6
+ "warmupFrames": 10,
7
+ "subject": "player",
8
+ "steps": [
9
+ { "kind": "input", "label": "launch", "press": ["ArrowUp"], "holdTicks": 45, "release": false }
10
+ ],
11
+ "assert": {
12
+ "diagnostics": {
13
+ "noConsoleErrors": true,
14
+ "noNetworkErrors": true,
15
+ "noRuntimeDiagnostics": true,
16
+ "runtimeReady": true
17
+ },
18
+ "components": [
19
+ {
20
+ "entity": "camera-rig",
21
+ "component": "leanRoll",
22
+ "lte": 0.2,
23
+ "gte": -0.2,
24
+ "allowTrivial": "A straight launch has no lateral load, so the body stays level side to side. With the lean axes swapped the forward load rolled the car sideways about 1 deg on every launch."
25
+ },
26
+ {
27
+ "entity": "camera-rig",
28
+ "component": "leanPitch",
29
+ "gte": 0.3,
30
+ "allowTrivial": "Full throttle from the grid is about 11 m/s2 of forward load, so the nose lifts. With the lean axes swapped the launch pitch read zero."
31
+ }
32
+ ]
33
+ }
34
+ }
@@ -0,0 +1,158 @@
1
+ {
2
+ "name": "nitro",
3
+ "target": "web",
4
+ "schemaVersion": 1,
5
+ "viewport": {
6
+ "width": 1280,
7
+ "height": 720
8
+ },
9
+ "warmupFrames": 10,
10
+ "subject": "player",
11
+ "steps": [
12
+ {
13
+ "kind": "input",
14
+ "label": "cruise",
15
+ "press": ["ArrowUp"],
16
+ "holdTicks": 30,
17
+ "release": false
18
+ },
19
+ {
20
+ "kind": "input",
21
+ "label": "nitro",
22
+ "press": ["ArrowUp", "Space"],
23
+ "holdTicks": 120,
24
+ "release": false
25
+ },
26
+ {
27
+ "kind": "input",
28
+ "label": "coast",
29
+ "press": ["ArrowUp"],
30
+ "holdTicks": 90,
31
+ "release": false
32
+ },
33
+ {
34
+ "kind": "input",
35
+ "label": "kick",
36
+ "press": ["ArrowUp", "ArrowRight", "ShiftLeft"],
37
+ "holdTicks": 8,
38
+ "release": false
39
+ },
40
+ {
41
+ "kind": "input",
42
+ "label": "hold",
43
+ "press": ["ArrowUp", "ArrowRight"],
44
+ "holdTicks": 30,
45
+ "release": false
46
+ },
47
+ {
48
+ "kind": "input",
49
+ "label": "catch",
50
+ "press": ["ArrowUp", "ArrowLeft"],
51
+ "holdTicks": 14,
52
+ "release": false
53
+ },
54
+ {
55
+ "kind": "input",
56
+ "label": "straighten",
57
+ "press": ["ArrowUp"],
58
+ "holdTicks": 40,
59
+ "release": true
60
+ }
61
+ ],
62
+ "assert": {
63
+ "diagnostics": {
64
+ "noConsoleErrors": true,
65
+ "runtimeReady": true
66
+ },
67
+ "resources": [
68
+ {
69
+ "id": "state",
70
+ "path": "nitro",
71
+ "lte": 0.7,
72
+ "changed": true
73
+ },
74
+ {
75
+ "id": "state",
76
+ "path": "nitroActive",
77
+ "atSteps": [
78
+ {
79
+ "label": "cruise",
80
+ "equals": false
81
+ },
82
+ {
83
+ "label": "nitro",
84
+ "equals": true
85
+ },
86
+ {
87
+ "label": "coast",
88
+ "equals": false
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "id": "state",
94
+ "path": "topSpeed",
95
+ "gte": 26.5
96
+ },
97
+ {
98
+ "id": "state",
99
+ "path": "nitro",
100
+ "atSteps": [
101
+ {
102
+ "label": "coast",
103
+ "lte": 0.35
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "id": "state",
109
+ "path": "nitroDriftGain",
110
+ "gte": 0.1,
111
+ "changed": true
112
+ },
113
+ {
114
+ "id": "state",
115
+ "path": "drifting",
116
+ "atSteps": [
117
+ {
118
+ "label": "coast",
119
+ "equals": false
120
+ },
121
+ {
122
+ "label": "hold",
123
+ "equals": true
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "id": "state",
129
+ "path": "driftSpins",
130
+ "equals": 0,
131
+ "allowTrivial": "A spin is the failure this scenario looks for; zero is the held invariant while the drift-refill gain above proves the slide happened."
132
+ },
133
+ {
134
+ "id": "state",
135
+ "path": "fovPeak",
136
+ "gte": 64,
137
+ "changed": true
138
+ },
139
+ {
140
+ "id": "state",
141
+ "path": "fov",
142
+ "atSteps": [
143
+ {
144
+ "label": "coast",
145
+ "lte": 57
146
+ }
147
+ ]
148
+ }
149
+ ],
150
+ "components": [
151
+ {
152
+ "entity": "effects",
153
+ "component": "flameTicks",
154
+ "gte": 60
155
+ }
156
+ ]
157
+ }
158
+ }
@@ -50,8 +50,8 @@
50
50
  {
51
51
  "id": "state",
52
52
  "path": "place",
53
- "equals": 2,
54
- "allowTrivial": "The demo driver starts second on the grid and stays there, so the place is a held invariant; the DNF transition below is what proves the finish."
53
+ "equals": 6,
54
+ "allowTrivial": "The demo driver starts last on the grid, slower than every rival, and stays there, so the place is a held invariant; the DNF transition below is what proves the finish."
55
55
  },
56
56
  {
57
57
  "id": "state",
@@ -81,8 +81,8 @@
81
81
  "hud": [
82
82
  {
83
83
  "id": "outcome",
84
- "equals": "P2",
85
- "allowTrivial": "The player finished every lap behind the rival: the panel names the place, not DNF, which reads as did-not-finish."
84
+ "equals": "P6",
85
+ "allowTrivial": "The player finished every lap behind the field: the panel names the place, not DNF, which reads as did-not-finish."
86
86
  }
87
87
  ]
88
88
  }
@@ -6,7 +6,7 @@
6
6
  "assert": {
7
7
  "performance": {
8
8
  "maxDrawCalls": 330,
9
- "maxTriangles": 105000,
9
+ "maxTriangles": 135000,
10
10
  "minFps": 30
11
11
  },
12
12
  "renderChain": {
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "steady-camera",
3
+ "target": "web",
4
+ "schemaVersion": 1,
5
+ "viewport": {
6
+ "width": 1280,
7
+ "height": 720
8
+ },
9
+ "warmupFrames": 10,
10
+ "subject": "player",
11
+ "steps": [
12
+ {
13
+ "kind": "input",
14
+ "label": "straight",
15
+ "press": ["ArrowUp"],
16
+ "holdTicks": 240,
17
+ "release": false
18
+ },
19
+ {
20
+ "kind": "input",
21
+ "label": "right",
22
+ "press": ["ArrowUp", "ArrowRight"],
23
+ "holdTicks": 60,
24
+ "release": false
25
+ },
26
+ {
27
+ "kind": "input",
28
+ "label": "left",
29
+ "press": ["ArrowUp", "ArrowLeft"],
30
+ "holdTicks": 60,
31
+ "release": false
32
+ },
33
+ {
34
+ "kind": "input",
35
+ "label": "right-again",
36
+ "press": ["ArrowUp", "ArrowRight"],
37
+ "holdTicks": 60,
38
+ "release": true
39
+ },
40
+ {
41
+ "kind": "input",
42
+ "label": "autopilot",
43
+ "press": ["KeyP"],
44
+ "holdTicks": 2,
45
+ "release": true
46
+ },
47
+ {
48
+ "kind": "wait",
49
+ "label": "long-drive",
50
+ "waitTicks": 1200,
51
+ "release": true
52
+ }
53
+ ],
54
+ "assert": {
55
+ "diagnostics": {
56
+ "noConsoleErrors": true,
57
+ "noNetworkErrors": true,
58
+ "noRuntimeDiagnostics": true,
59
+ "runtimeReady": true
60
+ },
61
+ "components": [
62
+ {
63
+ "entity": "camera-rig",
64
+ "component": "cameraRollStep",
65
+ "lte": 1.5,
66
+ "allowTrivial": "The meter starts at zero on the grid. Before the fix the bank read the raw per-tick tyre load and flipped its full +-3.15 deg in one tick mid-corner, 6.2 deg measured; smoothed it measured 0.51 deg, so 1.5 deg catches the flip."
67
+ },
68
+ {
69
+ "entity": "camera-rig",
70
+ "component": "cameraYawJerk",
71
+ "lte": 15,
72
+ "allowTrivial": "The second difference of the camera yaw, teleport cuts excluded. The raw velocity heading jerked 84 deg in one tick; eased like the kart camera it measured 5.7 deg at a full right-to-left steer reversal, so 15 deg catches a snap."
73
+ },
74
+ {
75
+ "entity": "camera-rig",
76
+ "component": "leanRollStep",
77
+ "lte": 2,
78
+ "allowTrivial": "The body lean read the same raw load and flipped its full +-5 deg, 10 deg in one tick, the shake on the car. Smoothed it measured 0.81 deg, so 2 deg catches the flip and leaves the real lean room."
79
+ },
80
+ {
81
+ "entity": "player",
82
+ "component": "topSpeed",
83
+ "gte": 12,
84
+ "allowTrivial": "Four seconds of full throttle reach racing speed, so the corners the meter reads are taken at speed and not on the parked grid."
85
+ }
86
+ ]
87
+ }
88
+ }