File Author Date Description import * as Sein from 'seinjs' ; import 'seinjs-debug-tools' ; import 'seinjs-dom-hud' ; import { createDefaultCamera } from '../../utils' ; export default class MainScript extends Sein . LevelScriptActor { public onPreload ( ) { const game = this . getGame ( ) ; game . resource . load ( { type : 'Texture' , name : 'yoku.jpg' , url : getStaticAssetUrl ( '/assets/yoku.jpg' ) , flipY : true } ) ; } public onLoading ( state ) { console . log ( state ) ; } public onCreate ( ) { const game = this . getGame ( ) ; const world = this . getWorld ( ) ; createDefaultCamera ( game , { position : new Sein . Vector3 ( 0 , 0 , 2 ) , target : new Sein . Vector3 ( 0 , 0 , 0 ) } ) ; world . addActor ( 'plane' , Sein . BSPPlaneActor , { width : 2.56 , height : 1.92 , material : new Sein . BasicMaterial ( { diffuse : game . resource . get < 'Texture' > ( 'yoku.jpg' ) , lightType : 'NONE' } ) } ) ; } }