Changeset 9155


Ignore:
Timestamp:
2017-07-27 11:42:34 (2 years ago)
Author:
npo17_65
Message:

kun toinen pelaaja kuolee tulee loppuvalikko

Location:
2017/30/HugoE
Files:
3 added
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo/HanniAndHoo.cs

    r9152 r9155  
    1111    Image HanninKuva = LoadImage("Hanni"); 
    1212    Image HoonKuva = LoadImage("Hoo"); 
    13  
    14        
     13    
     14          
    1515    PlasmaCannon HanninAse; 
    1616    Cannon HoonAse; 
     17 
     18     
    1719 
    1820    
     
    2224    { 
    2325        AlkuValikko(); 
     26       
    2427    } 
    2528 
     
    5861        HoonAse.Power.DefaultValue = 20000; 
    5962        AddCollisionHandler(Hoo, Hanni, Tormaa); 
     63 
     64        Hoo.Elamalaskuri.LowerLimit += LoppuValikko; 
     65        Hanni.Elamalaskuri.LowerLimit += LoppuValikko; 
    6066    } 
    6167 
    6268    void AlkuValikko() 
    63     {  
    64         MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 
    65         "Aloita peli", "Lopeta"); 
     69    { 
     70        MediaPlayer.Play("taustamusiikki"); 
     71        MediaPlayer.IsRepeating = true; 
     72        MultiSelectWindow alkuValikko = new MultiSelectWindow("Hanni vs. Hoo", 
     73        "Aloita peli", "Lopeta");   
    6674        Level.Background.Color = Color.Gray; 
    6775        Add(alkuValikko); 
     
    7179 
    7280    } 
     81    void LoppuValikko() 
     82    { 
     83        MultiSelectWindow loppuValikko = new MultiSelectWindow("Hanni vs. Hoo", 
     84       "Pelaa uudestaan", "Lopeta"); 
     85        Level.Background.Color = Color.Gray; 
     86        Add(loppuValikko); 
     87        loppuValikko.AddItemHandler(0, AloitaPeli); 
     88        loppuValikko.AddItemHandler(1, Exit); 
     89    } 
    7390 
    7491    void AloitaPeli() 
    7592    { 
     93        MediaPlayer.Stop(); 
    7694        ClearAll(); 
    7795        LuoKentta(); 
     
    117135    void LuoKentta() 
    118136    { 
    119         MediaPlayer.PlayFromURL("http://www.beepbox.com/#5sbkbl00e01t7m0a7g0fj7i0r1w1111f0000d1111c0000h0000v0000o3210b4h4h4h4h4h4i4x8i4x8i4x4h4h4h4h4h4h4h4h4h4h4p1BINOCVf1FzTkeIcA6UcDi0gFzQewt0W1Q30000"); 
    120         MediaPlayer.IsRepeating = true; 
    121137        Gravity = new Vector(0.0, -800.0); 
    122138        Camera.Zoom(1.2); 
     
    177193        : base(leveys, korkeus) 
    178194        { 
    179             Elamalaskuri.LowerLimit += delegate { this.Destroy(); }; 
     195            Elamalaskuri.LowerLimit += delegate { this.Destroy();}; 
     196             
     197 
    180198        } 
     199        
    181200    } 
    182201 
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo/HanniAndHoo.csproj.Debug.cachefile

    r9152 r9155  
    22Content\Hoo.xnb 
    33Content\taustamusiikki.xnb 
     4Content\taustamusiikki.wma 
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo/obj/x86/Debug/ContentPipeline-{C15B7F9E-AA60-42F1-A06A-82A8BC818B5D}.xml

    r9152 r9155  
    2121    </Item> 
    2222    <Item> 
    23       <Source>taustamusiikki.wav</Source> 
     23      <Source>taustamusiikki.mp3</Source> 
    2424      <Name>taustamusiikki</Name> 
    25       <Importer>WavImporter</Importer> 
    26       <Processor>SoundEffectProcessor</Processor> 
     25      <Importer>Mp3Importer</Importer> 
     26      <Processor>SongProcessor</Processor> 
    2727      <Options>None</Options> 
    2828      <Output>C:\MyTemp\HugoE\HanniAndHoo\HanniAndHoo\HanniAndHoo\bin\x86\Debug\Content\taustamusiikki.xnb</Output> 
    29       <Time>2017-07-27T10:54:27.5173337+03:00</Time> 
     29      <Extra>C:\MyTemp\HugoE\HanniAndHoo\HanniAndHoo\HanniAndHoo\bin\x86\Debug\Content\taustamusiikki.wma</Extra> 
     30      <Time>2017-07-27T11:08:56.7416103+03:00</Time> 
    3031    </Item> 
    3132    <BuildSuccessful>true</BuildSuccessful> 
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo/obj/x86/Debug/HanniAndHoo.csproj.FileListAbsolute.txt

    r9152 r9155  
    1010C:\MyTemp\HugoE\HanniAndHoo\HanniAndHoo\HanniAndHoo\obj\x86\Debug\HanniAndHoo.csprojResolveAssemblyReference.cache 
    1111C:\MyTemp\HugoE\HanniAndHoo\HanniAndHoo\HanniAndHoo\bin\x86\Debug\Content\taustamusiikki.xnb 
     12C:\MyTemp\HugoE\HanniAndHoo\HanniAndHoo\HanniAndHoo\bin\x86\Debug\Content\taustamusiikki.wma 
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHoo/obj/x86/Debug/cachefile-{C15B7F9E-AA60-42F1-A06A-82A8BC818B5D}-targetpath.txt

    r9152 r9155  
    22Content\Hoo.xnb 
    33Content\taustamusiikki.xnb 
     4Content\taustamusiikki.wma 
  • 2017/30/HugoE/HanniAndHoo/HanniAndHoo/HanniAndHooContent/HanniAndHooContent.contentproj

    r9152 r9155  
    5858  </ItemGroup> 
    5959  <ItemGroup> 
    60     <Compile Include="taustamusiikki.wav"> 
     60    <Compile Include="taustamusiikki.mp3"> 
    6161      <Name>taustamusiikki</Name> 
    62       <Importer>WavImporter</Importer> 
    63       <Processor>SoundEffectProcessor</Processor> 
     62      <Importer>Mp3Importer</Importer> 
     63      <Processor>SongProcessor</Processor> 
    6464    </Compile> 
    6565  </ItemGroup> 
Note: See TracChangeset for help on using the changeset viewer.