<?xml version="1.0"?>
<phxGuiProject Name="Project" Author="" Version="" Width="1365" Height="768">
  <Script>-- This is the code for the gui

function Loaded()
  -- Called when the gui is loaded         
  Posicao=1;                                
  ClickTickCount=0;       
    
  PlayMusic('intro');   

    
  Picture1:AnimateScale(1.4,1,1.5,22);  
  Picture1:AnimateAlpha(0,1,1.2,2);     
  Label1:AnimateAlpha(0,1,2+2,4);     
  btSkip:AnimateAlpha(0,1,0.5,0.5);

  Pause=2;              

end

function Update(frametime)
  if (MouseClick()) and (Pause&lt;=0) then                 

    StopStream();
                        
    if (Posicao==1) then     
      PulaTempo(15);      
      ClickTickCount=10;      
    end     

    if (Posicao==2) then 
     PulaTempo(15);
    end
    
    if (Posicao==3) then 
     PulaTempo(25);
    end
    
    if (Posicao==4) then 
     PulaTempo(42);
    end
    
    if (Posicao==5) then 
     PulaTempo(55);
    end
    
    if (Posicao==6) then 
     PulaTempo(70);
    end
    
    if (Posicao==7) then 
     PulaTempo(85);
    end
    
    if (Posicao==8) then 
     PulaTempo(97);
    end

    if (Posicao==9) then 
     PulaTempo(105);
    end
    
    if (Posicao==10) then 
     PulaTempo(115);
    end
    
    PlaySfx('click');    

  end

  Tempo=PegaTempo();

  -- Called once each frame
  if Pause&gt;0 then
  
    Pause=Pause-frametime;
    if Pause&lt;=0 then  

    PlayStream('intro1_1',2);
    end
  else
    
  Tempo=Tempo+frametime;  
  SetaTempo(Tempo);

  ClickTickCount=ClickTickCount+frametime;       
  if (Tempo&gt;10) and (ClickTickCount&gt;2) then
    if Posicao==1 then 
       Posicao=2       
    end;

    ClickTickCount=0;    

    if (Posicao==2) and (Tempo&gt;11) then    
       Label1:AnimateAlpha(Label1.Alpha,0,0,0.5);       
       Label2:AnimateAlpha(0,1,0.5,1);
    PlayStream('intro1_2',0.5);    
              
       Posicao=Posicao+1;    
    end    

    if (Posicao==3) and (Tempo&gt;25) then    
       Label2:AnimateAlpha(Label1.Alpha,0,0,0.5);
       Picture1:AnimateAlpha(Picture1.Alpha,0,0,0.5);              
       Picture2:AnimateScale(1.4,1,0.4,22);  
       Picture2:AnimateAlpha(0,1,0.4,2);     
       Label3:AnimateAlpha(0,1,1,4);
       Posicao=Posicao+1;
    PlayStream('intro2_1',0.5);    
              
    end    

    if (Posicao==4) and (Tempo&gt;37) then    
       Label3:AnimateAlpha(Label1.Alpha,0,0,0.5);       
       Label4:AnimateAlpha(0,1,0.5,1);       
       Posicao=Posicao+1;
    PlayStream('intro2_2',0.5);
           
    end    

    if (Posicao==5) and (Tempo&gt;51) then    
       Label4:AnimateAlpha(Label1.Alpha,0,0,0.5);
       Picture2:AnimateAlpha(Picture2.Alpha,0,0,0.5);              
       Picture3:AnimateScale(1.4,1,0.4,20);
       Picture3:AnimatePosition(-150,0,0,0,0.4,9);  
       Picture3:AnimateAlpha(0,1,0.4,2);     
       Label3_1:AnimateAlpha(0,1,1,4);
       Posicao=Posicao+1;
    PlayStream('intro3_1',0.5);
           
    end
    
    if (Posicao==6) and (Tempo&gt;66) then    
       Label3_1:AnimateAlpha(Label1.Alpha,0,0,0.5);       
       Label3_2:AnimateAlpha(0,1,0.5,1);       
       Posicao=Posicao+1;
    PlayStream('intro3_2',0.5);
           
    end         

    if (Posicao==7) and (Tempo&gt;77) then    
       Label3_2:AnimateAlpha(Label1.Alpha,0,0,0.5);
       Picture3:AnimateAlpha(Picture3.Alpha,0,0,0.5);              
       Picture4:AnimateScale(1.4,1,0.4,20);
       Picture4:AnimateAlpha(0,1,0.4,2);     
       Label4_1:AnimateAlpha(0,1,1,4);
       Posicao=Posicao+1;
    PlayStream('intro4_1',0.5);
           
    end    

    if (Posicao==8) and (Tempo&gt;85) then    
       Label4_1:AnimateAlpha(Label1.Alpha,0,0,0.5);       
       Label4_2:AnimateAlpha(0,1,1,1);       
       Posicao=Posicao+1;
    PlayStream('intro4_2',0.5);
           
    end         

    if (Posicao==9) and (Tempo&gt;90) then    
       Label4_2:AnimateAlpha(Label1.Alpha,0,0,0.5);       
       Label4_3:AnimateAlpha(0,1,0.5,1);       
       Posicao=Posicao+1;                                 
    PlayStream('intro4_3',0.5);

    end                   

    if (Posicao&gt;=10) and (Tempo&gt;100) then
      StopStream(Audio);    
      StartGame();      
    end;
  end   
  end
