js/si.js
//  Create a PlayState with the game config and the level you are on.
Create a PlayState with the game config and the level you are on.
Create a PlayState with the game config and the level you are on .
function PlayState(config, level) {
    this.config = config;
    this.level = level;
    this.invaderCurrentVelocity =  10;
    this.invaderCurrentDropDistance =  0;
    this.invadersAreDropping =  false;
    this.lastRocketTime = null;
    this.ship = null;
    this.invaders = [];
    this.rockets = [];
    this.bombs = [];
}
function PlayState ( config , level ) { this . config = config ; this . level = level ; this . invaderCurrentVelocity = 10 ; this . invaderCurrentDropDistance = 0 ; this . invadersAreDropping = false ; this . lastRocketTime = null ; this . ship = null ; this . invaders = [ ] ; this . rockets = [ ] ; this . bombs = [ ] ; }
Create a PlayState with the game config and the level you are on.
Create a PlayState with the game config and the level you are on .
//  Game state. //  Game entities.