dist/server-module/lance-gg.js
/**
      * Start the game. This method runs on both server
      * and client. Extending the start method is useful
      * for setting up the game's worldSettings attribute,
      * and registering methods on the event handler.
      */
Start the game. This method runs on both server
and client. Extending the start method is useful
for setting up the game's worldSettings attribute,
and registering methods on the event handler.
Start the game . This method runs on both server and client . Extending the start method is useful for setting up the game ' s worldSettings attribute and registering methods on the event handler .
start() {
        this.trace.info(() => '========== game engine started ==========');
        this.initWorld();
        this.timer = new Timer();
        this.timer.play();
        this.on('postStep', (step, isReenact) => {
            if (!isReenact) this.timer.tick();
        });
        this.emit('start', { timestamp: (new Date()).getTime() });
    }
start ( ) { this . trace . info ( ( ) => '========== game engine started ==========' ) ; this . initWorld ( ) ; this . timer = new Timer ( ) ; this . timer . play ( ) ; this . on ( 'postStep' , ( step , isReenact ) => { if ( ! isReenact ) this . timer . tick ( ) ; } ) ; this . emit ( 'start' , { timestamp : ( new Date ( ) ) . getTime ( ) } ) ; }
Start the game.
Start the game .
// create the default timer