end


function btSkipClick(sender)
    StopStream(Audio);
    StopStream();  

    StartGame()
end</Script>
  <Actions/>
  <Controls>
    <control class="TPHXLayer" AdditiveBlending="False" AfterRender="" Alpha="1" BeforeRender="" Cursor="cursor" Enabled="True" FlipX="False" FlipY="False" Focusable="True" Hint="" Hoverable="True" LayerHeight="768" LayerWidth="1365" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <AutoBlink Active="False" Delay="0" DelayFinal="0" Time="10"/>
      <Color Alpha="1" Blue="1" Green="1" Red="1"/>
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Image Image="intro1" Pattern="intro1"/>
      <Pivot Center="True" X="682" Y="384"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLayer" AdditiveBlending="False" AfterRender="" Alpha="1" BeforeRender="" Cursor="cursor" Enabled="True" FlipX="False" FlipY="False" Focusable="True" Hint="" Hoverable="True" LayerHeight="768" LayerWidth="1365" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <AutoBlink Active="False" Delay="0" DelayFinal="0" Time="10"/>
      <Color Alpha="1" Blue="1" Green="1" Red="1"/>
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Image Image="intro2" Pattern="intro2"/>
      <Pivot Center="True" X="682" Y="384"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLayer" AdditiveBlending="False" AfterRender="" Alpha="1" BeforeRender="" Cursor="cursor" Enabled="True" FlipX="False" FlipY="False" Focusable="True" Hint="" Hoverable="True" LayerHeight="768" LayerWidth="1365" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <AutoBlink Active="False" Delay="0" DelayFinal="0" Time="10"/>
      <Color Alpha="1" Blue="1" Green="1" Red="1"/>
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Image Image="intro3" Pattern="intro3"/>
      <Pivot Center="True" X="682" Y="384"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLayer" AdditiveBlending="False" AfterRender="" Alpha="1" BeforeRender="" Cursor="cursor" Enabled="True" FlipX="False" FlipY="False" Focusable="True" Hint="" Hoverable="True" LayerHeight="768" LayerWidth="1365" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <AutoBlink Active="False" Delay="0" DelayFinal="0" Time="10"/>
      <Color Alpha="1" Blue="1" Green="1" Red="1"/>
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Image Image="intro4" Pattern="intro4"/>
      <Pivot Center="True" X="682" Y="384"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLayer" AdditiveBlending="False" AfterRender="" Alpha="1" BeforeRender="" Cursor="cursor" Enabled="True" FlipX="False" FlipY="False" Focusable="True" Hint="" Hoverable="True" LayerHeight="344" LayerWidth="1365" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <AutoBlink Active="False" Delay="0" DelayFinal="0" Time="10"/>
      <Color Alpha="1" Blue="0" Green="0" Red="0"/>
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Image Image="black_fade" Pattern="black_fade"/>
      <Pivot Center="True" X="682" Y="172"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro1_1&gt;" CaptionLocalized="&lt;intro1_1&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro1_2&gt;" CaptionLocalized="&lt;intro1_2&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro2_1&gt;" CaptionLocalized="&lt;intro2_1&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro2_2&gt;" CaptionLocalized="&lt;intro2_2&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro3_1&gt;" CaptionLocalized="&lt;intro3_1&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro3_2&gt;" CaptionLocalized="&lt;intro3_2&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro4_1&gt;" CaptionLocalized="&lt;intro4_1&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro4_2&gt;" CaptionLocalized="&lt;intro4_2&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXLabel" AlignCenter="True" Alignment="alCenter" Alpha="1" Caption="&lt;intro4_3&gt;" CaptionLocalized="&lt;intro4_3&gt;" DropShadow="False" Enabled="True" Hint="" Hoverable="True" MultiLine="True" VisibleOnEditor="True" VisibleOnRenderingOverlay="True">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Polygon/>
      <Path/>
    </control>
    <control class="TPHXButtonFont" Align="taRight" Alpha="1" Caption="&lt;skip&gt;" CaptionLocalized="&lt;skip&gt;" Enabled="True" EnterButtonExecute="False" FocusableWithGameDialog="True" FontScale="1" Hint="" Hoverable="True" HoverGlow="True" HoverGlowAlpha="180" MarginX="0" MarginY="0" OnClick="btSkipClick" Sfx="click" SfxHover="sfx-mouse-hover" VisibleOnEditor="True" VisibleOnRenderingOverlay="True" WordWrap="False">
      <EventsControl OnMouseEntered="" OnMouseExited="" OnMousePressed="" OnMouseReleased=""/>
      <Font Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <FontDisabled Color1="-2887169" Color2="-2887169" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <FontHover Color1="-15414529" Color2="-15414529" Name="Hobo Std-Regular-22pt" OffsetX="0" OffsetY="0"/>
      <Pivot Center="True" X="0" Y="0"/>
      <Skin/>
      <Transition Duration="0,200000002980232" Enabled="False"/>
      <Polygon/>
      <Path/>
    </control>
  </Controls>
  <Translations/>
</phxGuiProject>
