<ActorFrame><children>
	<Layer
		Font="_sg stroke" Text="0"
		InitCommand="%function(self)
		self:x( SCREEN_CENTER_X )
		self:y( SCREEN_CENTER_Y+140 )
		self:zoom(0.5)
		end"
		OnCommand="%function(self) self:settext( 'SCORE' ) end" />
	<Layer
		Font="_sg stroke" Text="0"
		InitCommand="%function(self)
		self:x( SCREEN_CENTER_X )
		self:y( SCREEN_CENTER_Y+160 )
		self:zoom(0.5)
		end"
		OnCommand="%function(self) self:settext( 'PERCENTAGE' ) end" />
	<Layer
		Font="_score" Text="0"
		Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)"
		InitCommand="diffuse,68/255,187/255,238/255,1;x,SCREEN_CENTER_X-60;y,SCREEN_CENTER_Y+140;zoom,1;horizalign,right;draworder,90;sleep,0.1;queuecommand,ShowScore"
		ScoreChangedP1MessageCommand="%function(self) self:settext( GetScore(PLAYER_1) ) end"
		ShowScoreCommand="%function(self)
			self:settext( GetScore(PLAYER_1) )
			self:zoom(0)
			self:sleep(0.2*7)
			self:bounceend(0.4)
			self:zoom(1)
		end"
		OffCommand="%function(self) SaveToProfile() end" />

	<Layer
		Font="_gpscore P1"
		Text=" 0.00%"
		InitCommand="x,SCREEN_CENTER_X-60;y,SCREEN_CENTER_Y+160;zoom,1;horizalign,right;draworder,90;sleep,0.1;"
		Condition="GAMESTATE:IsPlayerEnabled(PLAYER_1)"
		OnCommand="%function(self) CalculatePercentage(self, PLAYER_1) self:queuecommand('ShowScore') end"
		ShowScoreCommand="%function(self)
		self:zoom(0)
		self:sleep(0.2*7)
		self:bounceend(0.4)
		self:zoom(1)
		end"
		/>

	<Layer
		Font="_score"
		Text="0"
		Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)"
		InitCommand="diffuse,238/255,221/255,0,1;x,SCREEN_CENTER_X+60;y,SCREEN_CENTER_Y+140;zoom,1;horizalign,left;draworder,90;sleep,0.1;queuecommand,ShowScore"
		ScoreChangedP1MessageCommand="%function(self) self:settext( GetScore(PLAYER_2) ) end"
		ShowScoreCommand="%function(self)
			self:settext( GetScore(PLAYER_2) )
			self:zoom(0)
			self:sleep(0.2*7)
			self:bounceend(0.4)
			self:zoom(1)
		end"
		OffCommand="%function(self)
		 SaveToProfile()
		end"
		/>

	<Layer
		Font="_gpscore P2"
		Text=" 0.00%"
		InitCommand="x,SCREEN_CENTER_X+60;y,SCREEN_CENTER_Y+160;zoom,1;horizalign,left;draworder,90;sleep,0.1"
		Condition="GAMESTATE:IsPlayerEnabled(PLAYER_2)"
		OnCommand="%function(self) CalculatePercentage(self, PLAYER_2) self:queuecommand('ShowScore') end"
		ShowScoreCommand="%function(self)
			self:zoom(0)
			self:sleep(0.2*7)
			self:bounceend(0.4)
			self:zoom(1)
		end"
		/>

		<Layer File="ScoresEvaluationStage.xml" OnCommand="%function(self) ScoreType = 'Stage'; end" />
	
	<!-- VOICE JUDGMENT STUFF -->
        <Layer
                Type="Quad"
                OnCommand="queuecommand,PlaySound"
                PlaySoundCommand="%function(self)
                RandomNumber = math.random(1,7)
                AudioClipToPlay = AnnouncerAudio()
                	AudioPlay( AudioClipToPlay )
                end"
        />

        <!-- ""Profile"" Picture and ""Game Periferal"" for players-->
            <Layer  File="ProfileInfo.xml" />

        <Layer File="OptionIcons.xml" OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y+205" />
</children></ActorFrame>