Abstract
Constructs a new BaseScene.
The Babylon.js engine.
The input handler for this scene.
Protected
engineThe Babylon.js engine instance.
Protected
inputHandles user input for the scene.
Protected
sceneThe Babylon.js scene instance.
Protected
addInitializes Havok physics for the scene with high gravity and a fixed timestep. Should be called asynchronously.
Enables the Babylon.js debug layer for scene inspection.
Renders the current scene.
Restarts the scene by disposing and recreating it.
Abstract
updateAbstract update method to be implemented by subclasses. Called every frame with the time delta.
Time delta since last frame (in seconds).
Abstract base class for all game scenes in Nocturna.
Handles Babylon.js scene creation, rendering, physics initialization (Havok), and input management. Provides utility methods for restarting the scene, enabling the debug layer, and rendering.
Subclasses must implement the
update
method for per-frame logic.