- Timestamp:
- 2014-06-13 11:50:07 (8 years ago)
- Location:
- 2014/24/EelisK/War_in_the_sky
- Files:
-
- 71 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/Lentokone.cs
r5002 r5032 81 81 AmmusNaytto.Position = new Vector(elamaPalkki.X, elamaPalkki.Y + elamaPalkki.Height); 82 82 AmmusNaytto.Font = War_in_the_sky.Peli.courier; 83 AmmusNaytto.Title = "Ammo"; 83 84 War_in_the_sky.Peli.Add(AmmusNaytto); 84 85 … … 87 88 PisteNaytto.Position = new Vector(War_in_the_sky.Screen.Left + 150, War_in_the_sky.Screen.Bottom + 35); 88 89 PisteNaytto.Font = War_in_the_sky.Peli.courier; 90 PisteNaytto.Title = "Money"; 89 91 War_in_the_sky.Peli.Add(PisteNaytto); 90 92 … … 100 102 101 103 Timer.SingleShot(0.5, delegate { War_in_the_sky.Peli.PimennaRuutua(0.04); }); 102 Timer.SingleShot(10.0, delegate { War_in_the_sky.Peli.ClearAll(); War_in_the_sky.Peli.PaaValikko(null); }); 104 Timer.SingleShot(10.0, delegate 105 { 106 War_in_the_sky.Peli.ClearAll(); War_in_the_sky.Peli.PaaValikko(null); War_in_the_sky.Peli.MediaPlayer.Stop(); 107 }); 103 108 104 109 SoundEffect loppuLopetus = War_in_the_sky.LoadSoundEffect("Game_Over_sound_effect"); -
2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/War_in_the_sky.cs
r5002 r5032 21 21 int round = 1; 22 22 SoundEffect taustaAani = War_in_the_sky.LoadSoundEffect("War Music (Epic Instrumental)_leikattu"); 23 23 24 public Font courier = LoadFont("Courier"); 24 25 IntMeter kierrosMittari; … … 63 64 public void PimennaRuutua(double nopeus) 64 65 { 65 taustaAani.Play();66 66 Timer ajastin = new Timer(); 67 67 ajastin.Interval = 0.1; … … 100 100 public void PaaValikko(GameObject taustakuva) 101 101 { 102 SoundEffect taustaAani = War_in_the_sky.LoadSoundEffect("War Music (Epic Instrumental)_leikattu"); 102 103 103 //MediaPlayer.Play("War Music (Epic Instrumental)_leikattu"); 104 104 taustaAani.Play(); 105 105 106 106 if (taustakuva != null) 107 107 taustakuva.Destroy(); 108 108 Level.Background.Color = Color.Black; 109 KirkastaRuutua(0.2, 1.0); 109 if (Level.AmbientLight < 1.0) 110 KirkastaRuutua(0.2, 1.0); 110 111 MultiSelectWindow alkuValikko = new MultiSelectWindow("War In The Sky", 111 112 "Start Game", "Info", "End Game"); … … 117 118 alkuValikko.DefaultCancel = 2; 118 119 119 120 121 120 GameObject valikkoTausta = new GameObject(340, 400); 122 121 valikkoTausta.Image = LoadImage("Alku valikko"); … … 124 123 Mouse.IsCursorVisible = false; 125 124 alkuValikko.AddItemHandler(0, delegate { AlustaPeli(); valikkoTausta.Destroy(); }); 125 alkuValikko.AddItemHandler(1, delegate { valikkoTausta.Destroy(); }); 126 //alkuValikko.AddItemHandler(1, Info); 126 127 //alkuValikko.AddItemHandler(1, d); 127 alkuValikko.AddItemHandler(1, Exit);128 128 129 129 … … 199 199 LuoPilvi(RandomGen.NextVector(Level.Left, Level.Bottom, Level.Right, Level.Top)); 200 200 } 201 201 taustaAani.Stop(); 202 if (RandomGen.NextBool()) 203 MediaPlayer.Play("War Thunder"); 204 else 205 MediaPlayer.Play("War Thunder_2"); 206 MediaPlayer.IsRepeating = true; 202 207 } 203 208 … … 299 304 ammus.Size = new Vector(25.0, 5.0); 300 305 ammus.Image = null; 301 ammus.Color = Color. DarkOrange;306 ammus.Color = Color.Gray; 302 307 303 308 ammus.MaximumLifetime = TimeSpan.FromSeconds(0.7); … … 535 540 switch (valinta) 536 541 { 537 538 539 540 542 case 0: 541 543 break; 544 case 1: 545 Info(); 546 break; 547 case 2: 548 Exit(); 542 549 break; 543 550 544 551 default: 545 Exit();546 552 break; 547 553 } … … 562 568 latausTeksti.IsVisible = true; 563 569 LatausAani.Play(); 570 Timer t = new Timer(); 571 t.Interval = LatausAani.Duration.Seconds; 572 t.Timeout += delegate { LatausAani.Play(); }; 573 t.Start(); 574 564 575 Timer.SingleShot(5.0, lentokone.LataaAmmo); 565 Timer.SingleShot(5.0, delegate { latausTeksti.IsVisible = false; });576 Timer.SingleShot(5.0, delegate { latausTeksti.IsVisible = false; t.Stop(); }); 566 577 } 567 578 void KierrosMittari() … … 579 590 580 591 } 592 593 void Info() 594 { 595 MessageWindow info = new MessageWindow("TroLOLOLOLOLOLOLLLLLLOLOLOLOLO "); 596 info.OKButton.Text = "Takaisin"; 597 info.Closed += delegate { PaaValikko(null); }; 598 info.Color = Color.Brown; 599 info.ActiveColor = Color.Transparent; 600 info.Message.TextColor = Color.White; 601 Add(info); 602 } 581 603 } -
2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/War_in_the_sky.csproj.Debug.cachefile
r5002 r5032 34 34 Content\lentsikka lentÀÀ.xnb 35 35 Content\Loading Ammo.xnb 36 Content\War Thunder_2.xnb 37 Content\War Thunder.xnb 36 38 Content\Game Over sound effect33.wma 39 Content\War Thunder_2.wma 40 Content\War Thunder.wma -
2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/obj/x86/Debug/ContentPipeline-{513E9BF6-92B1-4B3B-AD5A-0D180EA61427}.xml
r5002 r5032 317 317 <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Loading Ammo.xnb</Output> 318 318 <Time>2014-06-12T14:54:43.6468862+03:00</Time> 319 </Item> 320 <Item> 321 <Source>War Thunder_2.mp3</Source> 322 <Name>War Thunder_2</Name> 323 <Importer>Mp3Importer</Importer> 324 <Processor>SongProcessor</Processor> 325 <Options>None</Options> 326 <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder_2.xnb</Output> 327 <Extra>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder_2.wma</Extra> 328 <Time>2014-06-13T10:49:37.5995509+03:00</Time> 329 </Item> 330 <Item> 331 <Source>War Thunder.mp3</Source> 332 <Name>War Thunder</Name> 333 <Importer>Mp3Importer</Importer> 334 <Processor>SongProcessor</Processor> 335 <Options>None</Options> 336 <Output>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder.xnb</Output> 337 <Extra>C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder.wma</Extra> 338 <Time>2014-06-13T10:48:42.535045+03:00</Time> 319 339 </Item> 320 340 <BuildSuccessful>true</BuildSuccessful> -
2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/obj/x86/Debug/War_in_the_sky.csproj.FileListAbsolute.txt
r5002 r5032 43 43 C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\lentsikka lentÀÀ.xnb 44 44 C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\Loading Ammo.xnb 45 C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder_2.xnb 46 C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder.xnb 47 C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder_2.wma 48 C:\MyTemp\EelisK\War_in_the_sky\War_in_the_sky\War_in_the_sky\bin\x86\Debug\Content\War Thunder.wma -
2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_sky/obj/x86/Debug/cachefile-{513E9BF6-92B1-4B3B-AD5A-0D180EA61427}-targetpath.txt
r5002 r5032 35 35 Content\lentsikka lentÀÀ.xnb 36 36 Content\Loading Ammo.xnb 37 Content\War Thunder_2.xnb 38 Content\War Thunder_2.wma 39 Content\War Thunder.xnb 40 Content\War Thunder.wma -
2014/24/EelisK/War_in_the_sky/War_in_the_sky/War_in_the_skyContent/War_in_the_skyContent.contentproj
r5002 r5032 222 222 </Compile> 223 223 </ItemGroup> 224 <ItemGroup> 225 <Compile Include="War Thunder_2.mp3"> 226 <Name>War Thunder_2</Name> 227 <Importer>Mp3Importer</Importer> 228 <Processor>SongProcessor</Processor> 229 </Compile> 230 </ItemGroup> 231 <ItemGroup> 232 <Compile Include="War Thunder.mp3"> 233 <Name>War Thunder</Name> 234 <Importer>Mp3Importer</Importer> 235 <Processor>SongProcessor</Processor> 236 </Compile> 237 </ItemGroup> 224 238 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 225 239 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset
for help on using the changeset viewer.