application/game/js/alienattack.js
/*
    Game State

    A Game State is simply an update and draw proc.
    When a game is in the state, the update and draw procs are
    called, with a dt value (dt is delta time, i.e. the number)
    of seconds to update or draw).

*/
Game State
A Game State is simply an update and draw proc.
When a game is in the state, the update and draw procs are
called, with a dt value (dt is delta time, i.e. the number)
of seconds to update or draw).
Game State A Game State is simply an update and draw proc . When a game is in the state the update and draw procs are called with a dt value ( dt is delta time i . e . the number ) of seconds to update or draw ) .
function GameState(updateProc, drawProc, keyDown, keyUp, enter, leave) {
    this.updateProc = updateProc;
    this.drawProc = drawProc;
    this.keyDown = keyDown;
    this.keyUp = keyUp;
    this.enter = enter;
    this.leave = leave;
}
function GameState ( updateProc , drawProc , keyDown , keyUp , enter , leave ) { this . updateProc = updateProc ; this . drawProc = drawProc ; this . keyDown = keyDown ; this . keyUp = keyUp ; this . enter = enter ; this . leave = leave ; }
Game State
A Game State is simply an update and draw proc.
Game State A Game State is simply an update and draw proc .