| 123456789101112131415161718192021222324252627 | 
							- import { actor } from "./actor.js";
 
- import { render_engine } from "./render-engine.js"
 
- class scene extends render_engine {
 
-     constructor(initializer = null) {
 
-         if (initializer !== null && typeof(initializer) !== "function") {
 
-             throw new TypeError("Initializer or function.");
 
-         }
 
-         const player = new actor();
 
-         const canvas = document.createElement("canvas");
 
-         const context = canvas.getContext("webgl2");
 
-         if (!context) {
 
-             throw new TypeError("Browser does not support WebGL.");
 
-         }
 
-         canvas.classList.add("space-render");
 
-         super(canvas, context, player);
 
-         if (initializer) {
 
-             initializer(this);
 
-         }
 
-     }
 
- }
 
- export { scene };
 
 
  |