/*
 *    mainmenu.js
 *    Handles main menu
 */

YINS.MainMenu = function(game) {
	this.music;
};

YINS.MainMenu.prototype = {
	create: function() {
		/* Our assets are preloaded, so here we just kick things off
		by playing some music */
		this.music = YINS.game.add.audio('menuMusic');
		this.music.loopFull(1);

		this.stage.backgroundColor = YINS.color.purple_light;

		var title = YINS.game.add.text(YINS.game.world.centerX, YINS.game.world.centerY, 'YINS', YINS.text.title);
		title.anchor.set(0.5);

		var subtitle = YINS.game.add.text(YINS.game.world.centerX, YINS.game.world.centerY + 80, '- Click to start -', YINS.text.subtitle);
		subtitle.anchor.set(0.5);

		YINS.game.input.onDown.add(this.startGame, this);
	},

	startGame: function(pointer) {
		this.music.stop();
 		YINS.game.state.start('game');
	}
};
@@ -87,16 +87,21 @@
 is.music
+ = %7B%7D
 ;%0A%7D;%0A%0AYI

Set this.music to empty object