<scene>

  <container  name="background" />


      <container centerParent="1"  w="1024" h="768" child_hit_test="0">
      

  

  		
  
  

  <container w='1024' h='300' x='0' y='568' name="hud">
    <state name="start"       x='0' y='770' w='1024' h='300' />
    <transition from="start" to="default" time="1.5"/>
    <state name="win"       x='0' y='770' w='1024' h='300' />		
    
		<container content="data/scenes/game/hud.xml" />
  </container> 


  <container x="55" y="-25" w="918" h="648" name="board">
    <state name="pause" color="ffffff00" x="55" y="-25" w="918" h="648" visible="0" />
	 <state name="hide" color="ffffff00" x="55" y="-25" w="918" h="648"  visible="0" />
    <state name="win" color="ffffff00" x="55" y="-25" w="918" h="648"/>
    <state name="lose" color="ffffff00" x="55" y="-25" w="918" h="648"/>
    <state name="shop_ingame" color="ffffff00" x="55" y="-25" w="918" h="648"/>
        
        
    <state name="start" color="ffffff00" x="55" y="-25" w="918" h="648"/>
    <transition from="start" to="default" time="1.5"/>
  </container>
  <container x="55" y="-25" w="918" h="648" name="turns" enabled="0">
    <state name="pause" color="ffffff00" />
	    <state name="hide" color="ffffff00" />
  </container>
  <container x="55" y="-25" w="918" h="648" name="highlights" enabled="0">
    <state name="pause" color="ffffff00" />
	    <state name="hide" color="ffffff00" />
  </container>
  
	<container x="55" y="-25" w="918" h="648" name="selection_marker_container" enabled="0">
		<image name="selection_marker" filename="data/gfx/board/selection_marker.png" visible="0" enabled="0">
			<state name="pause" color="ffffff00" />
			<state name="hide" color="ffffff00" />
      <state name="win" color="ffffff00" />
      <state name="loose" color="ffffff00" />
      <state name="shop_ingame" color="ffffff00" />
		</image>
	</container>


	  
  <!--container name="win_effect_holder" x="0" y="0" w="1024" h="768" visible="0" enabled="0" /-->



            <container w='1024' h='768' content="data/scenes/game/win_popup.xml" />
            <container w='1024' h='768' content="data/scenes/game/lose_popup.xml" />
            <container w='1024' h='768' x='0' y='0' content="data/scenes/game/pause_back.xml" />

            <container w="1024" h="768" x="130" y="-768" content="data/scenes/game/pause_menu.xml" />
            
            <container w="730" h="760" x="140" y="-860" content="data/scenes/game/options.xml" />
            <container w="1024" h="768" x='33' y='-800' content="data/scenes/game/info_ingame.xml"/>              
            <container w="1024" h="768" x='33' y='-800' content="data/scenes/game/shop_ingame.xml"/> 
  
  

 
  <container w='1024' h='768' x='0' y='0' visible="0">
    <state name="tutorial" visible="1"/>

    <container w="1024" h="768" x="0" y="0" color="ffffff00">
      <state name="tutorial" color="ffffffff"/>
      <image w="1024" h="768" filename="data/gui/popap_shade.png" />
    </container>

    <!--container w="450" h="330"           x='270' y='-400'>
      <state name="tutorial" visible="1" x='270' y='200' w="450" h="330"/>

      <image9 x='3' y='3' w="448" h="328" filename="data/gui/big_cb_composit_h.png" corner="30"/>

      <container name="tutorial_box" w="420" h="280" x="0" y="0" />

      <button x="160" y="240" w="150" h="50" text="" on_click="continue">
        <image name="default" x="0" y="0" filename="data/gui/buttons/continue_d.png" visible="1" />
        <image name="active" x="0" y="0" filename="data/gui/buttons/continue_a.png" visible="0" />
        <image name="pressed" x="1" y="1" filename="data/gui/buttons/continue_a.png" visible="0" />
      </button>
    </container-->
    
  </container>
  
 
	

 
 	<!--container w='1024' h='768' x='0' y="0" content="data/scenes/game/first_tutorial.xml" /-->
 
  <container w='730' h='670' x='0' y='0' content="data/scenes/game/restart_question.xml" />
  <container w='730' h='670' x='0' y='0' content="data/scenes/game/exit_question.xml" /> 

  
  
  <container name="tut1_top" w='1900' h='765' x='-400' y='-573' visible="0" enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="1" enabled="1" color="ffffffff"/>
		<state name="tutorial_2" visible="0" enabled="0" color="ffffff00"/>						
		<state name="tutorial_2_off" visible="0" enabled="0"/>						
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />
		<image w="1900" h="765" color="000000bb" />
	</container>

	<container name="tut1_bottom" w='1900' h='760' x='-400' y='352' visible="0"  enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="1" enabled="1" color="ffffffff"/>
		<state name="tutorial_2" visible="0" enabled="0" color="ffffff00"/>						
		<state name="tutorial_2_off" visible="0" enabled="0"/>	
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />           
 
		<image w="1900" h="760" color="000000bb" />
	</container>

	<container name="tut1_left" w='1000' h='160' x='-454' y='192' visible="0"  enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="1" enabled="1" color="ffffffff"/>
		<state name="tutorial_2" visible="0" enabled="0" color="ffffff00"/>						
		<state name="tutorial_2_off" visible="0" enabled="0"/>						
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />					 
		<image w="1000" h="160" color="000000bb" />
	</container>  

	<container name="tut1_right" w='1000' h='160' x='654' y='192' visible="0"  enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="1" enabled="1" color="ffffffff" />
		<state name="tutorial_2" visible="0" enabled="0" color="ffffff00" />						
		<state name="tutorial_2_off" visible="0" enabled="0"/>						
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />					 
		<image x='-85' y='-24' filename="data/gui/swap_horizontal.png"  />
		<text x="-260" y="-145" align="center" w="400" h="100" color="ffffff" line_height="25" text="Swap these pieces to make your first match." font="data/fonts/dsgoose_32.xml" />
		<image w="1000" h="160" color="000000bb" />
        <image filename="data/gfx/elf_left.png"  x="-600" y="50"/>
	</container>  



	<container name="tut2_top" w='1900' h='765' x='-400' y='-465' visible="0" enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="0" enabled="0" color="ffffff00"/>
		<state name="tutorial_2" visible="1" enabled="1" color="ffffffff" />						
		<state name="tutorial_2_off" visible="0" enabled="0" color="ffffff00"/>						
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />
		<image w="1900" h="765" color="000000bb" />
	</container>

	<container name="tut2_bottom" w='1900' h='760' x='-400' y='460' visible="0"  enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="0" enabled="0" color="ffffff00" />
		<state name="tutorial_2" visible="1" enabled="1" color="ffffffff" />						
		<state name="tutorial_2_off" visible="0" enabled="0" color="ffffff00" />						
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />
		<image w="1900" h="760" color="000000bb" />
	</container>

	<container name="tut2_left" w='1000' h='160' x='-404' y='300' visible="0"  enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="0" enabled="0" color="ffffff00" />
		<state name="tutorial_2" visible="1" enabled="1" color="ffffffff" />						
		<state name="tutorial_2_off" visible="0" enabled="0" color="ffffff00" />						
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />					 
		<image w="1000" h="160" color="000000bb" />
	</container>  

	<container name="tut2_right" w='1000' h='160' x='708' y='300' visible="0"  enabled="0" color="ffffff00">
		<state name="tutorial_1" visible="0" enabled="0" color="ffffff00" />
		<state name="tutorial_2" visible="1" enabled="1" color="ffffffff" />						
		<state name="tutorial_2_off" visible="0" enabled="0" color="ffffff00" />						
		<transition from="tutorial_1" to="tutorial_2" time="1.05" />					 
		<image x='-75' y='60' filename="data/gui/swap_horizontal.png"  />
		<text x="-510" y="20" align="center" w="400" h="100" color="ffffff" line_height="25" text="Swap these pieces to collect the coin by moving it to the bottom of the board." font="data/fonts/dsgoose_32.xml" />
		<image w="1000" h="160" color="000000bb" />
            <image filename="data/gfx/elf_right.png"  x="0" y="50"/>
	</container>  

  
  

  </container>

  
  <container   parentAlign="right" parentVAlign="bottom" w="230" h="123"  >
      <container  w="230" h="123" content="data/scenes/game/hud_right.xml" />
	</container>

	<container content="data/scenes/game/hud_left.xml" />
 

  
	<container  name="tutorial_timer" content="data/scenes/game/tutorial/timer.xml"/>
	<container  name="tutorial_powers1" content="data/scenes/game/tutorial/powers1.xml"/>  
  <container  name="tutorial_bomb" content="data/scenes/game/tutorial/tutorial_bomb.xml"/>  
  <container  name="tutorial_plates" content="data/scenes/game/tutorial/plates.xml"/>  
  <container  name="tutorial_crates" content="data/scenes/game/tutorial/tutorial_crates.xml"/> 
  <container  name="tutorial_locks" content="data/scenes/game/tutorial/tutorial_locks.xml"/> 
	<container  name="tutorial_powers2" content="data/scenes/game/tutorial/powers2.xml"/> 
  <container  name="tutorial_bad" content="data/scenes/game/tutorial/tutorial_bad.xml"/> 
  <container  name="tutorial_rockets" content="data/scenes/game/tutorial/tutorial_rockets.xml"/> 
  <container  name="tutorial_rockets" content="data/scenes/game/tutorial/tutorial_chameleon.xml"/> 
  
	<button x="0" y="0" w="1400" h="1024" enabled="0" visible="0" on_click="continue">
		<state name="hide" enabled="1" visible="1"/>
		<image name="default" x="0" y="0" w="1400" h="1024" visible="1" color="ffffff00"/>
		<image name="active" x="0" y="0" w="1400" h="1024" visible="0"  color="ffffff00"/>
		<image name="pressed" x="1" y="1" w="1400" h="1024" visible="0"  color="ffffff00"/>      
	</button>
  
    	<container centerParent="1" x="0" y="0" w='1600' h='1300' visible='0' name="iap_loading"> 
	 <image w="1600" h="1300" x="0" y="0" color="000000bb" />
	
	    <container x="770" y="600" w='50' h='50' > 
      	  
          <affine_animation  filename="data/gui/animations/rotate.anim.xml" autoremove="0">
             <particle_system  x="-82" y="-82" filename="data/gfx/particles/rcp_2.png" start_color="ffffffff" end_color="ffffff33" start_size="1" end_size="0.3" >
                   <particle_emitter 
	energy_min="1.0" 
	energy_max="2.8" 
	once="0" speed="30" 
	direction="0"
  spread="20" 
	speed_min="0" 
	speed_max="15"
	
	radial_min="10" radial_max="15" tangential_min="10" tangential_max="15"
	
	  position_left="0" 
	  position_top="0"
	  position_right="0"
	  position_bottom="0"
	
	/>
    </particle_system>  
    
      
    </affine_animation>
    


  
   <text x="32" y="-10" align="center" color="fffedd" dataSource="" name="score" text="Loading..." font="data/fonts/dsgoose_40.xml" />
	</container>
</container> 

</scene>
