{"size": 659, "ext": "js", "max_stars_repo_path": "lib/game/modules/game.js", "max_stars_repo_name": "Naitron-oss/sanic", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/game/modules/game.js", "max_issues_repo_name": "Naitron-oss/sanic", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/game/modules/game.js", "max_forks_repo_name": "Naitron-oss/sanic", "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": 19.9696969697, "max_line_length": 53, "alphanum_fraction": 0.6236722307}

ig.module(
    'game.modules.game'
)
.requires(
	'plusplus.core.plusplus'
)
.defines(function () {
    "use strict";
    
    var _c = ig.CONFIG;

	ig.app = ig.GameExtended = ig.GameExtended.extend({	
		startGame: function(level) {
			this.scene = 'game';
			this.selectCharacter(config.character);
			if(this.player) {
				this.player.lives = 1;
				this.player.health = 3;
			}
			this.loadLevel(ig.global[level]);
			this.camera._snap = true;		
			this.initHUD();			
			if (this.music_enabled) this.initMusic();
			if (this.grid_enabled) this.initGrid();
		},
		resetGame: function() {
			this.camera._snap = false;
			this.camera.pause();
		}
	});  
});
