{"size": 1590, "ext": "js", "max_stars_repo_path": "assets/scripts/phaser/Preload.js", "max_stars_repo_name": "alex-carlson/acwd2016", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "assets/scripts/phaser/Preload.js", "max_issues_repo_name": "alex-carlson/acwd2016", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "assets/scripts/phaser/Preload.js", "max_forks_repo_name": "alex-carlson/acwd2016", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 48.1818181818, "max_line_length": 129, "alphanum_fraction": 0.7251572327}
var SideScroller = SideScroller || {};

//loading the game assets
SideScroller.Preload = function(){};

SideScroller.Preload.prototype = {
  preload: function() {
    //show loading screen
    // this.preloadBar = this.add.sprite(this.game.world.centerX, this.game.world.centerY, 'preloadbar');
    // this.preloadBar.anchor.setTo(0.5);
    // this.preloadBar.scale.setTo(3);

    //this.load.setPreloadSprite(this.preloadBar);
    this.cursors = this.game.input.pointer1.isDown;

    //load game assets
    this.load.image('player', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/run_anim.png');
    this.load.spritesheet('3252523425', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/run_anim.png', 40, 64, 8);
    this.load.image('playerDuck', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/run_anim.png');
    this.load.image('playerDead', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/player_fall.png');
    this.load.spritesheet('1390140218', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/player_fall.png', 40, 64, 5);
    this.load.image('goldCoin', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/pizza.png');
    this.load.image('floor', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/grass.png');
    this.load.image('sand', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/images/poop.png');
    this.load.audio('coin', mylocalizedscript.myurl+'/dist/scripts/phaser/assets/audio/coin.wav');
  },
  update: function(){
    if(this.cursors){
      this.state.start('Game');
    }
  }
};
