src/loop.js
/**
     * loop through updates; can be called manually each frame, or called automatically as part of start()
     * @param {number} elapsed time since last call (will be clamped to this.maxFrameTime)
     */
loop through updates; can be called manually each frame, or called automatically as part of start()
@param {number} elapsed time since last call (will be clamped to this.maxFrameTime)
loop through updates ; can be called manually each frame or called automatically as part of start () @param { number } elapsed time since last call ( will be clamped to this . maxFrameTime )
update(elapsed)
    {
        const maxFrameTime = this.maxFrameTime
        elapsed = elapsed > maxFrameTime ? maxFrameTime : elapsed
        for (let i = 0, _i = this.list.length; i < _i; i++)
        {
            if (this.list[i].update(elapsed))
            {
                this.list.splice(i, 1)
                i--
                _i--
            }
        }
        this.emit('each', elapsed, this)
    }
update ( elapsed ) { const maxFrameTime = this . maxFrameTime elapsed = elapsed > maxFrameTime ? maxFrameTime : elapsed for ( let i = 0 , _i = this . list . length ; i < _i ; i ++ ) { if ( this . list [ i ] . update ( elapsed ) ) { this . list . splice ( i , 1 ) i -- _i -- } } this . emit ( 'each' , elapsed , this ) }
loop through updates; can be called manually each frame, or called automatically as part of start()
 @param {number} elapsed time since last call (will be clamped to this.maxFrameTime)
loop through updates ; can be called manually each frame or called automatically as part of start () @param { number } elapsed time since last call ( will be clamped to this . maxFrameTime )