AGENT SKILL

babylonjs-build-scenes

Build Babylon.js engine, scene, asset-container and world lifecycles with explicit simulation and resource ownership.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 4
Forks
3

01 前言 Front Matter

name
babylonjs-build-scenes
engines
[ "BABYLONJS" ]
description
Build Babylon.js engine, scene, asset-container and world lifecycles with explicit simulation and resource ownership.

02 资源文件 1

03 SKILL.md 正文

Build Babylon.js Scenes

When to use

Create game scenes, streamed environments or the Babylon engine/asset boundary.

Engine and dependencies

Before edits or tool launches, run resolve-engine.sh and resolve-skill.sh babylonjs-build-scenes; require compatibility and honor task override scope. Read the locked Babylon package versions, engine contract, world conventions and budgets. Keep core/loaders/GUI packages compatible. Use project-hosted assets and decoders; do not install packages or introduce CDN globals implicitly.

Workflow

  1. Own Engine or selected WebGPUEngine, canvas, render loop and resize handling at the application boundary. Await required initialization, select backend capabilities explicitly and route context-loss/restoration failures visibly.
  2. Give each Scene an enter/leave/dispose contract and active-camera policy. Map application entity IDs to nodes; meshes and observables must not become the only durable gameplay state. Avoid duplicate loops after remounts.
  3. Register loaders and use the installed revision's asset-container API for independently owned bundles. Stage loaded containers before activation. Transition tokens reject stale asynchronous results; dispose abandoned bundles without touching retained shared assets.
  4. Decide handedness, units, origin strategy, camera clipping and static/instanced/thin-instance use from actual content. Thin instances need an explicit index-to-entity mapping and update/bounds policy.
  5. Keep save schemas and content IDs independent from scene serialization. A Babylon scene export can preserve authored presentation but does not automatically include application rules, AI state or migrations. For navigation, select the actual plugin/data source, coordinate conversion and movement adapter; never assume a navmesh or agent solver is included by selecting this skill.
  6. Remove owned observable subscriptions; dispose containers, scenes and the owning engine at their distinct lifetime ends. Preserve reusable textures/materials until their final user is released.

Output and verification

Deliver lifecycle and loading adapters, world identity rules and resource/budget evidence. Test failed imports, transition races, missing textures, multiple instances, repeated enter/exit and resize/visibility restoration. Record real browser/GPU behavior separately from state fixtures. Consult the official asset-container implementation/API at the host's pinned revision rather than assuming current master matches.

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4