Changeset 4027 for 2013/23/VilppuP
- Timestamp:
- 2013-06-07 13:29:40 (9 years ago)
- 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 11 11 SoundEffect pallonPonnahdus = LoadSoundEffect("Boing1"); 12 12 SoundEffect peliPäättyy = LoadSoundEffect("Gameover"); 13 SoundEffect clickAani = LoadSoundEffect("Click"); 13 14 Image taustaKuva = LoadImage("Background"); 14 15 Image Logo = LoadImage("logo"); … … 41 42 piirrettavaViiva = new GameObject(2, 2); 42 43 piirrettavaViiva.Color = new Color(255, 255, 0, 100); 44 MediaPlayer.Volume = 0.4; 43 45 44 46 Label tekstikentta = new Label("v. 0.10.780"); … … 48 50 49 51 Widget logoWidget = new Widget(Logo); 50 PushButton aloitusNappi = new PushButton(" Aloita");52 PushButton aloitusNappi = new PushButton("Begin"); 51 53 aloitusNappi.Clicked += Aloitus; 52 PushButton parhaatPisteet = new PushButton("Parhaat pisteet"); 54 aloitusNappi.Clicked += ButtonPlay; 55 PushButton parhaatPisteet = new PushButton("High scores"); 53 56 parhaatPisteet.Clicked += ParhaatPisteet; 54 PushButton ohjeet = new PushButton("Ohjeet"); 57 parhaatPisteet.Clicked += ButtonPlay; 58 PushButton ohjeet = new PushButton("Instructions"); 55 59 ohjeet.Clicked += Ohjeet; 56 PushButton Poistu = new PushButton("Lopeta"); 60 ohjeet.Clicked += ButtonPlay; 61 PushButton Poistu = new PushButton("Exit"); 57 62 Poistu.Clicked += Exit; 63 Poistu.Clicked += ButtonPlay; 58 64 59 65 Window alkuValikko = new Window(); … … 75 81 76 82 83 } 84 85 void ButtonPlay() 86 { 87 clickAani.Play(); 77 88 } 78 89 … … 278 289 void PelaajaKuoli() 279 290 { 280 MultiSelectWindow valikko = new MultiSelectWindow(" Peli päättyi", "OK");291 MultiSelectWindow valikko = new MultiSelectWindow("GAME OVER", "OK"); 281 292 valikko.ItemSelected += PainettiinValikonNappia; 282 293 Add(valikko); … … 290 301 topLista.EnterText = "Please enter your name for {0} points!"; 291 302 topLista.EnterAndShow(Laskuri.Value); 303 topLista.MaxNameLength = 15; 292 304 topLista.HighScoreWindow.Closed += delegate { Begin(); }; 293 305 } … … 343 355 Label ohjeKentta3 = new Label("drawing bouncy lines (hold left mouse button, drag and release) "); 344 356 PushButton OK = new PushButton("OK"); 357 OK.Clicked += ButtonPlay; 345 358 346 359 Window ohjeIkkuna = new Window(); -
2013/23/VilppuP/Bansher/Bansher/Bansher/Bansher.csproj.Debug.cachefile
r4012 r4027 5 5 Content\Gameover.xnb 6 6 Content\Background1.xnb 7 Content\Click.xnb 7 8 Content\Music.wma -
2013/23/VilppuP/Bansher/Bansher/Bansher/bin/x86/Debug/Data/_score.xml
r4012 r4027 6 6 <Item Index="0" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 7 7 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 8 <Value> ayrttea</Value>8 <Value>-</Value> 9 9 </Field> 10 10 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 11 <Value> 48200</Value>11 <Value>0</Value> 12 12 </Field> 13 13 </Item> … … 87 87 </Field> 88 88 <Field Name="LastEnteredName" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 89 <Value >ayrttea</Value>89 <Value /> 90 90 </Field> 91 91 </Object> -
2013/23/VilppuP/Bansher/Bansher/Bansher/obj/x86/Debug/Bansher.csproj.FileListAbsolute.txt
r4012 r4027 15 15 J:\MyTemp\VilppuP\Bansher\Bansher\Bansher\bin\x86\Debug\Content\Gameover.xnb 16 16 J:\MyTemp\VilppuP\Bansher\Bansher\Bansher\bin\x86\Debug\Content\Background1.xnb 17 J:\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 6 6 Content\Gameover.xnb 7 7 Content\Background1.xnb 8 Content\Click.xnb -
2013/23/VilppuP/Bansher/Bansher/BansherContent/BansherContent.contentproj
r4012 r4027 87 87 </Compile> 88 88 </ItemGroup> 89 <ItemGroup> 90 <Compile Include="Click.wav"> 91 <Name>Click</Name> 92 <Importer>WavImporter</Importer> 93 <Processor>SoundEffectProcessor</Processor> 94 </Compile> 95 </ItemGroup> 89 96 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 90 97 <!-- 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 57 57 <Time>2013-06-07T09:47:48.6119171+03:00</Time> 58 58 </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> 59 68 <BuildSuccessful>true</BuildSuccessful> 60 69 <Settings>
Note: See TracChangeset
for help on using the changeset viewer.