File Author Date Description import * as Sein from 'seinjs' ; import 'seinjs-camera-controls' ; import { createDefaultLights , createDefaultCamera , createSein , loadSein } from '../../utils' ; export default class MainScript extends Sein . LevelScriptActor { public onPreload ( ) { loadSein ( this . getGame ( ) ) ; } public onCreate ( ) { const game = this . getGame ( ) ; const world = this . getWorld ( ) ; createSein ( game ) ; createDefaultLights ( game ) ; createDefaultCamera ( game ) ; const sein = Sein . findActorByName ( world , 'Sein' ) ; const timer = game . addActor ( 'timer' , Sein . TimerActor ) ; timer . event . add ( 'Step' , ( { current } ) => { console . log ( current ) ; sein . transform . rotate ( sein . transform . upVector , 1 ) ; } ) ; timer . start ( 10 , 1000 ) ; } }