Changeset 4027 for 2013/23


Ignore:
Timestamp:
2013-06-07 13:29:40 (6 years ago)
Author:
vivapark
Message:
 
Location:
2013/23/VilppuP/Bansher/Bansher
Files:
2 added
12 edited

Legend:

Unmodified
Added
Removed
  • 2013/23/VilppuP/Bansher/Bansher/Bansher/Bansher.cs

    r4012 r4027  
    1111    SoundEffect pallonPonnahdus = LoadSoundEffect("Boing1"); 
    1212    SoundEffect peliPäättyy = LoadSoundEffect("Gameover"); 
     13    SoundEffect clickAani = LoadSoundEffect("Click"); 
    1314    Image taustaKuva = LoadImage("Background"); 
    1415    Image Logo = LoadImage("logo"); 
     
    4142        piirrettavaViiva = new GameObject(2, 2); 
    4243        piirrettavaViiva.Color = new Color(255, 255, 0, 100); 
     44        MediaPlayer.Volume = 0.4; 
    4345 
    4446        Label tekstikentta = new Label("v. 0.10.780"); 
     
    4850 
    4951        Widget logoWidget = new Widget(Logo); 
    50         PushButton aloitusNappi = new PushButton("Aloita"); 
     52        PushButton aloitusNappi = new PushButton("Begin"); 
    5153        aloitusNappi.Clicked += Aloitus; 
    52         PushButton parhaatPisteet = new PushButton("Parhaat pisteet"); 
     54        aloitusNappi.Clicked += ButtonPlay; 
     55        PushButton parhaatPisteet = new PushButton("High scores"); 
    5356        parhaatPisteet.Clicked += ParhaatPisteet; 
    54         PushButton ohjeet = new PushButton("Ohjeet"); 
     57        parhaatPisteet.Clicked += ButtonPlay; 
     58        PushButton ohjeet = new PushButton("Instructions"); 
    5559        ohjeet.Clicked += Ohjeet; 
    56         PushButton Poistu = new PushButton("Lopeta"); 
     60        ohjeet.Clicked += ButtonPlay; 
     61        PushButton Poistu = new PushButton("Exit"); 
    5762        Poistu.Clicked += Exit; 
     63        Poistu.Clicked += ButtonPlay; 
    5864 
    5965        Window alkuValikko = new Window(); 
     
    7581 
    7682 
     83    } 
     84 
     85    void ButtonPlay() 
     86    { 
     87        clickAani.Play(); 
    7788    } 
    7889 
     
    278289    void PelaajaKuoli() 
    279290    { 
    280         MultiSelectWindow valikko = new MultiSelectWindow("Peli päättyi", "OK"); 
     291        MultiSelectWindow valikko = new MultiSelectWindow("GAME OVER", "OK"); 
    281292        valikko.ItemSelected += PainettiinValikonNappia; 
    282293        Add(valikko); 
     
    290301        topLista.EnterText = "Please enter your name for {0} points!"; 
    291302        topLista.EnterAndShow(Laskuri.Value); 
     303        topLista.MaxNameLength = 15; 
    292304        topLista.HighScoreWindow.Closed += delegate { Begin(); }; 
    293305    } 
     
    343355        Label ohjeKentta3 = new Label("drawing bouncy lines (hold left mouse button, drag and release) "); 
    344356        PushButton OK = new PushButton("OK"); 
     357        OK.Clicked += ButtonPlay; 
    345358 
    346359        Window ohjeIkkuna = new Window(); 
  • 2013/23/VilppuP/Bansher/Bansher/Bansher/Bansher.csproj.Debug.cachefile

    r4012 r4027  
    55Content\Gameover.xnb 
    66Content\Background1.xnb 
     7Content\Click.xnb 
    78Content\Music.wma 
  • 2013/23/VilppuP/Bansher/Bansher/Bansher/bin/x86/Debug/Data/_score.xml

    r4012 r4027  
    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>ayrttea</Value> 
     8            <Value>-</Value> 
    99          </Field> 
    1010          <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    11             <Value>48200</Value> 
     11            <Value>0</Value> 
    1212          </Field> 
    1313        </Item> 
     
    8787    </Field> 
    8888    <Field Name="LastEnteredName" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 
    89       <Value>ayrttea</Value> 
     89      <Value /> 
    9090    </Field> 
    9191  </Object> 
  • 2013/23/VilppuP/Bansher/Bansher/Bansher/obj/x86/Debug/Bansher.csproj.FileListAbsolute.txt

    r4012 r4027  
    1515J:\MyTemp\VilppuP\Bansher\Bansher\Bansher\bin\x86\Debug\Content\Gameover.xnb 
    1616J:\MyTemp\VilppuP\Bansher\Bansher\Bansher\bin\x86\Debug\Content\Background1.xnb 
     17J:\MyTemp\VilppuP\Bansher\Bansher\Bansher\bin\x86\Debug\Content\Click.xnb 
  • 2013/23/VilppuP/Bansher/Bansher/Bansher/obj/x86/Debug/cachefile-{58C23B4F-4342-49E5-8EBE-BCC3B5453FDB}-targetpath.txt

    r4012 r4027  
    66Content\Gameover.xnb 
    77Content\Background1.xnb 
     8Content\Click.xnb 
  • 2013/23/VilppuP/Bansher/Bansher/BansherContent/BansherContent.contentproj

    r4012 r4027  
    8787    </Compile> 
    8888  </ItemGroup> 
     89  <ItemGroup> 
     90    <Compile Include="Click.wav"> 
     91      <Name>Click</Name> 
     92      <Importer>WavImporter</Importer> 
     93      <Processor>SoundEffectProcessor</Processor> 
     94    </Compile> 
     95  </ItemGroup> 
    8996  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    9097  <!--  To modify your build process, add your task inside one of the targets below and uncomment it.  
  • 2013/23/VilppuP/Bansher/Bansher/BansherContent/obj/x86/Debug/ContentPipeline.xml

    r4012 r4027  
    5757      <Time>2013-06-07T09:47:48.6119171+03:00</Time> 
    5858    </Item> 
     59    <Item> 
     60      <Source>Click.wav</Source> 
     61      <Name>Click</Name> 
     62      <Importer>WavImporter</Importer> 
     63      <Processor>SoundEffectProcessor</Processor> 
     64      <Options>None</Options> 
     65      <Output>J:\MyTemp\VilppuP\Bansher\Bansher\Bansher\bin\x86\Debug\Content\Click.xnb</Output> 
     66      <Time>2013-06-07T12:50:09.5387272+03:00</Time> 
     67    </Item> 
    5968    <BuildSuccessful>true</BuildSuccessful> 
    6069    <Settings> 
Note: See TracChangeset for help on using the changeset viewer.