Sets up the Babylon.js engine, scene, camera, lighting, and asset loading pipeline for 3D Space Rocks.
Use this skill to scaffold and configure a production-ready scene foundation before gameplay systems are added.
Confirm the project has the required Babylon modules, TypeScript strict settings, and a bootstrap entrypoint.
package.json.Create a small, typed scene factory with clear ownership boundaries.
import { Engine, Scene, HemisphericLight, Vector3 } from "@babylonjs/core";
export function createScene(engine: Engine): Scene {
const scene = new Scene(engine);
new HemisphericLight("keyLight", new Vector3(0, 1, 0), scene);
return scene;
}
Create a camera setup helper aligned to gameplay defaults from the PRD.
Add an asset loader entrypoint with progress callbacks so UI can present loading state.
See docs/PRD.md for the full specification: