var Cube = include('entities/cube.js'); function CubeScene() { this.cam = new Entity(); this.cam.add(POSITION); this.cam.add(CAMERA); this.cam.position.position = new Vec3(3, 3, 3); this.cam.position.lookAt(new Vec3(0, 0, 0)); this.cube = new Cube(); } CubeScene.prototype = Object.create(Scene.prototype); CubeScene.prototype.constructor = CubeScene; CubeScene.prototype.update = function() { this.cube.update(); }; CubeScene.prototype.dispose = function() { this.cam.dispose(); this.cube.dispose(); }; module = CubeScene;