Changeset 9192 for 2017


Ignore:
Timestamp:
2017-07-28 10:52:27 (2 years ago)
Author:
npo17_56
Message:

Taustamusa peliin.

Location:
2017/30/OlliL
Files:
7 added
12 edited

Legend:

Unmodified
Added
Removed
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb helicopterContent/Bomb helicopterContent.contentproj

    r9122 r9192  
    9999    </Compile> 
    100100  </ItemGroup> 
     101  <ItemGroup> 
     102    <Compile Include="Taustamusa.mp3"> 
     103      <Name>Taustamusa</Name> 
     104      <Importer>Mp3Importer</Importer> 
     105      <Processor>SongProcessor</Processor> 
     106    </Compile> 
     107  </ItemGroup> 
    101108  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    102109  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/Bomb_helicopter.cs

    r9182 r9192  
    2828    ScoreList topLista = new ScoreList(10, true, double.MaxValue); 
    2929    PhysicsObject oikeaReuna; 
    30  
    31  
    32  
    33  
    34  
    35  
     30    Timer aikalaskuri; 
     31     
     32  
    3633    public override void Begin() 
    3734    { 
    3835        topLista = DataStorage.TryLoad<ScoreList>(topLista, "pisteet.xml"); 
    39          
    40         AlkuValikko(null); 
    41     } 
    42  
    43     void AlkuValikko(Window H) 
     36        TaustaMusa(); 
     37        AlkuValikko(); 
     38 
     39    } 
     40 
     41    void TaustaMusa() 
     42    { 
     43         
     44        MediaPlayer.Play("Taustamusa"); 
     45        MediaPlayer.IsRepeating = true; 
     46        MediaPlayer.Volume = 0.3; 
     47    } 
     48 
     49 
     50    void AlkuValikko() 
    4451    { 
    4552        MultiSelectWindow alkuValikko = new MultiSelectWindow("Pelin alkuvalikko", 
     
    5764                              "Parhaat pisteet", 
    5865                              topLista); 
    59         topIkkuna.Closed += AlkuValikko; 
     66        topIkkuna.Closed += delegate { AlkuValikko(); }; 
    6067        Add(topIkkuna); 
    6168 
     
    114121        Add(pisteNaytto); 
    115122 
    116         Timer aikalaskuri = new Timer(); 
     123        aikalaskuri = new Timer(); 
    117124        aikalaskuri.Interval = 1.0; 
    118125        aikalaskuri.Timeout += delegate { pisteLaskuri.AddValue(1); }; 
     
    203210    void TormaaMaaliin(PhysicsObject tormaaja, PhysicsObject kohde) 
    204211    { 
    205         if (laukaisijoitaTuhottuLaskuri.Value == 4) 
     212        if (laukaisijoitaTuhottuLaskuri.Value == laukaisijoitaTuhottuLaskuri.MaxValue) 
    206213        { 
     214            aikalaskuri.Stop(); 
    207215            //topLista.EnterAndShow(pisteLaskuri.Value); 
    208216            //topLista.HighScoreWindow.Closed += AlkuValikko; 
     
    213221            topIkkuna.Closed += TallennaPisteet; 
    214222            Add(topIkkuna); 
     223            topIkkuna.Right = Screen.Right - 10; 
    215224        } 
    216225    } 
     
    219228    { 
    220229        DataStorage.Save<ScoreList>(topLista, "pisteet.xml"); 
     230        AlkuValikko(); 
    221231    } 
    222232 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/Bomb_helicopter.csproj.Debug.cachefile

    r9122 r9192  
    77Content\laukaisinrikki.xnb 
    88Content\ohjuspieni.xnb 
     9Content\Taustamusa.xnb 
     10Content\Taustamusa.wma 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/bin/x86/Debug/Data/pisteet.xml

    r9182 r9192  
    66        <Item Index="0" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    77          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    8             <Value>Olli</Value> 
     8            <Value>OlliL</Value> 
    99          </Field> 
    1010          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    11             <Value>33</Value> 
     11            <Value>20</Value> 
    1212          </Field> 
    1313        </Item> 
    1414        <Item Index="1" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    1515          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    16             <Value>-</Value> 
     16            <Value>OlliL</Value> 
    1717          </Field> 
    1818          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    19             <Value>1.79769313486232E+308</Value> 
     19            <Value>24</Value> 
    2020          </Field> 
    2121        </Item> 
    2222        <Item Index="2" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    2323          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    24             <Value>-</Value> 
     24            <Value>OlliL</Value> 
    2525          </Field> 
    2626          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    27             <Value>1.79769313486232E+308</Value> 
     27            <Value>51</Value> 
    2828          </Field> 
    2929        </Item> 
    3030        <Item Index="3" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 
    3131          <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    32             <Value>-</Value> 
     32            <Value>OlliL</Value> 
    3333          </Field> 
    3434          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    35             <Value>1.79769313486232E+308</Value> 
     35            <Value>120</Value> 
    3636          </Field> 
    3737        </Item> 
     
    8787    </Field> 
    8888    <Field Name="LastEnteredName" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    89       <Value>Olli</Value> 
     89      <Value>OlliL</Value> 
    9090    </Field> 
    9191  </Object> 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/obj/x86/Debug/Bomb_helicopter.csproj.FileListAbsolute.txt

    r9122 r9192  
    1515C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\laukaisinrikki.xnb 
    1616C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\ohjuspieni.xnb 
     17C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Taustamusa.xnb 
     18C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Taustamusa.wma 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/obj/x86/Debug/ContentPipeline-{0FA830EB-FE46-4508-A0B0-AB31DCF90F68}.xml

    r9122 r9192  
    7474      <Time>2017-07-26T13:14:23.8819075+03:00</Time> 
    7575    </Item> 
     76    <Item> 
     77      <Source>Taustamusa.mp3</Source> 
     78      <Name>Taustamusa</Name> 
     79      <Importer>Mp3Importer</Importer> 
     80      <Processor>SongProcessor</Processor> 
     81      <Options>None</Options> 
     82      <Output>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Taustamusa.xnb</Output> 
     83      <Extra>C:\MyTemp\OlliL\Bomb helicopter\Bomb helicopter\Bomb_helicopter\bin\x86\Debug\Content\Taustamusa.wma</Extra> 
     84      <Time>2017-07-28T10:29:56.2369221+03:00</Time> 
     85    </Item> 
    7686    <BuildSuccessful>true</BuildSuccessful> 
    7787    <Settings> 
  • 2017/30/OlliL/Bomb helicopter/Bomb helicopter/Bomb_helicopter/obj/x86/Debug/cachefile-{0FA830EB-FE46-4508-A0B0-AB31DCF90F68}-targetpath.txt

    r9122 r9192  
    77Content\laukaisinrikki.xnb 
    88Content\ohjuspieni.xnb 
     9Content\Taustamusa.xnb 
     10Content\Taustamusa.wma 
Note: See TracChangeset for help on using the changeset viewer.