File Author Date Description import * as Sein from 'seinjs' ; import 'seinjs-camera-controls' ; import { createDefaultLights , createDefaultCamera , config } from '../../utils' ; export default class MainScript extends Sein . LevelScriptActor { public onCreate ( ) { const game = this . getGame ( ) ; const world = this . getWorld ( ) ; const sphere = world . addActor ( 'sphere' , Sein . BSPSphereActor , { radius : 2 , widthSegments : 32 , heightSegments : 16 , material : new Sein . BasicMaterial ( { diffuse : config . theme , lightType : 'PHONG' } ) } ) ; createDefaultLights ( game ) ; createDefaultCamera ( game , { target : sphere , position : new Sein . Vector3 ( 0 , 0 , 10 ) } ) ; } }