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 plane = world . addActor ( 'plane' , Sein . BSPPlaneActor , { width : 2 , height : 2 , material : new Sein . BasicMaterial ( { diffuse : config . theme , lightType : 'PHONG' } ) } ) ; createDefaultLights ( game ) ; createDefaultCamera ( game , { target : plane , position : new Sein . Vector3 ( 0 , 0 , 6 ) } ) ; } }