- Timestamp:
- 2013-06-12 15:04:18 (10 years ago)
- Location:
- 2013/24/LauriK/Defend The Computer
- Files:
-
- 15 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/Defend The Computer.csproj.Debug.cachefile
r4081 r4102 9 9 Content\suoja.xnb 10 10 Content\virus_cartoon.xnb 11 Content\healthpack.xnb 12 Content\player_dead.xnb 13 Content\health.xnb 14 Content\klang.xnb 15 Content\start.xnb 16 Content\aseaani.xnb 17 Content\perusasekuvake.xnb 18 Content\antivirus.xnb 19 Content\seina.xnb 20 Content\antiviruskuvake.xnb 21 Content\Selviytyminen2.xnb 22 Content\ammopack.xnb 23 Content\alkuvalikko.xnb 24 Content\alkuvalikko.wma -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/Defend_The_Computer.cs
r4081 r4102 75 75 int pakettienlukumaara; 76 76 77 int vihujenmaara = 0; 78 79 bool AJ = false; 80 bool NC = false; 81 bool noenemies = false; 82 83 bool Debug = false; 84 85 double nopeus = 500; 86 double kaantymisnopeus = 100; 77 int vihujenmaara; 78 79 bool AJ; 80 bool NC; 81 bool noenemies; 82 bool nopackages; 83 bool Debug; 84 85 bool pelaaja1elossa; 86 bool pelaaja2elossa; 87 88 double nopeus; 89 double kaantymisnopeus; 87 90 [Save] 88 91 int survivalkentannro; … … 94 97 bool aanetpaalla; 95 98 96 string pelaaja1ase = "Antivirus"; 97 string pelaaja2ase = "Antivirus"; 98 99 Image Intta = LoadImage("A-J"); 100 Image Inttapaha = LoadImage("A-J_bad"); 101 Image Egac = LoadImage("NC"); 102 Image Egacpaha = LoadImage("NC_bad"); 103 104 Image suojakuva = LoadImage("suoja"); 105 Image bosskuva = LoadImage("virus_cartoon"); 106 Image stopkuva = LoadImage("process_stop"); 107 108 Color tekstienvari = Color.LightGreen; 109 110 List<Pelaaja> pelaajat = new List<Pelaaja>(); 99 string pelaaja1ase; 100 string pelaaja2ase; 101 102 Image Intta; 103 Image Inttapaha; 104 Image Egac; 105 Image Egacpaha; 106 107 Image bosskuva; 108 Image stopkuva; 109 110 Image seinankuva; 111 112 Image perusasekuvake; 113 Image antiviruskuvake; 114 115 Image ammopakettikuva; 116 Image healthpakettikuva; 117 Image suojakuva; 118 119 Image antiviruskuva; 120 121 SoundEffect kuolemaaani; 122 SoundEffect suojaaani; 123 SoundEffect healthaani; 124 SoundEffect startaani; 125 SoundEffect aseaani; 126 127 Color tekstienvari; 128 129 List<Pelaaja> pelaajat; 111 130 112 131 Timer aikalaskuri; 113 132 114 double ruudunkoko = 16;133 double ruudunkoko; 115 134 116 135 #endregion … … 118 137 public override void Begin() 119 138 { 139 Alustus(); 140 141 IsFullScreen = true; 142 143 IsPaused = true; 144 145 Lataakaikki(false, 0, 0); 146 147 Alkuvalikko(); 148 } 149 150 #region Tallennus, lataus ja alustus 151 152 void Alustus() 153 { 120 154 ClearAll(); 121 155 156 pelaaja1ase = "Luoti"; 157 pelaaja2ase = "Luoti"; 158 159 pelaajat = new List<Pelaaja>(); 160 161 pelaaja1elossa = true; 162 pelaaja2elossa = true; 163 164 vihujenmaara = 0; 165 166 AJ = false; 167 NC = false; 168 noenemies = false; 169 nopackages = false; 170 Debug = false; 171 172 nopeus = 250; 173 kaantymisnopeus = 50; 174 175 Intta = LoadImage("A-J"); 176 Inttapaha = LoadImage("A-J_bad"); 177 Egac = LoadImage("NC"); 178 Egacpaha = LoadImage("NC_bad"); 179 180 bosskuva = LoadImage("virus_cartoon"); 181 stopkuva = LoadImage("process_stop"); 182 seinankuva = LoadImage("seina"); 183 184 perusasekuvake = LoadImage("perusasekuvake"); 185 antiviruskuvake = LoadImage("antiviruskuvake"); 186 187 healthpakettikuva = LoadImage("healthpack"); 188 suojakuva = LoadImage("suoja"); 189 ammopakettikuva = LoadImage("ammopack"); 190 191 antiviruskuva = LoadImage("antivirus"); 192 193 kuolemaaani = LoadSoundEffect("player_dead"); 194 suojaaani = LoadSoundEffect("klang"); 195 healthaani = LoadSoundEffect("health"); 196 startaani = LoadSoundEffect("start"); 197 aseaani = LoadSoundEffect("aseaani"); 198 199 tekstienvari = Color.LightGreen; 200 201 ruudunkoko = 16; 202 122 203 pistelista = new ScoreList(10, false, 0); 123 124 pelaajat.Clear(); 125 126 IsPaused = true; 127 128 Lataakaikki(false, 0, 0); 129 130 Alkuvalikko(); 131 } 132 133 #region Tallennus ja lataus 204 } 134 205 135 206 void Tyhjennanappaimet() … … 167 238 Tyhjennanappaimet(); 168 239 240 Level.BackgroundColor = Color.Black; 241 242 if (aanetpaalla == true && MediaPlayer.IsPlaying == false) MediaPlayer.Play("alkuvalikko"); 243 169 244 MultiSelectWindow alkuvalikko = new MultiSelectWindow("", "Start game", "Highscores", "Help", "Sounds: " + ((aanetpaalla == true) ? "ON" : "OFF"), "Exit"); 170 alkuvalikko.AddItemHandler(0, Valitsepelinlataus);245 alkuvalikko.AddItemHandler(0, Kentanvalinta); 171 246 alkuvalikko.AddItemHandler(1, Ennatykset); 172 247 alkuvalikko.AddItemHandler(2, Ohjeet); … … 174 249 { 175 250 aanetpaalla = !aanetpaalla; 251 if (aanetpaalla == false) MediaPlayer.Pause(); 176 252 Tallennakaikki(); 177 253 Alkuvalikko(); … … 191 267 Add(alkuvalikko); 192 268 193 Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Exit"); 194 } 195 196 void Kentanvalinta() 197 { 198 Tyhjennanappaimet(); 199 200 MultiSelectWindow valitsepeli = new MultiSelectWindow("Select level", "Level 1", "Level 2", "Back"); 201 valitsepeli.AddItemHandler(0, delegate 202 { 203 survivalkentannro = 1; 204 Valitsevaikeustaso(); 205 }); 206 valitsepeli.AddItemHandler(1, delegate 207 { 208 survivalkentannro = 2; 209 Valitsevaikeustaso(); 210 }); 211 valitsepeli.AddItemHandler(2, Valitsepelinlataus); 212 valitsepeli.DefaultCancel = 2; 213 Add(valitsepeli); 214 215 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Valitsepelinlataus, "Exit"); 269 Label kiitokset = new Label("Made by Lauri Kemppi 2013.\nAll music and pictures are public domain."); 270 kiitokset.TextColor = Color.Red; 271 kiitokset.Right = Screen.RightSafe; 272 kiitokset.Bottom = Screen.BottomSafe; 273 Add(kiitokset); 216 274 } 217 275 … … 266 324 alkuvalikko.DefaultCancel = 4; 267 325 Add(alkuvalikko); 268 269 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Alkuvalikko, "Exit");270 326 } 271 327 … … 275 331 } 276 332 277 void Valitsepelinlataus()333 void Kentanvalinta() 278 334 { 279 335 Tyhjennanappaimet(); 280 336 281 MultiSelectWindow uusipeli = new MultiSelectWindow("Load existing game?", "New game", "Continue game", "Back");282 uusipeli.AddItemHandler(0, delegate337 MultiSelectWindow valitsepeli = new MultiSelectWindow("Select level", "Level 1", "Level 2", "Back"); 338 valitsepeli.AddItemHandler(0, delegate 283 339 { 284 340 survivalkentannro = 1; 285 341 Valitsepelaajienmaara(); 286 342 }); 287 uusipeli.AddItemHandler(1, Aloitapeli); 288 uusipeli.AddItemHandler(2, Alkuvalikko); 289 uusipeli.DefaultCancel = 2; 290 Add(uusipeli); 291 292 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Alkuvalikko, "Exit"); 293 } 343 valitsepeli.AddItemHandler(1, delegate 344 { 345 survivalkentannro = 2; 346 Valitsepelaajienmaara(); 347 }); 348 valitsepeli.AddItemHandler(2, Alkuvalikko); 349 valitsepeli.DefaultCancel = 2; 350 Add(valitsepeli); 351 } 352 294 353 295 354 void Valitsepelaajienmaara() … … 302 361 pelaajienlukumaara = 1; 303 362 pelaajienlukumaara2 = 1; 304 Kentanvalinta();363 Valitsevaikeustaso(); 305 364 }); 306 365 pelaajienmaara.AddItemHandler(1, delegate … … 308 367 pelaajienlukumaara = 2; 309 368 pelaajienlukumaara2 = 2; 310 Kentanvalinta();311 }); 312 pelaajienmaara.AddItemHandler(2, Valitsepelinlataus);369 Valitsevaikeustaso(); 370 }); 371 pelaajienmaara.AddItemHandler(2, Kentanvalinta); 313 372 pelaajienmaara.DefaultCancel = 2; 314 373 Add(pelaajienmaara); 315 316 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Valitsepelinlataus, "Exit");317 374 } 318 375 … … 324 381 vaikeustasonvalinta.AddItemHandler(0, delegate 325 382 { 326 vaikeustaso = 1;327 Aloitapeli();328 });329 vaikeustasonvalinta.AddItemHandler(1, delegate330 {331 383 vaikeustaso = 2; 332 384 Aloitapeli(); 333 385 }); 334 vaikeustasonvalinta.AddItemHandler( 2, delegate386 vaikeustasonvalinta.AddItemHandler(1, delegate 335 387 { 336 388 vaikeustaso = 3; 337 389 Aloitapeli(); 338 390 }); 391 vaikeustasonvalinta.AddItemHandler(2, delegate 392 { 393 vaikeustaso = 4; 394 Aloitapeli(); 395 }); 339 396 vaikeustasonvalinta.AddItemHandler(3, delegate 340 397 { 341 vaikeustaso = 4;398 vaikeustaso = 5; 342 399 Aloitapeli(); 343 400 }); … … 345 402 vaikeustasonvalinta.DefaultCancel = 4; 346 403 Add(vaikeustasonvalinta); 347 348 Keyboard.Listen(Key.Escape, ButtonState.Pressed, Kentanvalinta, "Exit");349 404 } 350 405 … … 353 408 IsPaused = true; 354 409 355 MultiSelectWindow paussivalikko = new MultiSelectWindow("Paused", "Continue", "Help", "Cheats", " Exit");410 MultiSelectWindow paussivalikko = new MultiSelectWindow("Paused", "Continue", "Help", "Cheats", "Sounds: " + ((aanetpaalla == true) ? "ON" : "OFF"), "Exit"); 356 411 paussivalikko.AddItemHandler(0, delegate 357 412 { … … 369 424 { 370 425 InputWindow kysymysIkkuna = new InputWindow("Enter cheat"); 371 kysymysIkkuna.TextEntered += Cheat;426 kysymysIkkuna.TextEntered += Huijaus; 372 427 Add(kysymysIkkuna); 373 428 }); 374 429 375 430 paussivalikko.AddItemHandler(3, delegate 431 { 432 aanetpaalla = !aanetpaalla; 433 Tallennakaikki(); 434 Paussivalikko(); 435 }); 436 437 paussivalikko.AddItemHandler(4, delegate 376 438 { 377 439 Tallennakaikki(); … … 382 444 383 445 Add(paussivalikko); 384 385 //Keyboard.Listen(Key.Escape, ButtonState.Pressed, delegate 386 //{ 387 //IsPaused = false; 388 //paussivalikko.Destroy(); 389 //}, "Exit"); 390 } 391 392 void Cheat(InputWindow ikkuna) 446 } 447 448 void Huijaus(InputWindow ikkuna) 393 449 { 394 450 Paussivalikko(); … … 416 472 MessageDisplay.Add("Enemy spawning disabled."); 417 473 } 474 475 else if (vastaus == "NoPackages") 476 { 477 nopackages = true; 478 MessageDisplay.Add("Package spawning disabled."); 479 } 480 418 481 else if (vastaus == "ClearAll") 419 482 { … … 422 485 Debug = false; 423 486 noenemies = false; 424 } 487 nopackages = false; 488 MessageDisplay.Add("All cheats have been disabled."); 489 } 490 425 491 else MessageDisplay.Add("False code!"); 426 492 } … … 440 506 441 507 IsPaused = false; 508 509 MediaPlayer.Stop(); 442 510 443 511 ColorTileMap kentta_pelaaja = ColorTileMap.FromLevelAsset("Selviytyminen" + survivalkentannro); … … 463 531 ColorTileMap kentta = ColorTileMap.FromLevelAsset("Selviytyminen" + survivalkentannro); 464 532 465 kentta.SetTileMethod(Color.Black, Luoseina); 466 kentta.SetTileMethod(Color.White, Luolattia); 533 kentta.SetTileMethod(Color.FromPaintDotNet(0, 0), Luoseina, seinankuva, Color.Black); 534 kentta.SetTileMethod(Color.FromPaintDotNet(1, 2), Luoseina, (Image)null, Color.Gold); 535 kentta.SetTileMethod(Color.FromPaintDotNet(1, 0), Luolattia); 467 536 kentta.SetTileMethod(Color.FromPaintDotNet(0, 3), Luolattia); 468 537 kentta.SetTileMethod(Color.FromPaintDotNet(0, 4), Luolattia); 469 kentta.SetTileMethod(Color.FromPaintDotNet( 0, 7), Luovoidalue);538 kentta.SetTileMethod(Color.FromPaintDotNet(1, 1), Luovoidalue); 470 539 //kentta.SetTileMethod(Color.Red, Luomaali); 471 540 //kentta.SetTileMethod(Color.FromPaintDotNet(0, 15), Luovirus); … … 500 569 hienorajahdys2.MinScale = 4; 501 570 hienorajahdys2.MaxScale = 5; 571 572 MessageDisplay.X += 250; 573 574 if (aanetpaalla == true) startaani.Play(); 502 575 } 503 576 … … 544 617 545 618 pelaaja.ammuslaskuri = new DoubleMeter(Double.PositiveInfinity); 546 pelaaja.ammuslaskuri.MinValue = 0;619 pelaaja.ammuslaskuri.MinValue = -1; 547 620 pelaaja.ammuslaskuri.MaxValue = Double.PositiveInfinity; 548 621 pelaaja.ammuslaskuri.LowerLimit += delegate … … 552 625 pelaaja1ase = "Luoti"; 553 626 pelaaja.ammuslaskuri.Value = Double.PositiveInfinity; 627 aseenkuva1.Image = perusasekuvake; 554 628 } 555 629 if (pelaajat.Count == 2 && pelaajat[1] == pelaaja) … … 557 631 pelaaja2ase = "Luoti"; 558 632 pelaaja.ammuslaskuri.Value = Double.PositiveInfinity; 633 aseenkuva2.Image = perusasekuvake; 559 634 }; 560 635 }; … … 577 652 pelaaja1elamapalkki.Top = Screen.TopSafe - 50; 578 653 pelaaja1elamapalkki.BindTo(pelaajat[0].elamalaskuri); 579 pelaaja1elamapalkki.BorderColor = Color.Black;654 pelaaja1elamapalkki.BorderColor = tekstienvari; 580 655 pelaaja1elamapalkki.BarColor = Color.Red; 581 656 Add(pelaaja1elamapalkki); … … 591 666 pelaaja1suojapalkki.Top = pelaaja1elamapalkki.Top - 100; 592 667 pelaaja1suojapalkki.BindTo(pelaajat[0].suojalaskuri); 593 pelaaja1suojapalkki.BorderColor = Color.Black;668 pelaaja1suojapalkki.BorderColor = tekstienvari; 594 669 pelaaja1suojapalkki.BarColor = Color.Blue; 595 670 Add(pelaaja1suojapalkki); … … 611 686 612 687 aseenkuva1 = new Widget(50, 50); 613 aseenkuva1.Image = null; 614 aseenkuva1.Color = Color.Gold; 688 aseenkuva1.Image = perusasekuvake; 615 689 aseenkuva1.Left = pelaaja1suojapalkki.Left; 616 690 aseenkuva1.Y = pelaaja1suojapalkki.Y - 50; … … 639 713 ammukset.Start(); 640 714 641 642 715 if (pelaajat.Count == 1) return; 643 716 … … 646 719 pelaaja2elamapalkki.Top = Screen.TopSafe - 50; 647 720 pelaaja2elamapalkki.BindTo(pelaajat[1].elamalaskuri); 648 pelaaja2elamapalkki.BorderColor = Color.Black;721 pelaaja2elamapalkki.BorderColor = tekstienvari; 649 722 pelaaja2elamapalkki.BarColor = Color.Red; 650 723 Add(pelaaja2elamapalkki); … … 660 733 pelaaja2suojapalkki.Top = pelaaja2elamapalkki.Top - 100; 661 734 pelaaja2suojapalkki.BindTo(pelaajat[1].suojalaskuri); 662 pelaaja2suojapalkki.BorderColor = Color.Black;735 pelaaja2suojapalkki.BorderColor = tekstienvari; 663 736 pelaaja2suojapalkki.BarColor = Color.Blue; 664 737 Add(pelaaja2suojapalkki); … … 670 743 Add(suojanimi2); 671 744 672 aseenkuva2 = new GameObject(20, 20);673 aseenkuva2.Image = null;674 aseenkuva2. X = pelaaja2suojapalkki.X;675 aseenkuva2.Y = pelaaja2suojapalkki.Y - 100;745 aseenkuva2 = new Widget(50, 50); 746 aseenkuva2.Image = perusasekuvake; 747 aseenkuva2.Left = pelaaja2suojapalkki.Left; 748 aseenkuva2.Y = pelaaja2suojapalkki.Y - 50; 676 749 Add(aseenkuva2); 677 750 678 Label panostenmaara2 = new Label(pelaajat[1].ammuslaskuri); 751 Label panostenmaara2 = new Label("0"); 752 panostenmaara2.Size = aseenkuva2.Size; 679 753 panostenmaara2.Y = aseenkuva2.Y; 680 panostenmaara2.X = aseenkuva2.X + 10 ;754 panostenmaara2.X = aseenkuva2.X + 100; 681 755 panostenmaara2.TextColor = tekstienvari; 682 756 Add(panostenmaara2); 757 758 Timer ammukset2 = new Timer(); 759 ammukset.Interval = 0.1; 760 ammukset.Timeout += delegate 761 { 762 if (pelaajat[1].ammuslaskuri.Value > 1e100) 763 { 764 panostenmaara2.Text = "oo"; 765 } 766 else 767 { 768 panostenmaara2.Text = pelaajat[1].ammuslaskuri.Value.ToString(); 769 } 770 }; 771 ammukset.Start(); 683 772 } 684 773 … … 698 787 //}; 699 788 //ajastin.Start(); 700 if (pelaajat.Count == 1) 701 { 702 Camera.Follow(pelaajat[0]); 703 Camera.ZoomFactor = 5; 704 return; 705 } 706 707 Timer ajastin2 = new Timer(); 708 ajastin2.Interval = 0.01; 709 ajastin2.Timeout += delegate 710 { 711 Camera.ZoomTo(pelaajat[0].Position, pelaajat[1].Position); 712 Camera.ZoomFactor = Math.Abs(Camera.ZoomFactor * 0.7); 713 714 if (Camera.ZoomFactor > 6) 715 { 716 Camera.ZoomFactor = 6.0; 717 } 718 //nakyvyysalue.Size = new Vector(1800, 1800) * 1 / Camera.ZoomFactor; 719 //nakyvyysalue.Position = (pelaaja1.Position + pelaaja2.Position) * 0.5; 789 790 Timer ajastin = new Timer(); 791 ajastin.Interval = 0.01; 792 ajastin.Timeout += delegate 793 { 794 if (pelaajat.Count == 1 || pelaajienlukumaara2 == 1) 795 { 796 if (pelaaja1elossa == true) 797 { 798 Camera.Follow(pelaajat[0]); 799 Camera.ZoomFactor = 5; 800 return; 801 } 802 803 if (pelaajat.Count == 2 && pelaaja2elossa == true) 804 { 805 Camera.Follow(pelaajat[1]); 806 Camera.ZoomFactor = 5; 807 return; 808 } 809 } 810 811 else 812 { 813 Timer ajastin2 = new Timer(); 814 ajastin2.Interval = 0.01; 815 ajastin2.Timeout += delegate 816 { 817 Camera.ZoomTo(pelaajat[0].Position, pelaajat[1].Position); 818 Camera.ZoomFactor = Math.Abs(Camera.ZoomFactor * 0.7); 819 820 if (Camera.ZoomFactor > 6) 821 { 822 Camera.ZoomFactor = 6.0; 823 } 824 //nakyvyysalue.Size = new Vector(1800, 1800) * 1 / Camera.ZoomFactor; 825 //nakyvyysalue.Position = (pelaaja1.Position + pelaaja2.Position) * 0.5; 826 }; 827 ajastin2.Start(1); 828 } 720 829 }; 721 ajastin 2.Start();830 ajastin.Start(); 722 831 723 832 } … … 785 894 Vector vektori = Vector.FromLengthAndAngle(nopeus, pelaaja.Angle + Angle.FromDegrees(90)); 786 895 787 if (pelaajat[0] == pelaaja) 788 { 896 if (pelaajat[0] == pelaaja && pelaaja1elossa == true) 897 { 898 pelaaja.ammuslaskuri.Value -= 1; 899 789 900 if (pelaaja1ase == "Luoti") 790 901 { … … 798 909 } 799 910 800 if (pelaajat.Count == 2 && pelaajat[1] == pelaaja) 801 { 911 if (pelaajat.Count == 2 && pelaajat[1] == pelaaja && pelaaja2elossa == true) 912 { 913 pelaaja.ammuslaskuri.Value -= 1; 914 802 915 if (pelaaja2ase == "Luoti") 803 916 { … … 820 933 luoti.CanRotate = false; 821 934 luoti.Position = paikka; 822 luoti.Hit(suunta * 0.5);935 luoti.Hit(suunta); 823 936 824 937 AddCollisionHandler(luoti, "Seina", Aseosuiseinaan); … … 830 943 PhysicsObject antivirus = new PhysicsObject(ruudunkoko * 0.5, ruudunkoko * 0.5); 831 944 antivirus.Mass = 10; 832 antivirus.Image = null;945 antivirus.Image = antiviruskuva; 833 946 antivirus.IgnoresExplosions = true; 834 947 antivirus.Position = paikka; … … 862 975 Add(rajahdys, 2); 863 976 977 Timer.SingleShot(5, delegate { vihollinen.Brain.Active = true; }); 978 864 979 antivirus.Destroy(); 865 980 … … 880 995 vihollinen.Brain.Active = false; 881 996 882 Timer.SingleShot(5, delegate { vihollinen.Brain.Active = true; }); 883 884 kohde.Push((osuja.Position - kohde.Position).Normalize() * 150000); 997 kohde.Push((kohde.Position - osuja.Position).Normalize() * 150000); 885 998 886 999 Explosion rajahdys = new Explosion(5); … … 917 1030 rajahdys.Position = pelaaja.Position; 918 1031 rajahdys.Force = 0; 919 if (aanetpaalla == false) rajahdys.Sound = null;1032 if (aanetpaalla == true) kuolemaaani.Play(); 920 1033 Add(rajahdys, 2); 921 1034 … … 924 1037 pelaajienlukumaara2 -= 1; 925 1038 1039 if (pelaaja == pelaajat[0]) pelaaja1elossa = false; 1040 1041 if (pelaajat.Count == 2 && pelaaja == pelaajat[1]) pelaaja2elossa = false; 1042 926 1043 if (pelaajienlukumaara2 == 0) 927 1044 { … … 934 1051 #region Vihut 935 1052 936 void Luovihu(Vector paikka, double spawnausmatka, double leveys, double korkeus, double damage, string vihuntyyppi, double suunnanvaihtomin, double suunnanvaihtomax, double kaukonopeus, double lahinopeus, double kaukanaolo, int kuolemaaika, Action<Vihollinen>toiminto, Image kuva)1053 void Luovihu(Vector paikka, double spawnausmatka, double leveys, double korkeus, double damage, string vihuntyyppi, double suunnanvaihtomin, double suunnanvaihtomax, double kaukonopeus, double lahinopeus, double kaukanaolo, double lahellaolo, int kuolemaaika, Action<Vihollinen> lahitoiminto, Image kuva) 937 1054 { 938 1055 Vihollinen vihu = new Vihollinen(leveys, korkeus, kuva); … … 950 1067 vihu.Position = paikka; 951 1068 952 AddCollisionHandler<Vihollinen, Pelaaja>(vihu, delegate(Vihollinen tormaaja, Pelaaja kohde) { kohde.suojalaskuri.Value -= damage; }); 953 AddCollisionHandler<Vihollinen, Pelaaja>(vihu, delegate(Vihollinen tormaaja, Pelaaja kohde) { kohde.Hit(kohde.Position - tormaaja.Position.Normalize() * 50000); }); 1069 AddCollisionHandler<Vihollinen, Pelaaja>(vihu, delegate(Vihollinen tormaaja, Pelaaja kohde) 1070 { 1071 kohde.suojalaskuri.Value -= damage; 1072 vihu.Brain.Active = false; 1073 vihu.Push((vihu.Position - kohde.Position).Normalize() * 1500000); 1074 Timer.SingleShot(2, delegate 1075 { 1076 vihu.Brain.Active = true; 1077 }); 1078 }); 954 1079 955 1080 if (kuva != null) vihu.Shape = Shape.FromImage(kuva); … … 964 1089 aivot.FarBrain = satunnaisaivot; 965 1090 aivot.TurnWhileMoving = true; 1091 aivot.DistanceClose = lahellaolo; 966 1092 967 1093 aivot.StopWhenTargetClose = false; 968 1094 969 if ( toiminto != null) aivot.TargetClose += delegate {toiminto(vihu); };1095 if (lahitoiminto != null) aivot.TargetClose += delegate { lahitoiminto(vihu); }; 970 1096 971 1097 vihu.MaximumLifetime = new TimeSpan(0, 0, kuolemaaika); … … 993 1119 double luku = RandomGen.NextDouble(0, 100); 994 1120 995 if (luku < 0.05 * vaikeustaso)1121 if (luku < 0.05 * (vaikeustaso / 2)) 996 1122 { 997 1123 if (Debug == true) … … 1001 1127 } 1002 1128 1003 Luovihu(paikka, ruudunkoko * 6, ruudunkoko, ruudunkoko, 10, "Nopea", 0.1, 1, nopeus * 0.5, nopeus * 0.7, ruudunkoko * 6, 20, null, null);1129 Luovihu(paikka, ruudunkoko * 6, ruudunkoko, ruudunkoko, 10, "Nopea", 0.1, 1, nopeus * 0.5, nopeus * 0.7, ruudunkoko * 6, ruudunkoko, 20, null, null); 1004 1130 } 1005 1131 1006 else if (luku < 0.2 * vaikeustaso)1132 if (luku < 0.1 * (vaikeustaso / 2)) 1007 1133 { 1008 1134 if (Debug == true) … … 1011 1137 MessageDisplay.Add("Vihuja lisätty " + vihujenmaara.ToString()); 1012 1138 } 1013 Luovihu(paikka, ruudunkoko * 6, ruudunkoko, ruudunkoko, 10, "Perus", 0.1, 3, nopeus * 0.2, nopeus * 0.5, ruudunkoko * 6, 20, null, null); 1139 1140 int numero = RandomGen.NextInt(0, 3); 1141 Image kuva = healthpakettikuva; 1142 if(numero == 0) kuva = healthpakettikuva; 1143 if(numero == 1) kuva = ammopakettikuva; 1144 if(numero == 2) kuva = suojakuva; 1145 1146 Luovihu(paikka, ruudunkoko * 10, ruudunkoko, ruudunkoko, 20, "Troijalainen", 1, 1, 0, nopeus, ruudunkoko * 2, ruudunkoko * 2, 40, delegate(Vihollinen v) { v.Image = null; v.Color = Color.Red; }, kuva); 1014 1147 } 1015 1148 1016 else if (luku < 1 * vaikeustaso)1149 else if (luku < 0.2 * (vaikeustaso / 2)) 1017 1150 { 1018 1151 if (Debug == true) … … 1021 1154 MessageDisplay.Add("Vihuja lisätty " + vihujenmaara.ToString()); 1022 1155 } 1023 Luovihu(paikka, ruudunkoko * 6, ruudunkoko, ruudunkoko, 10, "Perus", 0.5, 5, nopeus * 0.2, nopeus * 0.4, ruudunkoko * 6, 20, null, stopkuva); 1156 //Luovihu(paikka, ruudunkoko * 6, ruudunkoko, ruudunkoko, 10, "Perus", 0.1, 3, nopeus * 0.2, nopeus * 0.5, ruudunkoko * 6, ruudunkoko, 20, null, null); 1157 } 1158 1159 else if (luku < 0.5 * (vaikeustaso / 2)) 1160 { 1161 if (Debug == true) 1162 { 1163 vihujenmaara++; 1164 MessageDisplay.Add("Vihuja lisätty " + vihujenmaara.ToString()); 1165 } 1166 Luovihu(paikka, ruudunkoko * 6, ruudunkoko, ruudunkoko, 10, "Perus", 0.5, 5, nopeus * 0.2, nopeus * 0.4, ruudunkoko * 6, ruudunkoko, 20, null, stopkuva); 1024 1167 } 1025 1168 … … 1034 1177 #region Muut 1035 1178 1036 void Luoseina(Vector paikka, double leveys, double korkeus )1179 void Luoseina(Vector paikka, double leveys, double korkeus, Image kuva, Color vari) 1037 1180 { 1038 1181 PhysicsObject seina = new PhysicsObject(leveys, korkeus, Shape.Rectangle); … … 1042 1185 seina.IgnoresPhysicsLogics = true; 1043 1186 seina.CollisionIgnoreGroup = 1; 1044 seina.Color = Color.Gold; 1187 seina.Image = kuva; 1188 seina.Color = vari; 1045 1189 seina.Tag = "Seina"; 1046 1190 Add(seina, -1); … … 1066 1210 alue.IgnoresPhysicsLogics = true; 1067 1211 alue.Color = Color.Transparent; 1068 1212 Add(alue); 1069 1213 AddCollisionHandler(alue, Osuivoidiin); 1070 1214 } … … 1072 1216 void Osuivoidiin(PhysicsObject alue, PhysicsObject kohde) 1073 1217 { 1218 if (Debug == true) MessageDisplay.Add("Osuttiin voidiin."); 1074 1219 if (kohde.Tag.ToString() != "Seina") kohde.Destroy(); 1075 1220 } … … 1079 1224 void Luohealthpaketti(Vector paikka, double leveys, double korkeus) 1080 1225 { 1081 1082 1226 if (Vector.Distance(paikka, pelaajat[0].Position) > ruudunkoko * 6) 1083 1227 { 1084 1228 Paketti healthpaketti = new Paketti(leveys, korkeus); 1085 1229 healthpaketti.Position = paikka; 1086 //healthpaketti.Image = null; 1087 healthpaketti.Color = Color.Red; 1230 healthpaketti.Image = healthpakettikuva; 1088 1231 healthpaketti.Tag = "Elamaa"; 1089 Add(healthpaketti, 1);1232 Add(healthpaketti, -1); 1090 1233 1091 1234 AddCollisionHandler(healthpaketti, "Pelaaja", Osuihealthpakettiin); … … 1096 1239 { 1097 1240 if (Debug == true) MessageDisplay.Add("Osuttiin healthpakettiin."); 1241 1242 if (aanetpaalla == true) healthaani.Play(); 1098 1243 1099 1244 if (pelaaja == pelaajat[0]) … … 1119 1264 suojapaketti.Shape = Shape.FromImage(suojakuva); 1120 1265 suojapaketti.Tag = "Suojaa"; 1121 suojapaketti.Color = Color.Blue; 1122 Add(suojapaketti, 1); 1266 Add(suojapaketti, -1); 1123 1267 1124 1268 AddCollisionHandler(suojapaketti, "Pelaaja", Osuisuojapakettiin); … … 1129 1273 { 1130 1274 if (Debug == true) MessageDisplay.Add("Osuttiin suojapakettiin."); 1275 1276 if (aanetpaalla == true) suojaaani.Play(); 1131 1277 1132 1278 if (pelaaja == pelaajat[0]) … … 1149 1295 Paketti asepaketti = new Paketti(leveys, korkeus); 1150 1296 asepaketti.Position = paikka; 1151 //asepaketti.Image = null;1297 asepaketti.Image = ammopakettikuva; 1152 1298 asepaketti.Tag = "Aseita"; 1153 asepaketti.Color = Color.HanPurple; 1154 Add(asepaketti, 1); 1299 Add(asepaketti, -1); 1155 1300 1156 1301 AddCollisionHandler(asepaketti, "Pelaaja", Osuiasepakettiin); … … 1160 1305 void Osuiasepakettiin(PhysicsObject paketti, PhysicsObject pelaaja) 1161 1306 { 1307 int luku = RandomGen.NextInt(1, 1); 1162 1308 1163 1309 if (Debug == true) MessageDisplay.Add("Osuttiin asepakettiin."); 1164 1310 1311 if (aanetpaalla == true) aseaani.Play(); 1312 1313 Pelaaja tyyppi = (Pelaaja)pelaaja; 1314 1165 1315 if (pelaaja == pelaajat[0]) 1166 1316 { 1167 1317 paketti.Destroy(); 1318 1319 if (luku == 1) 1320 { 1321 Lisaaase(tyyppi, "Antivirus", antiviruskuvake, 3); 1322 } 1168 1323 } 1169 1324 … … 1171 1326 { 1172 1327 paketti.Destroy(); 1328 1329 if (luku == 1) 1330 { 1331 Lisaaase(tyyppi, "Antivirus", antiviruskuvake, 3); 1332 } 1333 } 1334 } 1335 1336 void Lisaaase(Pelaaja pelaaja, string ase, Image aseenkuva, int panokset) 1337 { 1338 if (pelaaja == pelaajat[0]) 1339 { 1340 pelaaja1ase = ase; 1341 aseenkuva1.Image = aseenkuva; 1342 pelaaja.ammuslaskuri.Value = panokset; 1343 } 1344 1345 if (pelaajat.Count == 2 && pelaaja == pelaajat[1]) 1346 { 1347 pelaaja2ase = ase; 1348 aseenkuva2.Image = aseenkuva; 1349 pelaaja.ammuslaskuri.Value = panokset; 1350 1173 1351 } 1174 1352 } … … 1180 1358 ajastin.Timeout += delegate 1181 1359 { 1182 double luku = RandomGen.NextDouble(0, 100); 1183 1184 if (luku < 0.5 / vaikeustaso) 1185 { 1186 pakettienlukumaara += 1; 1187 1188 if (pakettienlukumaara > 3) 1360 if (nopackages == false) 1361 { 1362 double luku = RandomGen.NextDouble(0, 100); 1363 1364 if (luku < 0.5 / vaikeustaso) 1189 1365 { 1190 if (Debug == true) MessageDisplay.Add("Paketti luotu."); 1191 1192 int toinenluku = RandomGen.NextInt(1, 4); 1193 1194 if (toinenluku == 1) Luohealthpaketti(paikka, ruudunkoko, ruudunkoko); 1195 1196 if (toinenluku == 2) Luosuojapaketti(paikka, ruudunkoko, ruudunkoko); 1197 1198 if (toinenluku == 3) Luoasepaketti(paikka, ruudunkoko, ruudunkoko); 1366 pakettienlukumaara += 1; 1367 1368 if (pakettienlukumaara > 3) 1369 { 1370 if (Debug == true) MessageDisplay.Add("Paketti luotu."); 1371 1372 int toinenluku = RandomGen.NextInt(1, 4); 1373 1374 if (toinenluku == 1) Luohealthpaketti(paikka, ruudunkoko * 0.9, ruudunkoko * 0.9); 1375 1376 if (toinenluku == 2) Luosuojapaketti(paikka, ruudunkoko * 0.9, ruudunkoko * 0.9); 1377 1378 if (toinenluku == 3) Luoasepaketti(paikka, ruudunkoko * 0.9, ruudunkoko * 0.9); 1379 } 1199 1380 } 1200 1381 } … … 1215 1396 aikalaskuri.Stop(); 1216 1397 1398 IsPaused = true; 1399 1217 1400 Lataakaikki(true, survivalkentannro, pelaajienlukumaara); 1218 1401 … … 1221 1404 HighScoreWindow topIkkuna = new HighScoreWindow( 1222 1405 "Highscores", 1223 "Congratulations, you made it to the high score list with \n{0:0.##} points! Enter your name :",1406 "Congratulations, you made it to the high score list with \n{0:0.##} points! Enter your name" + (pelaajat.Count == 2 ? "s" : "") + ":", 1224 1407 pistelista, pistelaskuri); 1225 1408 topIkkuna.List.ScoreFormat = "{0:0.##}"; -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/bin/x86/Debug/Data/Save.xml
r4081 r4102 21 21 </Field> 22 22 <Field Name="Y" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 23 <Value> 10.0755541980744</Value>23 <Value>-132</Value> 24 24 </Field> 25 25 </Field> … … 37 37 </Object> 38 38 <Object Name="vaikeustasoField" TypeAssembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Type="Int32"> 39 <Value> 1</Value>39 <Value>2</Value> 40 40 </Object> 41 41 <Object Name="pelaajienlukumaaraField" TypeAssembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Type="Int32"> … … 43 43 </Object> 44 44 <Object Name="aanetpaallaField" TypeAssembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Type="Boolean"> 45 <Value> False</Value>45 <Value>True</Value> 46 46 </Object> 47 47 </State> -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/bin/x86/Debug/Data/Survival11.xml
r4081 r4102 17 17 </Field> 18 18 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 19 <Value> 75</Value>19 <Value>445</Value> 20 20 </Field> 21 21 </Item> … … 25 25 </Field> 26 26 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 27 <Value> 62</Value>27 <Value>393</Value> 28 28 </Field> 29 29 </Item> … … 33 33 </Field> 34 34 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 35 <Value> 49</Value>35 <Value>75</Value> 36 36 </Field> 37 37 </Item> … … 41 41 </Field> 42 42 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 43 <Value> 48</Value>43 <Value>62</Value> 44 44 </Field> 45 45 </Item> … … 49 49 </Field> 50 50 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 51 <Value>4 4</Value>51 <Value>49</Value> 52 52 </Field> 53 53 </Item> … … 57 57 </Field> 58 58 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 59 <Value> 26</Value>59 <Value>48</Value> 60 60 </Field> 61 61 </Item> … … 65 65 </Field> 66 66 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 67 <Value> 25</Value>67 <Value>44</Value> 68 68 </Field> 69 69 </Item> … … 73 73 </Field> 74 74 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 75 <Value> 23</Value>75 <Value>32</Value> 76 76 </Field> 77 77 </Item> … … 81 81 </Field> 82 82 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 83 <Value>2 3</Value>83 <Value>26</Value> 84 84 </Field> 85 85 </Item> -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/bin/x86/Debug/Data/Survival12.xml
r4081 r4102 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> Mikko & Maija</Value>8 <Value>Aki & Allu</Value> 9 9 </Field> 10 10 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 11 <Value> 26</Value>11 <Value>1024</Value> 12 12 </Field> 13 13 </Item> … … 17 17 </Field> 18 18 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 19 <Value>2 3</Value>19 <Value>28</Value> 20 20 </Field> 21 21 </Item> 22 22 <Item Index="2" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 23 23 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 24 <Value> -</Value>24 <Value>Mikko & Maija</Value> 25 25 </Field> 26 26 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 27 <Value> 0</Value>27 <Value>26</Value> 28 28 </Field> 29 29 </Item> 30 30 <Item Index="3" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 31 31 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 32 <Value> -</Value>32 <Value>Mikko & Maija</Value> 33 33 </Field> 34 34 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 35 <Value> 0</Value>35 <Value>25</Value> 36 36 </Field> 37 37 </Item> 38 38 <Item Index="4" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 39 39 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 40 <Value> -</Value>40 <Value>Mikko & Maija</Value> 41 41 </Field> 42 42 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 43 <Value> 0</Value>43 <Value>23</Value> 44 44 </Field> 45 45 </Item> 46 46 <Item Index="5" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 47 47 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 48 <Value> -</Value>48 <Value>Aki & Allu</Value> 49 49 </Field> 50 50 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 51 <Value> 0</Value>51 <Value>16</Value> 52 52 </Field> 53 53 </Item> 54 54 <Item Index="6" Type="Jypeli.ScoreItem, Jypeli, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null"> 55 55 <Field Name="Name" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 56 <Value> -</Value>56 <Value>Mikko & Maija</Value> 57 57 </Field> 58 58 <Field Name="Score" Type="System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 59 <Value> 0</Value>59 <Value>9</Value> 60 60 </Field> 61 61 </Item> … … 87 87 </Field> 88 88 <Field Name="LastEnteredName" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 89 <Value> Mikko & Maija</Value>89 <Value>Aki & Allu</Value> 90 90 </Field> 91 91 </Object> -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/obj/x86/Debug/ContentPipeline-{EDE36D82-5857-4501-BD65-D6452636E14F}.xml
r4081 r4102 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\Selviytyminen1.xnb</Output> 11 <Time>2013-06-1 1T10:14:36.8014808+03:00</Time>11 <Time>2013-06-12T14:12:01.5191727+03:00</Time> 12 12 </Item> 13 13 <Item> … … 81 81 <Options>None</Options> 82 82 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\suoja.xnb</Output> 83 <Time>2013-06-1 1T14:57:55.0121319+03:00</Time>83 <Time>2013-06-12T10:03:05.2618213+03:00</Time> 84 84 </Item> 85 85 <Item> … … 91 91 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\virus_cartoon.xnb</Output> 92 92 <Time>2013-06-11T14:53:13.0119347+03:00</Time> 93 </Item> 94 <Item> 95 <Source>healthpack.png</Source> 96 <Name>healthpack</Name> 97 <Importer>TextureImporter</Importer> 98 <Processor>TextureProcessor</Processor> 99 <Options>None</Options> 100 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\healthpack.xnb</Output> 101 <Time>2013-06-12T10:00:20.4582213+03:00</Time> 102 </Item> 103 <Item> 104 <Source>player_dead.wav</Source> 105 <Name>player_dead</Name> 106 <Importer>WavImporter</Importer> 107 <Processor>SoundEffectProcessor</Processor> 108 <Options>None</Options> 109 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\player_dead.xnb</Output> 110 <Time>2013-06-12T10:24:58.7906889+03:00</Time> 111 </Item> 112 <Item> 113 <Source>health.wav</Source> 114 <Name>health</Name> 115 <Importer>WavImporter</Importer> 116 <Processor>SoundEffectProcessor</Processor> 117 <Options>None</Options> 118 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\health.xnb</Output> 119 <Time>2013-06-12T10:24:24.2706889+03:00</Time> 120 </Item> 121 <Item> 122 <Source>klang.wav</Source> 123 <Name>klang</Name> 124 <Importer>WavImporter</Importer> 125 <Processor>SoundEffectProcessor</Processor> 126 <Options>None</Options> 127 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\klang.xnb</Output> 128 <Time>2013-06-12T10:23:44.8519802+03:00</Time> 129 </Item> 130 <Item> 131 <Source>start.wav</Source> 132 <Name>start</Name> 133 <Importer>WavImporter</Importer> 134 <Processor>SoundEffectProcessor</Processor> 135 <Options>None</Options> 136 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\start.xnb</Output> 137 <Time>2013-06-12T10:56:07.1157982+03:00</Time> 138 </Item> 139 <Item> 140 <Source>aseaani.wav</Source> 141 <Name>aseaani</Name> 142 <Importer>WavImporter</Importer> 143 <Processor>SoundEffectProcessor</Processor> 144 <Options>None</Options> 145 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\aseaani.xnb</Output> 146 <Time>2013-06-12T10:57:59.0219877+03:00</Time> 147 </Item> 148 <Item> 149 <Source>perusasekuvake.png</Source> 150 <Name>perusasekuvake</Name> 151 <Importer>TextureImporter</Importer> 152 <Processor>TextureProcessor</Processor> 153 <Options>None</Options> 154 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\perusasekuvake.xnb</Output> 155 <Time>2013-06-12T11:47:19.740044+03:00</Time> 156 </Item> 157 <Item> 158 <Source>antivirus.png</Source> 159 <Name>antivirus</Name> 160 <Importer>TextureImporter</Importer> 161 <Processor>TextureProcessor</Processor> 162 <Options>None</Options> 163 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\antivirus.xnb</Output> 164 <Time>2013-06-12T12:02:18.3268937+03:00</Time> 165 </Item> 166 <Item> 167 <Source>seina.png</Source> 168 <Name>seina</Name> 169 <Importer>TextureImporter</Importer> 170 <Processor>TextureProcessor</Processor> 171 <Options>None</Options> 172 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\seina.xnb</Output> 173 <Time>2013-06-12T12:11:26.4276983+03:00</Time> 174 </Item> 175 <Item> 176 <Source>antiviruskuvake.png</Source> 177 <Name>antiviruskuvake</Name> 178 <Importer>TextureImporter</Importer> 179 <Processor>TextureProcessor</Processor> 180 <Options>None</Options> 181 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\antiviruskuvake.xnb</Output> 182 <Time>2013-06-12T12:34:48.3034652+03:00</Time> 183 </Item> 184 <Item> 185 <Source>Selviytyminen2.png</Source> 186 <Name>Selviytyminen2</Name> 187 <Importer>TextureImporter</Importer> 188 <Processor>TextureProcessor</Processor> 189 <Options>None</Options> 190 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\Selviytyminen2.xnb</Output> 191 <Time>2013-06-12T13:16:53.4383836+03:00</Time> 192 </Item> 193 <Item> 194 <Source>ammopack.png</Source> 195 <Name>ammopack</Name> 196 <Importer>TextureImporter</Importer> 197 <Processor>TextureProcessor</Processor> 198 <Options>None</Options> 199 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\ammopack.xnb</Output> 200 <Time>2013-06-12T13:39:42.3616566+03:00</Time> 201 </Item> 202 <Item> 203 <Source>alkuvalikko.mp3</Source> 204 <Name>alkuvalikko</Name> 205 <Importer>Mp3Importer</Importer> 206 <Processor>SongProcessor</Processor> 207 <Options>None</Options> 208 <Output>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\alkuvalikko.xnb</Output> 209 <Extra>C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\alkuvalikko.wma</Extra> 210 <Time>2013-06-12T14:37:29.9924549+03:00</Time> 93 211 </Item> 94 212 <BuildSuccessful>true</BuildSuccessful> -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/obj/x86/Debug/Defend The Computer.csproj.FileListAbsolute.txt
r4081 r4102 17 17 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\suoja.xnb 18 18 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\virus_cartoon.xnb 19 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\healthpack.xnb 20 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\player_dead.xnb 21 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\health.xnb 22 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\klang.xnb 23 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\start.xnb 24 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\aseaani.xnb 25 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\perusasekuvake.xnb 26 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\antivirus.xnb 27 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\seina.xnb 28 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\antiviruskuvake.xnb 29 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\Selviytyminen2.xnb 30 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\ammopack.xnb 31 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\alkuvalikko.xnb 32 C:\MyTemp\LauriK\Defend The Computer\Defend The Computer\Defend The Computer\bin\x86\Debug\Content\alkuvalikko.wma -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The Computer/obj/x86/Debug/cachefile-{EDE36D82-5857-4501-BD65-D6452636E14F}-targetpath.txt
r4081 r4102 9 9 Content\suoja.xnb 10 10 Content\virus_cartoon.xnb 11 Content\healthpack.xnb 12 Content\player_dead.xnb 13 Content\health.xnb 14 Content\klang.xnb 15 Content\start.xnb 16 Content\aseaani.xnb 17 Content\perusasekuvake.xnb 18 Content\antivirus.xnb 19 Content\seina.xnb 20 Content\antiviruskuvake.xnb 21 Content\Selviytyminen2.xnb 22 Content\ammopack.xnb 23 Content\alkuvalikko.xnb 24 Content\alkuvalikko.wma -
2013/24/LauriK/Defend The Computer/Defend The Computer/Defend The ComputerContent/Defend The ComputerContent.contentproj
r4081 r4102 107 107 </Compile> 108 108 </ItemGroup> 109 <ItemGroup> 110 <Compile Include="healthpack.png"> 111 <Name>healthpack</Name> 112 <Importer>TextureImporter</Importer> 113 <Processor>TextureProcessor</Processor> 114 </Compile> 115 </ItemGroup> 116 <ItemGroup> 117 <Compile Include="player_dead.wav"> 118 <Name>player_dead</Name> 119 <Importer>WavImporter</Importer> 120 <Processor>SoundEffectProcessor</Processor> 121 </Compile> 122 <Compile Include="health.wav"> 123 <Name>health</Name> 124 <Importer>WavImporter</Importer> 125 <Processor>SoundEffectProcessor</Processor> 126 </Compile> 127 <Compile Include="klang.wav"> 128 <Name>klang</Name> 129 <Importer>WavImporter</Importer> 130 <Processor>SoundEffectProcessor</Processor> 131 </Compile> 132 </ItemGroup> 133 <ItemGroup> 134 <Compile Include="start.wav"> 135 <Name>start</Name> 136 <Importer>WavImporter</Importer> 137 <Processor>SoundEffectProcessor</Processor> 138 </Compile> 139 </ItemGroup> 140 <ItemGroup> 141 <Compile Include="aseaani.wav"> 142 <Name>aseaani</Name> 143 <Importer>WavImporter</Importer> 144 <Processor>SoundEffectProcessor</Processor> 145 </Compile> 146 </ItemGroup> 147 <ItemGroup> 148 <Compile Include="perusasekuvake.png"> 149 <Name>perusasekuvake</Name> 150 <Importer>TextureImporter</Importer> 151 <Processor>TextureProcessor</Processor> 152 </Compile> 153 </ItemGroup> 154 <ItemGroup> 155 <Compile Include="antivirus.png"> 156 <Name>antivirus</Name> 157 <Importer>TextureImporter</Importer> 158 <Processor>TextureProcessor</Processor> 159 </Compile> 160 </ItemGroup> 161 <ItemGroup> 162 <Compile Include="seina.png"> 163 <Name>seina</Name> 164 <Importer>TextureImporter</Importer> 165 <Processor>TextureProcessor</Processor> 166 </Compile> 167 </ItemGroup> 168 <ItemGroup> 169 <Compile Include="antiviruskuvake.png"> 170 <Name>antiviruskuvake</Name> 171 <Importer>TextureImporter</Importer> 172 <Processor>TextureProcessor</Processor> 173 </Compile> 174 </ItemGroup> 175 <ItemGroup> 176 <Compile Include="Selviytyminen2.png"> 177 <Name>Selviytyminen2</Name> 178 <Importer>TextureImporter</Importer> 179 <Processor>TextureProcessor</Processor> 180 </Compile> 181 </ItemGroup> 182 <ItemGroup> 183 <Compile Include="ammopack.png"> 184 <Name>ammopack</Name> 185 <Importer>TextureImporter</Importer> 186 <Processor>TextureProcessor</Processor> 187 </Compile> 188 </ItemGroup> 189 <ItemGroup> 190 <Compile Include="alkuvalikko.mp3"> 191 <Name>alkuvalikko</Name> 192 <Importer>Mp3Importer</Importer> 193 <Processor>SongProcessor</Processor> 194 </Compile> 195 </ItemGroup> 109 196 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 110 197 <!-- 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.