@auraindustry/aurajs 0.1.1 → 0.1.5
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/README.md +7 -0
- package/benchmarks/perf-thresholds.json +27 -0
- package/package.json +6 -1
- package/src/ai-guidance.mjs +302 -0
- package/src/asset-pack.mjs +2 -1
- package/src/authored-project.mjs +498 -2
- package/src/authored-runtime.mjs +14 -0
- package/src/bin-integrity.mjs +33 -26
- package/src/build-contract/capabilities.mjs +87 -1
- package/src/build-contract/constants.mjs +1 -0
- package/src/build-contract.mjs +2 -0
- package/src/bundler.mjs +143 -13
- package/src/cli.mjs +681 -13
- package/src/commands/packs.mjs +741 -0
- package/src/commands/project-authoring.mjs +128 -1
- package/src/conformance/cases/app-and-ui-runtime-cases.mjs +1 -2
- package/src/conformance/cases/core-runtime-cases.mjs +6 -2
- package/src/conformance/cases/scene3d-and-media-cases.mjs +238 -0
- package/src/conformance/cases/systems-and-gameplay-cases.mjs +1126 -10
- package/src/conformance-mobile.mjs +166 -0
- package/src/conformance.mjs +89 -30
- package/src/evidence-bundle.mjs +242 -0
- package/src/external-package-surface.mjs +1 -1
- package/src/headless-test/runtime-coordinator.mjs +186 -33
- package/src/headless-test.mjs +2 -0
- package/src/helpers/2d/index.mjs +183 -0
- package/src/helpers/index.mjs +26 -0
- package/src/helpers/starter-utils/adventure-objectives.js +102 -0
- package/src/helpers/starter-utils/adventure-world-2d.js +221 -0
- package/src/helpers/starter-utils/animation-2d.js +337 -0
- package/src/helpers/starter-utils/animation-packaging-2d.js +203 -0
- package/src/helpers/starter-utils/atlas-assets-2d.js +111 -0
- package/src/helpers/starter-utils/autoplay-debug-2d.js +215 -0
- package/src/helpers/starter-utils/avatar-3d.js +404 -0
- package/src/helpers/starter-utils/combat-feedback-2d.js +320 -0
- package/src/helpers/starter-utils/combat-runtime-2d.js +290 -0
- package/src/helpers/starter-utils/core.js +150 -0
- package/src/helpers/starter-utils/dialogue-2d.js +351 -0
- package/src/helpers/starter-utils/enemy-archetypes-2d.js +68 -0
- package/src/helpers/starter-utils/index.js +26 -0
- package/src/helpers/starter-utils/inventory-2d.js +268 -0
- package/src/helpers/starter-utils/journal-2d.js +267 -0
- package/src/helpers/starter-utils/platformer-3d.js +132 -0
- package/src/helpers/starter-utils/scene-audio-2d.js +236 -0
- package/src/helpers/starter-utils/streamed-world-2d.js +378 -0
- package/src/helpers/starter-utils/tilemap-nav-2d.js +499 -0
- package/src/helpers/starter-utils/tilemap-world-2d.js +205 -0
- package/src/helpers/starter-utils/triggers.js +662 -0
- package/src/helpers/starter-utils/tween-2d.js +615 -0
- package/src/helpers/starter-utils/wave-director.js +101 -0
- package/src/helpers/starter-utils/world-compositor-2d.js +253 -0
- package/src/helpers/starter-utils/world-persistence-2d.js +180 -0
- package/src/mobile/android/build.mjs +606 -0
- package/src/mobile/android/host-artifact.mjs +280 -0
- package/src/mobile/ios/build.mjs +1323 -0
- package/src/mobile/ios/host-artifact.mjs +819 -0
- package/src/mobile/shared/capabilities.mjs +174 -0
- package/src/package-integrity.mjs +18 -4
- package/src/packs/catalog.mjs +259 -0
- package/src/perf-benchmark-runner.mjs +17 -12
- package/src/perf-benchmark.mjs +408 -4
- package/src/publish-command.mjs +434 -17
- package/src/publish-validation.mjs +22 -11
- package/src/replay-runtime.mjs +257 -0
- package/src/scaffold/config.mjs +2 -0
- package/src/scaffold/fs.mjs +8 -1
- package/src/scaffold/project-docs.mjs +101 -41
- package/src/scaffold.mjs +4 -0
- package/src/session-runtime.mjs +4 -3
- package/src/web-conformance.mjs +0 -36
- package/templates/create/2d/src/runtime/app.js +4 -0
- package/templates/create/2d-adventure/config/gameplay/adventure.config.js +9 -6
- package/templates/create/2d-adventure/content/gameplay/dialogue.js +85 -0
- package/templates/create/2d-adventure/content/gameplay/world.js +32 -36
- package/templates/create/2d-adventure/content/gameplay/world.tilemap.json +273 -0
- package/templates/create/2d-adventure/docs/design/loop.md +4 -3
- package/templates/create/2d-adventure/prefabs/relic.prefab.js +10 -10
- package/templates/create/2d-adventure/prefabs/world.prefab.js +127 -74
- package/templates/create/2d-adventure/scenes/gameplay.scene.js +603 -112
- package/templates/create/2d-adventure/src/runtime/capabilities.js +16 -0
- package/templates/create/2d-adventure/ui/hud.screen.js +187 -4
- package/templates/create/2d-adventure/ui/journal.screen.js +183 -0
- package/templates/create/2d-survivor/src/runtime/app.js +4 -0
- package/templates/create/3d/scenes/gameplay.scene.js +30 -3
- package/templates/create/3d/src/runtime/app.js +4 -0
- package/templates/create/3d/src/runtime/capabilities.js +5 -0
- package/templates/create/3d/src/runtime/materials.js +10 -0
- package/templates/create/3d-adventure/scenes/gameplay.scene.js +30 -3
- package/templates/create/3d-adventure/src/runtime/capabilities.js +5 -0
- package/templates/create/3d-adventure/src/runtime/materials.js +11 -0
- package/templates/create/3d-collectathon/scenes/gameplay.scene.js +30 -3
- package/templates/create/3d-collectathon/src/runtime/app.js +4 -0
- package/templates/create/3d-collectathon/src/runtime/capabilities.js +5 -0
- package/templates/create/3d-collectathon/src/runtime/materials.js +10 -0
- package/templates/create/blank/assets/splash/aurajs-gg-wordmark.webp +0 -0
- package/templates/create/blank/assets/splash/bg.webp +0 -0
- package/templates/create/blank/assets/splash/boot-loop.wav +0 -0
- package/templates/create/blank/assets/splash/boot-sting.wav +0 -0
- package/templates/create/blank/assets/splash/logo-mascot-sheet.webp +0 -0
- package/templates/create/blank/assets/splash/logoholo.webp +0 -0
- package/templates/create/blank/src/main.js +5 -1
- package/templates/create/blank/src/runtime/splash.js +305 -0
- package/templates/create/local-multiplayer/scenes/gameplay.scene.js +186 -12
- package/templates/create/local-multiplayer/src/runtime/capabilities.js +8 -1
- package/templates/create/shared/assets/splash/aurajs-gg-wordmark.webp +0 -0
- package/templates/create/shared/assets/splash/bg.webp +0 -0
- package/templates/create/shared/assets/splash/boot-loop.wav +0 -0
- package/templates/create/shared/assets/splash/boot-sting.wav +0 -0
- package/templates/create/shared/assets/splash/logo-mascot-sheet.webp +0 -0
- package/templates/create/shared/assets/splash/logoholo.webp +0 -0
- package/templates/create/shared/src/runtime/splash.js +305 -0
- package/templates/create/shared/src/runtime/ui-forms.js +552 -0
- package/templates/create/shared/src/starter-utils/adventure-world-2d.js +221 -0
- package/templates/create/shared/src/starter-utils/animation-packaging-2d.js +203 -0
- package/templates/create/shared/src/starter-utils/atlas-assets-2d.js +111 -0
- package/templates/create/shared/src/starter-utils/autoplay-debug-2d.js +215 -0
- package/templates/create/shared/src/starter-utils/combat-runtime-2d.js +290 -0
- package/templates/create/shared/src/starter-utils/dialogue-2d.js +351 -0
- package/templates/create/shared/src/starter-utils/index.js +15 -1
- package/templates/create/shared/src/starter-utils/inventory-2d.js +268 -0
- package/templates/create/shared/src/starter-utils/journal-2d.js +267 -0
- package/templates/create/shared/src/starter-utils/scene-audio-2d.js +236 -0
- package/templates/create/shared/src/starter-utils/streamed-world-2d.js +378 -0
- package/templates/create/shared/src/starter-utils/tilemap-nav-2d.js +499 -0
- package/templates/create/shared/src/starter-utils/tilemap-world-2d.js +205 -0
- package/templates/create/shared/src/starter-utils/world-compositor-2d.js +253 -0
- package/templates/create/shared/src/starter-utils/world-persistence-2d.js +180 -0
- package/templates/create/video-cutscene/src/runtime/app.js +4 -0
- package/templates/create-bin/play.js +148 -7
- package/templates/skills/auramaxx/SKILL.md +46 -0
- package/templates/skills/auramaxx/project-requirements.md +68 -0
- package/templates/skills/auramaxx/starter-recipes.md +104 -0
- package/templates/skills/auramaxx/validation-checklist.md +49 -0
- package/templates/starter/assets/splash/aurajs-gg-wordmark.webp +0 -0
- package/templates/starter/assets/splash/bg.webp +0 -0
- package/templates/starter/assets/splash/boot-loop.wav +0 -0
- package/templates/starter/assets/splash/boot-sting.wav +0 -0
- package/templates/starter/assets/splash/logo-mascot-sheet.webp +0 -0
- package/templates/starter/assets/splash/logoholo.webp +0 -0
- package/templates/starter/src/main.js +4 -0
- package/templates/starter/src/runtime/splash.js +305 -0
- package/templates/skills/aurajs/SKILL.md +0 -96
- package/templates/skills/aurajs/api-contract-3d.md +0 -7
- package/templates/skills/aurajs/api-contract.md +0 -7
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
# AuraJS Skill
|
|
2
|
-
|
|
3
|
-
Use this skill when building or modifying AuraJS games.
|
|
4
|
-
|
|
5
|
-
## Read First
|
|
6
|
-
- `docs/external/game-dev-api/start-here.md`
|
|
7
|
-
- `docs/external/game-dev-api/creating-a-new-game.md`
|
|
8
|
-
- `docs/external/game-dev-api/working-with-an-aurajs-project.md`
|
|
9
|
-
- `docs/external/game-dev-api/examples-and-first-game-recipes.md`
|
|
10
|
-
- `docs/external/game-dev-api/common-failures-and-fixes.md`
|
|
11
|
-
|
|
12
|
-
Then choose the smallest exact-reference page that matches the task:
|
|
13
|
-
|
|
14
|
-
- `docs/reference/runtime-and-2d-exact-reference.md`
|
|
15
|
-
- `docs/reference/lifecycle-window-input-and-2d-camera-exact-reference.md`
|
|
16
|
-
- `docs/reference/draw2d-assets-audio-storage-and-math-exact-reference.md`
|
|
17
|
-
- `docs/reference/gameplay-systems-exact-reference.md`
|
|
18
|
-
- `docs/reference/animation-scenes-state-tilemaps-and-ecs-exact-reference.md`
|
|
19
|
-
- `docs/reference/3d-rendering-and-content-exact-reference.md`
|
|
20
|
-
- `docs/reference/draw3d-camera-lighting-and-postfx-exact-reference.md`
|
|
21
|
-
- `docs/reference/scene3d-mesh-material-gltf-and-avatar-exact-reference.md`
|
|
22
|
-
- `docs/reference/world-simulation-and-multiplayer-exact-reference.md`
|
|
23
|
-
- `docs/reference/physics3d-terrain-navmesh-character3d-and-compute-exact-reference.md`
|
|
24
|
-
- `docs/reference/net-multiplayer-and-runtime-sessions-exact-reference.md`
|
|
25
|
-
- `docs/reference/tooling-web-and-distribution-exact-reference.md`
|
|
26
|
-
- `docs/reference/project-cli-publish-assets-and-web-exact-reference.md`
|
|
27
|
-
|
|
28
|
-
Only after that should you open:
|
|
29
|
-
|
|
30
|
-
- `api-contract.md` (canonical core surface)
|
|
31
|
-
- `api-contract-3d.md` (canonical 3D surface)
|
|
32
|
-
|
|
33
|
-
Do not load these files end-to-end by default.
|
|
34
|
-
Use targeted reads: jump to the exact namespace/method you are touching, then apply that contract strictly.
|
|
35
|
-
|
|
36
|
-
## Contract Workflow
|
|
37
|
-
1. Identify the APIs your change touches.
|
|
38
|
-
2. Start with the public start/project docs if the task is about scaffolding, layout, workflow, examples, troubleshooting, or publishing.
|
|
39
|
-
3. Search the smallest exact-reference page that matches the subsystem.
|
|
40
|
-
4. Read only the needed sections of the canonical contract and follow signature + validation + error semantics.
|
|
41
|
-
5. If examples or older convenience docs conflict with contract docs, contract docs win.
|
|
42
|
-
|
|
43
|
-
## Build Loop
|
|
44
|
-
1. Implement the smallest playable mechanic in `src/main.js`.
|
|
45
|
-
2. Run `npm run dev` for fast iteration.
|
|
46
|
-
3. Validate release behavior with `npm run play`.
|
|
47
|
-
4. Publish with `npm run publish` when the package is ready.
|
|
48
|
-
|
|
49
|
-
## Project Shape
|
|
50
|
-
- `src/main.js`: thin project entry.
|
|
51
|
-
- `src/runtime/project-registry.js`: source of truth for scenes, screens, prefabs, and config/content files.
|
|
52
|
-
- `src/runtime/app-state.js`: shared mutable app/session state.
|
|
53
|
-
- `src/runtime/scene-registry.js`: runtime adapter generated from the project registry.
|
|
54
|
-
- `src/runtime/app.js`: lifecycle owner.
|
|
55
|
-
- `src/runtime/scene-flow.js`, `screen-shell.js`, `project-inspector.js`: shared runtime helpers.
|
|
56
|
-
- `scenes/*.scene.js`: authored scenes.
|
|
57
|
-
- `ui/*.screen.js`: authored HUD, overlay, and modal screens.
|
|
58
|
-
- `prefabs/*.prefab.js`: canonical prefab descriptors.
|
|
59
|
-
- `config/**`: gameplay defaults and tunables.
|
|
60
|
-
- `content/**`: authored game definitions and starter-owned registries.
|
|
61
|
-
- `assets/**`: game assets.
|
|
62
|
-
|
|
63
|
-
## Template Sources
|
|
64
|
-
- Starters come from `src/cli/templates/create/<template>/` inside the AuraJS CLI package.
|
|
65
|
-
- Shared runtime helpers come from `src/cli/templates/create/shared/src/runtime/`.
|
|
66
|
-
- Shared starter utilities come from `src/cli/templates/create/shared/src/starter-utils/`.
|
|
67
|
-
- Generated files come from `aura make`, which uses the packaged make templates and self-wires `scene`, `ui-screen`, and `prefab` entries into the project registry.
|
|
68
|
-
|
|
69
|
-
## Make Surface
|
|
70
|
-
- Core make kinds: `scene`, `ui-screen`, `prefab`, `data`, `system`, `component`, `material`, `shader`.
|
|
71
|
-
- Some starters also add extra nouns through starter catalogs. The deckbuilder starter adds `card`, `enemy`, `relic`, and `encounter`.
|
|
72
|
-
- Prefer `auramaxx make list --json` or `npx aura make list --json` inside the current project instead of assuming starter-specific nouns from generic help output.
|
|
73
|
-
|
|
74
|
-
## Engine Guardrails
|
|
75
|
-
- Put initialization in `aura.setup`.
|
|
76
|
-
- Put frame-step logic in `aura.update(dt)`.
|
|
77
|
-
- Put rendering in `aura.draw`.
|
|
78
|
-
- Keep rendering API calls in draw-only paths.
|
|
79
|
-
- Use `aura.window.getSize()` for runtime layout.
|
|
80
|
-
- Clamp player/world values to avoid drift.
|
|
81
|
-
|
|
82
|
-
## Vibe Coding Defaults
|
|
83
|
-
- Start with one loop and one strong interaction.
|
|
84
|
-
- Add juice after core feel works: camera, hit feedback, audio, score.
|
|
85
|
-
- Keep systems loosely coupled so AI agents can modify one mechanic at a time.
|
|
86
|
-
|
|
87
|
-
## Suggested Project Structure
|
|
88
|
-
- `src/main.js`: primary loop and gameplay systems.
|
|
89
|
-
- `src/runtime/`: runtime shell and project manifest files.
|
|
90
|
-
- `scenes/`: scene modules.
|
|
91
|
-
- `ui/`: screen modules.
|
|
92
|
-
- `prefabs/`: prefab descriptors.
|
|
93
|
-
- `config/`: gameplay defaults and tunables.
|
|
94
|
-
- `content/`: authored game definitions and registries.
|
|
95
|
-
- `assets/`: sprites, audio, fonts.
|
|
96
|
-
- `skills/`: agent workflows and contract references.
|