Changeset 5808
- Timestamp:
- 2015-02-14 14:52:17 (8 years ago)
- Location:
- 2014/koodauskerho/38/EmilK/toimintajuttu
- Files:
-
- 16 added
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttu/obj/x86/Debug/ContentPipeline-{1279BD45-05B8-49CE-8E6D-26708C229F93}.xml
r5800 r5808 621 621 <Options>None</Options> 622 622 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta1.xnb</Output> 623 <Time>2015-0 1-17T10:55:56.5298957+02:00</Time>623 <Time>2015-02-14T12:22:38.0998154+02:00</Time> 624 624 </Item> 625 625 <Item> … … 630 630 <Options>None</Options> 631 631 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta2.xnb</Output> 632 <Time>2015-0 1-17T13:41:48.3001212+02:00</Time>632 <Time>2015-02-14T12:45:41.1304225+02:00</Time> 633 633 </Item> 634 634 <Item> … … 639 639 <Options>None</Options> 640 640 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta3.xnb</Output> 641 <Time>2015-0 1-17T12:26:50.4131152+02:00</Time>641 <Time>2015-02-14T14:51:03.8342022+02:00</Time> 642 642 </Item> 643 643 <Item> … … 648 648 <Options>None</Options> 649 649 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta4.xnb</Output> 650 <Time>2015-0 1-17T10:55:56.5610959+02:00</Time>650 <Time>2015-02-14T14:47:00.5832173+02:00</Time> 651 651 </Item> 652 652 <Item> … … 657 657 <Options>None</Options> 658 658 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta5.xnb</Output> 659 <Time>2015-0 1-17T14:22:59.1824093+02:00</Time>659 <Time>2015-02-14T14:44:35.5577454+02:00</Time> 660 660 </Item> 661 661 <Item> … … 943 943 <Options>None</Options> 944 944 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta6.xnb</Output> 945 <Time>2015-0 1-17T13:33:22.719181+02:00</Time>945 <Time>2015-02-14T14:19:20.1760644+02:00</Time> 946 946 </Item> 947 947 <Item> … … 970 970 <Options>None</Options> 971 971 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta7.xnb</Output> 972 <Time>2015-0 1-17T13:33:22.719181+02:00</Time>972 <Time>2015-02-14T14:19:20.1916645+02:00</Time> 973 973 </Item> 974 974 <Item> … … 980 980 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta8.xnb</Output> 981 981 <Time>2015-01-17T13:42:08.6453735+02:00</Time> 982 </Item> 983 <Item> 984 <Source>yökiikarit.png</Source> 985 <Name>yökiikarit</Name> 986 <Importer>TextureImporter</Importer> 987 <Processor>TextureProcessor</Processor> 988 <Options>None</Options> 989 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\yökiikarit.xnb</Output> 990 <Time>2015-02-14T10:07:03.9642512+02:00</Time> 991 </Item> 992 <Item> 993 <Source>spec ops vihu.png</Source> 994 <Name>spec ops vihu</Name> 995 <Importer>TextureImporter</Importer> 996 <Processor>TextureProcessor</Processor> 997 <Options>None</Options> 998 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\spec ops vihu.xnb</Output> 999 <Time>2015-02-14T11:13:24.3049348+02:00</Time> 1000 </Item> 1001 <Item> 1002 <Source>vihu hirttyy 2.png</Source> 1003 <Name>vihu hirttyy 2</Name> 1004 <Importer>TextureImporter</Importer> 1005 <Processor>TextureProcessor</Processor> 1006 <Options>None</Options> 1007 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\vihu hirttyy 2.xnb</Output> 1008 <Time>2015-02-14T11:13:35.1836284+02:00</Time> 1009 </Item> 1010 <Item> 1011 <Source>vihu hirttyy.png</Source> 1012 <Name>vihu hirttyy</Name> 1013 <Importer>TextureImporter</Importer> 1014 <Processor>TextureProcessor</Processor> 1015 <Options>None</Options> 1016 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\vihu hirttyy.xnb</Output> 1017 <Time>2015-02-14T11:13:44.2783115+02:00</Time> 1018 </Item> 1019 <Item> 1020 <Source>agent 47 power 2.png</Source> 1021 <Name>agent 47 power 2</Name> 1022 <Importer>TextureImporter</Importer> 1023 <Processor>TextureProcessor</Processor> 1024 <Options>None</Options> 1025 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power 2.xnb</Output> 1026 <Time>2015-02-14T11:37:22.2736922+02:00</Time> 1027 </Item> 1028 <Item> 1029 <Source>agent 47 power.png</Source> 1030 <Name>agent 47 power</Name> 1031 <Importer>TextureImporter</Importer> 1032 <Processor>TextureProcessor</Processor> 1033 <Options>None</Options> 1034 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power.xnb</Output> 1035 <Time>2015-02-14T11:37:32.6186922+02:00</Time> 1036 </Item> 1037 <Item> 1038 <Source>agent 47 power 3.png</Source> 1039 <Name>agent 47 power 3</Name> 1040 <Importer>TextureImporter</Importer> 1041 <Processor>TextureProcessor</Processor> 1042 <Options>None</Options> 1043 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power 3.xnb</Output> 1044 <Time>2015-02-14T11:38:20.1834922+02:00</Time> 1045 </Item> 1046 <Item> 1047 <Source>agent 47 power 4.png</Source> 1048 <Name>agent 47 power 4</Name> 1049 <Importer>TextureImporter</Importer> 1050 <Processor>TextureProcessor</Processor> 1051 <Options>None</Options> 1052 <Output>C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power 4.xnb</Output> 1053 <Time>2015-02-14T11:38:26.4116922+02:00</Time> 982 1054 </Item> 983 1055 <BuildSuccessful>true</BuildSuccessful> -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttu/obj/x86/Debug/cachefile-{1279BD45-05B8-49CE-8E6D-26708C229F93}-targetpath.txt
r5800 r5808 114 114 Content\kentta7.xnb 115 115 Content\kentta8.xnb 116 Content\yökiikarit.xnb 117 Content\spec ops vihu.xnb 118 Content\vihu hirttyy 2.xnb 119 Content\vihu hirttyy.xnb 120 Content\agent 47 power 2.xnb 121 Content\agent 47 power.xnb 122 Content\agent 47 power 3.xnb 123 Content\agent 47 power 4.xnb -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttu/obj/x86/Debug/toimintajuttu.csproj.FileListAbsolute.txt
r5800 r5808 122 122 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta7.xnb 123 123 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\kentta8.xnb 124 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\yökiikarit.xnb 125 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\spec ops vihu.xnb 126 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\vihu hirttyy 2.xnb 127 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\vihu hirttyy.xnb 128 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power 2.xnb 129 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power.xnb 130 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power 3.xnb 131 C:\MyTemp\EmilK\toimintajuttu\toimintajuttu\toimintajuttu\bin\x86\Debug\Content\agent 47 power 4.xnb -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttu/toimintajuttu.cs
r5800 r5808 18 18 int kentannumero = 1; 19 19 20 bool yokiikarit = false; 21 GameObject kiikarit; 20 22 21 23 DoubleMeter elamaLaskuriB; … … 25 27 Image pelaajanKuva = LoadImage("god of war"); 26 28 Image tahtiKuva = LoadImage("tahti"); 29 30 Image kiikarikuva = LoadImage("yökiikarit"); 27 31 28 32 Image[][] vihollisenkuva = new Image[][] … … 32 36 , LoadImages("rotta juoksee 1", "rotta juoksee 2", "rotta juoksee 3", "rotta juoksee 4","rotta juoksee 5", "rotta juoksee 6") 33 37 , LoadImages("norsu") 34 , LoadImages("demoni ")38 , LoadImages("demoni 1") 35 39 , LoadImages("hiiri") 36 , LoadImages(" rotta juoksee 1", "rotta juoksee 2", "rotta juoksee 3", "rotta juoksee 4","rotta juoksee 5", "rotta juoksee 6")40 , LoadImages("spec ops vihu") 37 41 }; 38 42 39 Image[] vihollisenLento = LoadImages(" rotta juoksee 1", "rotta juoksee 2", "rotta juoksee 3");40 41 Image[] toisenvihollisenkuva = LoadImages("hämähäkki", "hämähäkki", "hämähäkki", "vihu", "rotta", "vihu" ,"hiiri", "rotta");43 Image[] vihollisenLento = LoadImages("vihu hirttyy", "vihu hirttyy 2"); 44 45 Image[] toisenvihollisenkuva = LoadImages("hämähäkki", "hämähäkki", "hämähäkki", "vihu", "rotta", "vihu", "hiiri", "rotta"); 42 46 43 47 Image lentavankuva = LoadImage("demoni 1"); … … 54 58 Image alkuvalikonkuva = LoadImage("TITLE SCREEN"); 55 59 56 Image[] tallomiskuva = LoadImages("bossi talloo 1", "bossi talloo 2"); 57 Image jalkakuva = LoadImage("BOSSIN ISKU"); 60 Image[] tallomiskuva = LoadImages("bossi talloo 1", "bossi talloo 2"); 61 Image jalkakuva = LoadImage("BOSSIN ISKU"); 58 62 59 63 SoundEffect hyppyAani = LoadSoundEffect("Jump7"); … … 64 68 Image aseenkuva = LoadImage("ase"); 65 69 66 Color[] tasovarit = { Color.Red, Color.Gray, Color.DarkBlue, Color.DarkGreen, Color.Gray, Color.Green, Color.GreenYellow, Color.GreenYellow 67 68 String[] musiikit = { "bi&ei3", "ljn2" , "doom2", "futuremusic2", "D&d2", "voittomusa", "ljn2", "doom2"};69 70 private Image[][] ukkeliHyppaa = { LoadImages("kratos"), LoadImages("snake juoksee 1"), LoadImages("agent 47 juoksee(22)"), LoadImages("pavel remasteroituna"), LoadImages("Sam Fisher juoksee 1"), LoadImages("Jason juoksee 1"), LoadImages("Talion"), LoadImages 70 Color[] tasovarit = { Color.Red, Color.Gray, Color.DarkBlue, Color.DarkGreen, Color.Gray, Color.Green, Color.GreenYellow, Color.GreenYellow }; 71 72 String[] musiikit = { "bi&ei3", "ljn2", "doom2", "futuremusic2", "D&d2", "voittomusa", "ljn2", "doom2" }; 73 74 private Image[][] ukkeliHyppaa = { LoadImages("kratos"), LoadImages("snake juoksee 1"), LoadImages("agent 47 juoksee(22)"), LoadImages("pavel remasteroituna"), LoadImages("Sam Fisher juoksee 1"), LoadImages("Jason juoksee 1"), LoadImages("Talion"), LoadImages("Walker juoksee 1") }; 71 75 private Image[][] ukkelinKavely = { LoadImages("kratos juoksee 1"), LoadImages("snake", "snake juoksee 1"), LoadImages("agent 472", "agent 47 juoksee(22)"), LoadImages("pavel remasteroituna"), LoadImages("Sam Fisher", "Sam Fisher juoksee 1"), LoadImages("Jason", "Jason juoksee 1"), LoadImages("Talion"), LoadImages("Walker", "Walker juoksee 1") }; 72 76 private Image[][] ukkeliHyokkaa = { LoadImages("hyökkäys 4"), LoadImages("snake"), LoadImages("agent 472"), LoadImages("pavel remasteroituna"), LoadImages("Sam Fisher"), LoadImages("Jason"), LoadImages("Talion"), LoadImages("Walker juoksee 1") }; 73 77 private Image[][] ukkeliHyokkaa2 = { LoadImages("kratos ampuu 1", "kratos ampuu 2"), LoadImages("snake"), LoadImages("agent 472"), LoadImages("pavel remasteroituna"), LoadImages("Sam Fisher"), LoadImages("Jason"), LoadImages("Talion"), LoadImages("Walker") }; 74 78 private Image[][] ukkeliPaikallaan = { LoadImages("kratos"), LoadImages("snake"), LoadImages("agent 472"), LoadImages("pavel remasteroituna"), LoadImages("Sam Fisher"), LoadImages("Jason"), LoadImages("Talion"), LoadImages("Walker") }; 75 private Image[] ammuskuvat = { LoadImage("Corvon nuoli"), LoadImage("graysonin luoti"), LoadImage("Corvon nuoli"), LoadImage("graysonin luoti"), LoadImage("graysonin luoti"), LoadImage("graysonin luoti"), LoadImage("Corvon nuoli"), LoadImage("graysonin luoti") }; 79 private Image[][] ukkeliPoweri = { LoadImages("kratos"), LoadImages("snake", "kratos ampuu 1", "kratos ampuu 2", "kratos ampuu 1", "kratos ampuu 2"), LoadImages("agent 47 power", "agent 47 power 2", "agent 47 power 3", "agent 47 power 4", "agent 47 power 4"), LoadImages("pavel remasteroituna"), LoadImages("Sam Fisher"), LoadImages("Jason"), LoadImages("Talion", "Sam Fisher", "Walker", "Jason", "pavel remasteroituna"), LoadImages("Walker") }; 80 private Image[] ammuskuvat = { LoadImage("Corvon nuoli"), LoadImage("graysonin luoti"), LoadImage("graysonin luoti"), LoadImage("graysonin luoti"), LoadImage("graysonin luoti"), LoadImage("graysonin luoti"), LoadImage("Corvon nuoli"), LoadImage("graysonin luoti") }; 76 81 77 82 SoundEffect maaliAani = LoadSoundEffect("maali"); … … 90 95 91 96 luonappi(0.3, 0.41, 1); 92 luonappi(0.53, 0.4, 3); 97 luonappi(0.53, 0.4, 3); 93 98 luonappi(0.74, 0.4, 5); 94 99 luonappi(0.25, 0.73, 4); … … 131 136 } 132 137 133 if (kentannumero == 4)134 {135 Level.AmbientLight = 0.2;136 137 Light valo = new Light();138 valo.Intensity = 0.9;139 valo.Distance = 300;140 valo.Position = Vector.Zero;141 Add(valo);142 143 Timer ajastin = new Timer();144 ajastin.Interval = 0.05;145 ajastin.Timeout += delegate { valo.Position = pelaaja1.Position; /* + new Vector(0, -50); */ };146 ajastin.Start();147 }138 //if (kentannumero == 4) 139 //{ 140 // Level.AmbientLight = 0.2; 141 142 // Light valo = new Light(); 143 // valo.Intensity = 0.9; 144 // valo.Distance = 300; 145 // valo.Position = Vector.Zero; 146 // Add(valo); 147 148 // Timer ajastin = new Timer(); 149 // ajastin.Interval = 0.05; 150 // ajastin.Timeout += delegate { valo.Position = pelaaja1.Position; /* + new Vector(0, -50); */ }; 151 // ajastin.Start(); 152 //} 148 153 149 154 Gravity = new Vector(0, -4000); … … 194 199 kentta.SetTileMethod('7', LisaaPowerup); 195 200 kentta.SetTileMethod('L', LisaaLentavavihollinen); 201 kentta.SetTileMethod('Q', Lisaanakymatonpalikka); 202 kentta.SetTileMethod('5', Lisaavalaistus); 196 203 197 204 kentta.Execute(RUUDUN_KOKO, RUUDUN_KOKO); … … 208 215 taso.Color = tasovarit[kentannumero - 1]; 209 216 taso.Image = tasokuva; 217 218 Add(taso); 219 } 220 221 void Lisaanakymatonpalikka(Vector paikka, double leveys, double korkeus) 222 { 223 PhysicsObject taso = PhysicsObject.CreateStaticObject(leveys, korkeus); 224 taso.Position = paikka; 225 taso.Color = tasovarit[kentannumero - 1]; 226 taso.Image = tasokuva; 227 taso.Tag = "nakymaton"; 228 taso.IsVisible = false; 229 210 230 211 231 Add(taso); … … 281 301 taso1.IgnoresCollisionResponse = true; 282 302 taso1.Tag = "Bossipalikka"; 303 Add(taso1); 304 } 305 306 void Lisaavalaistus(Vector paikka, double leveys, double korkeus) 307 { 308 taso1 = PhysicsObject.CreateStaticObject(15 * leveys, 3 * korkeus); 309 taso1.Position = paikka; 310 taso1.Color = Color.Red; 311 taso1.IsVisible = false; 312 taso1.IgnoresCollisionResponse = true; 313 taso1.Tag = "Pimeää"; 283 314 Add(taso1); 284 315 } … … 413 444 void LisaaLentavavihollinen(Vector paikka, double leveys, double korkeus) 414 445 { 415 PhysicsObject lentava = new PhysicsObject(leveys , korkeus * 4);446 PhysicsObject lentava = new PhysicsObject(leveys * 2, korkeus * 4); 416 447 lentava.Position = paikka; 417 448 lentava.IgnoresGravity = true; 418 lentava.Oscillate(new Vector(0, 1), korkeus * 2, 1.0); 449 lentava.CanRotate = false; 450 lentava.Oscillate(new Vector(0, 1), korkeus * 2, 0.5); 419 451 lentava.Image = lentavankuva; 420 452 FollowerBrain seuraajanAivot = new FollowerBrain("pelaaja"); … … 422 454 seuraajanAivot.Active = true; 423 455 seuraajanAivot.Speed = 300; // Millä nopeudella kohdetta seurataan 424 seuraajanAivot.DistanceFar = 600; // Etäisyys jolla aletaan seurata kohdetta425 seuraajanAivot.DistanceClose = 200; // Etäisyys jolloin ollaan lähellä kohdetta456 seuraajanAivot.DistanceFar = 1200; // Etäisyys jolla aletaan seurata kohdetta 457 seuraajanAivot.DistanceClose = 400; // Etäisyys jolloin ollaan lähellä kohdetta 426 458 seuraajanAivot.StopWhenTargetClose = false; // Pysähdytään kun ollaan lähellä kohdetta 427 459 … … 515 547 AddCollisionHandler(pelaaja1, "powerup", Voimaalisää); 516 548 AddCollisionHandler(pelaaja1, "vihollinen", Vähennäterveyttä); 549 AddCollisionHandler(pelaaja1, "Pimeää", pimennys); 550 517 551 pelaaja1.Tag = "pelaaja"; 518 552 Add(pelaaja1); … … 524 558 pelaaja1.Weapon.IsVisible = false; 525 559 560 yokiikarit = false; 561 526 562 527 563 … … 554 590 palikka.Destroy(); 555 591 terveysAani.Play(); 592 } 593 594 void pimennys(PhysicsObject hahmo, PhysicsObject palikka) 595 { 596 Level.AmbientLight = 0.2; 597 598 Light valo = new Light(); 599 valo.Intensity = 0.9; 600 valo.Distance = 300; 601 valo.Position = Vector.Zero; 602 Add(valo); 603 604 Timer ajastin = new Timer(); 605 ajastin.Interval = 0.05; 606 ajastin.Timeout += delegate { valo.Position = pelaaja1.Position; /* + new Vector(0, -50); */ }; 607 ajastin.Start(); 556 608 } 557 609 … … 577 629 ControllerOne.Listen(Button.DPadLeft, ButtonState.Down, Liikuta, "Pelaaja liikkuu vasemmalle", pelaaja1, -nopeus); 578 630 ControllerOne.Listen(Button.DPadRight, ButtonState.Down, Liikuta, "Pelaaja liikkuu oikealle", pelaaja1, nopeus); 631 632 ControllerOne.Listen(Button.LeftShoulder, ButtonState.Pressed, kayttaayokiikaria, "yokiikarit", pelaaja1); 579 633 580 634 //ControllerOne.Listen(Button.DPadLeft, ButtonState.Pressed, KaynnistaKavelu, "Pelaaja liikkuu vasemmalle"); … … 663 717 { 664 718 vihu.Destroy(); 719 665 720 GameObject ylos = new GameObject(vihu.Width, vihu.Height); 666 721 ylos.Image = vihu.Image; … … 677 732 } 678 733 } 734 else if (kentannumero == 7) 735 { 736 Animation poweri = new Animation(ukkeliPoweri[kentannumero - 1]); 737 poweri.FPS = 7; 738 pelaaja1.PlayAnimation(poweri); 739 740 Timer.SingleShot(0.5, delegate 741 { 742 GameObject tuho = new GameObject(Screen.Width * 2, Screen.Height * 2); 743 //tuho.Image = tuhokuva[kentannumero - 1]; 744 tuho.Color = Color.Blue; 745 tuho.Position = pelaaja1.Position; // +new Vector(0, Screen.Height); 746 Add(tuho, 1); 747 748 foreach (var vihu in GetObjectsWithTag("vihollinen")) 749 { 750 if (Vector.Distance(pelaaja1.Position, vihu.Position) < 1600) 751 { 752 vihu.Destroy(); 753 754 GameObject ylos = new GameObject(vihu.Width, vihu.Height); 755 ylos.Image = vihu.Image; 756 ylos.Position = vihu.Position; 757 var anim = new Animation(vihollisenLento); 758 anim.FPS = 6; 759 ylos.Animation = anim; 760 ylos.Animation.Start(); 761 ylos.Animation.Played += delegate { ylos.Destroy(); }; 762 Add(ylos); 763 } 764 } 765 766 Timer.SingleShot(0.1, delegate 767 { 768 tuho.Destroy(); 769 }); 770 }); 771 } 679 772 else 680 773 { 681 GameObject tuho = new GameObject(Screen.Width * 2, Screen.Height * 2); 682 //tuho.Image = tuhokuva[kentannumero - 1]; 683 tuho.Color = Color.White; 684 tuho.Position = pelaaja1.Position; // +new Vector(0, Screen.Height); 685 Add(tuho, 1); 686 687 Timer.SingleShot(0.1, delegate 774 Animation poweri = new Animation(ukkeliPoweri[kentannumero - 1]); 775 poweri.FPS = 7; 776 pelaaja1.PlayAnimation(poweri); 777 778 Timer.SingleShot(0.5, delegate 688 779 { 689 tuho.Destroy(); 780 GameObject tuho = new GameObject(Screen.Width * 2, Screen.Height * 2); 781 //tuho.Image = tuhokuva[kentannumero - 1]; 782 tuho.Color = Color.White; 783 tuho.Position = pelaaja1.Position; // +new Vector(0, Screen.Height); 784 Add(tuho, 1); 785 786 foreach (var vihu in GetObjectsWithTag("vihollinen")) 787 { 788 if (Vector.Distance(pelaaja1.Position, vihu.Position) < 1600) 789 { 790 vihu.Destroy(); 791 } 792 } 793 794 Timer.SingleShot(0.1, delegate 795 { 796 tuho.Destroy(); 797 }); 690 798 }); 691 692 foreach (var vihu in GetObjectsWithTag("vihollinen"))693 {694 if (Vector.Distance(pelaaja1.Position, vihu.Position) < 1600)695 {696 vihu.Destroy();697 }698 }699 799 } 700 800 } 701 801 } 702 703 802 704 803 … … 714 813 ammus.LifetimeLeft = TimeSpan.FromSeconds(3); 715 814 ammus.Image = ammuskuvat[kentannumero - 1]; 716 ammus.Size *= 8;815 ammus.Size *= 5; 717 816 Animation anim = new Animation(ukkeliHyokkaa2[kentannumero - 1]); 718 817 anim.FPS = 4; … … 787 886 void BossiTarkistaa() 788 887 { 789 if (Vector.Distance (pelaaja1.Position, bossi.Position) <1000)888 if (Vector.Distance(pelaaja1.Position, bossi.Position) < 1000) 790 889 { 791 890 PhysicsObject tallominen = new PhysicsObject(300, 60); … … 803 902 ajastin.Start(); 804 903 } 805 904 } 905 906 void kayttaayokiikaria(PlatformCharacter hahmo) 907 { 908 if (kentannumero != 2 && kentannumero != 5) 909 { 910 return; 911 } 912 913 if (!yokiikarit) 914 { 915 kiikarit = new GameObject(Screen.Width * 2, Screen.Height * 2); 916 kiikarit.Image = kiikarikuva; 917 //kiikarit.Position = hahmo.Position; 918 hahmo.Add(kiikarit); 919 yokiikarit = true; 920 921 foreach (var palikka in GetObjectsWithTag("nakymaton")) 922 { 923 palikka.IsVisible = true; 924 } 925 } 926 else 927 { 928 kiikarit.Destroy(); 929 yokiikarit = false; 930 931 foreach (var palikka in GetObjectsWithTag("nakymaton")) 932 { 933 palikka.IsVisible = false; 934 } 935 } 806 936 807 937 } -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttu/toimintajuttu.csproj.Debug.cachefile
r5800 r5808 107 107 Content\kentta7.xnb 108 108 Content\kentta8.xnb 109 Content\yökiikarit.xnb 110 Content\spec ops vihu.xnb 111 Content\vihu hirttyy 2.xnb 112 Content\vihu hirttyy.xnb 113 Content\agent 47 power 2.xnb 114 Content\agent 47 power.xnb 115 Content\agent 47 power 3.xnb 116 Content\agent 47 power 4.xnb 109 117 Content\voittomusa.wma 110 118 Content\d&d2.wma -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/kentta1.txt
r5790 r5808 7 7 M 8 8 # 9 H H 9 # N99 99 # B #10 11 #4#9 H H 9 # 99 99 # B # 10 ## 4# ## 4# ## #4 4# #4 ####4###4####4###4#########44###4####4###########4#### 11 12 12 4 13 13 #4 … … 35 35 4 9 ### 36 36 # #4# 9 H ## # 37 37 N # 7 4 H H H H H H#4#4# H #### ## # 38 38 #####4########4########4####################### 39 39 444444444444 -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/kentta2.txt
r5800 r5808 11 11 ###### ## 12 12 # ######## ####### ##### ###### # ## ## #### 13 # ### ## ## ####### 14 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP # #### #### # #### ####### ## # # # # # # # ## ####### # # # # # # # # # # # # # # # # # # ############### ##################### #### 15 16 # 17 # #### 18 # # ####19 ### ### 20 # 21 # 22 ## 23 ## 24 # PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 25 ##26 # 13 # ### ## ## ####### B 14 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP # #### #### # #### ####### ## # # # # # # # ## ####### # # # # # # # # # # # # # # # # # # ############### ##################### #### ### #### ######################################### 15 16 # 17 # #### 18 # # 19 ### ### 20 # 21 # 22 ## 23 ## 24 # PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 25 ## 26 # 27 27 ### 28 28 29 29 30 30 ############# 31 #32 33 # 34 35 36 #37 31 Q 32 33 Q 34 35 36 Q 37 38 38 39 # 39 Q 40 40 41 #42 #43 #44 #41 Q 42 Q 43 Q 44 Q 45 45 46 46 47 #47 Q 48 48 49 N ##50 ###49 QQ 50 Q ## 51 51 52 52 ## 53 53 54 54 ## 55 55 56 57 56 58 # 57 59 ###### 58 59 60 ### 60 61 62 ### 61 63 62 63 64 64 # 65 66 65 67 P #### # 66 68 P ### # … … 68 70 ####### 69 71 70 # 71 # 72 # 73 74 # 75 76 ### 77 78 # 79 ### # 80 ### # 81 # 82 83 # 84 85 ## 86 # ## 87 ## ### 72 Q 73 Q 74 Q 75 76 QQ 77 78 Q ### 79 80 # 81 ### # 82 ### # 83 Q 84 85 Q 86 87 Q 88 89 QQ 90 QQ 91 ## QQQ 88 92 ## 89 PP ###90 ##91 ## ##92 ## N93 ####94 ### ## ##95 ## ## ##96 ### ## ####97 ## #### #####93 PP QQQ 94 ## 95 ## QQ 96 ## 97 N ## ## 98 ### ## ## 99 ## ## ## 100 ### ## #### 101 ## #### ##### 98 102 # ## ####### 99 103 4 100 ## 104 ## 7 101 105 ## 4 # # #### ### 102 106 ## H H ## # 103 ## # # # P####P ########### ## P # ## 107 ## # # # P####P ########### ## P # ## HHHHHH 104 108 ## N # # ## ## ######## ## # ########################## ## 105 109 4444444444444444444 # ######## ## ##### 106 110 ######## ##### 107 111 112 113 114 115 116 117 118 108 119 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/kentta3.txt
r5800 r5808 11 11 ## # H H ### # ## # 12 12 ### ############### P ## P# ## ## ### ## P # 13 ############ ######P # ## ####### ####### # ## # ### # ## # P # ### N#13 ############ ######P # ## ####### ####### # ## # ### # ## # P # ### # 14 14 # ## # ## #PPPPP# ### ## ########### # 15 15 ## ## ## # # # # … … 25 25 ###P # 26 26 # PPP## # 27 #P # 27 # # 28 # # 29 #P # 28 30 #P ## 29 31 # # P ### 30 32 # ##P #### 31 33 # ## ###### 32 # # ## 34 # # 35 # # 36 # # ## 33 37 # # ## 34 38 ## ##### ## 35 # # 39 # # 40 # # 41 # # 36 42 # P# 37 # ########### 38 # ## # 39 # # 43 # ######## 44 # ## # 45 # # 46 # # 47 # # 40 48 # # 41 49 ######### # 42 # # 50 # # 51 # # 52 # # 43 53 # # 44 # ##########PP 45 # # 54 # ########## 55 # # 56 # # 57 # # 46 58 # # 47 59 ############# # 48 # P # 60 # # 61 # # 62 # P # 49 63 # P # 50 # P #####64 # P ##### 51 65 # # # 52 66 # # # … … 56 70 # P # 57 71 ### # 58 # # 72 # # 73 # # 74 # # 59 75 # ##### 60 # # 61 # #P # 62 # # 63 ### PPPPPPPP# 76 # # 77 # # 78 # # 79 # ## # 80 # # 81 # # 82 # # 83 ### PPPPPP# 64 84 # # 65 85 # # 66 # ##P#86 # P#3 # 67 87 # # 68 # N69 # PPPP PP####PP########P##### P P B #70 # 88 # 89 # HHHHHH PP PP####PP########P##### P P B # 90 # N 7 #########PP######### ############################################# 71 91 ##################### -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/kentta4.txt
r5790 r5808 4 4 # 5 5 ## 6 ## 6 ## N 7 7 7 ############### 8 8 ## # ## 9 # # H H P J J ### 10 # P######PP############# ########## #### # 11 # ###### ######## ##### ### 12 # ### ### 13 ###### ### ### ###### 14 ## # ##### ## 15 ##########PP# ### ### ## 9 # # H HHH H P J J ### 10 # P######PP############# ########## #### # 11 # ###### ######## ##### ### 12 # ## 13 # 14 ### ### 15 ###### ### ### ###### 16 N ## # ##### ## 17 ##########PP# ### ### ## 16 18 # ## ######## # ############### 17 19 ############## ## ## ######## … … 21 23 22 24 23 25 5 24 26 25 27 … … 34 36 ############## #P# # ## PPP ######## # ## ######### # P ######## 35 37 # # ## #### # P ## ######## PP ### 36 PP######### # P P N### ######## P P PP P P PP37 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP # P ### P ### P ### ######## P PP P P P P##P PP ## ## 38 # P ## P P ############################################################################### # ## ## N #P #P #P #PP39 # ## P P #### ###### B #40 41 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP #############################38 PP######### # P P ### ######## P P PP P P PP 39 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP # P ### P ### P ### ######## P PP P P P P##P PP ## ## 40 # P ## P P ############################################################################### # ## ## N ###P ###P ###P ###PP 41 # ## P P #### ###### B # 42 43 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP ############################# -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/kentta5.txt
r5800 r5808 1 1 2 2 3 4 5 6 # 7 P # 8 P ## # # 9 P # # # # 10 P P PPP # PP # # # # 11 N # # # P # P # # P #PP PP# PPP ## # P # # # 12 ###### ####### ###### ###### P P ## PP##P # ###### ## ###### # ####### # # ###### # ## ### 13 ## ## ## 14 ## 15 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP ## 16 ## 17 ## 18 ## 19 P ## 20 # #### 21 ## # # # # #### 22 # ## # 23 ## ## # # # 24 3 4 5 6 # 7 # 8 Q # 9 Q Q Q # 10 P P PP # PP Q Q Q # 11 # # # P # P # # P ### PP### PP ## Q P Q Q # 12 ###### ####### ###### ###### P P ## PP###P # ###### ## ###### Q ####### Q Q ###### Q ###### 13 ## ## ## 14 Q ## 15 ## 16 Q ## 17 ## 18 Q ## 19 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP ## 20 ## 21 Q ## 22 ## 23 ## 24 Q ## 25 26 27 ## 28 ## 29 P ## 30 # #### 31 ## # Q Q Q #### 32 # ## Q 33 ## ## Q Q Q 34 35 36 25 37 26 38 PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 27 HHH P 28 ########################## 29 30 P P # # 31 P P # # B # 32 P P P ############# # # ##################################################### 33 P # ############# ## # 34 ## # # P P # 35 # # # P # P 36 ## # ## ## ## ######## ## 39 HHH P 40 ########################## 41 42 43 44 45 46 47 Q Q 48 # HHHHHHHH# Q Q B # 49 ############# Q Q ##################################################### 50 P Q ############# QQ Q 51 ## Q Q P Q 52 Q Q # P # N7 53 ## Q ## ## ## ######## ## -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/kentta6.txt
r5800 r5808 4 4 5 5 6 N 6 N 7 HHHHHHHHHH B 7 7 ########################################################################### -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/kentta7.txt
r5800 r5808 4 4 5 5 6 N HB6 N 7 H HHHHHHH B 7 7 ########################################################################### -
2014/koodauskerho/38/EmilK/toimintajuttu/toimintajuttu/toimintajuttuContent/toimintajuttuContent.contentproj
r5800 r5808 781 781 </Compile> 782 782 </ItemGroup> 783 <ItemGroup> 784 <Compile Include="yökiikarit.png"> 785 <Name>yökiikarit</Name> 786 <Importer>TextureImporter</Importer> 787 <Processor>TextureProcessor</Processor> 788 </Compile> 789 </ItemGroup> 790 <ItemGroup> 791 <Compile Include="spec ops vihu.png"> 792 <Name>spec ops vihu</Name> 793 <Importer>TextureImporter</Importer> 794 <Processor>TextureProcessor</Processor> 795 </Compile> 796 </ItemGroup> 797 <ItemGroup> 798 <Compile Include="vihu hirttyy 2.png"> 799 <Name>vihu hirttyy 2</Name> 800 <Importer>TextureImporter</Importer> 801 <Processor>TextureProcessor</Processor> 802 </Compile> 803 </ItemGroup> 804 <ItemGroup> 805 <Compile Include="vihu hirttyy.png"> 806 <Name>vihu hirttyy</Name> 807 <Importer>TextureImporter</Importer> 808 <Processor>TextureProcessor</Processor> 809 </Compile> 810 </ItemGroup> 811 <ItemGroup> 812 <Compile Include="agent 47 power 2.png"> 813 <Name>agent 47 power 2</Name> 814 <Importer>TextureImporter</Importer> 815 <Processor>TextureProcessor</Processor> 816 </Compile> 817 </ItemGroup> 818 <ItemGroup> 819 <Compile Include="agent 47 power.png"> 820 <Name>agent 47 power</Name> 821 <Importer>TextureImporter</Importer> 822 <Processor>TextureProcessor</Processor> 823 </Compile> 824 </ItemGroup> 825 <ItemGroup> 826 <Compile Include="agent 47 power 3.png"> 827 <Name>agent 47 power 3</Name> 828 <Importer>TextureImporter</Importer> 829 <Processor>TextureProcessor</Processor> 830 </Compile> 831 </ItemGroup> 832 <ItemGroup> 833 <Compile Include="agent 47 power 4.png"> 834 <Name>agent 47 power 4</Name> 835 <Importer>TextureImporter</Importer> 836 <Processor>TextureProcessor</Processor> 837 </Compile> 838 </ItemGroup> 783 839 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 784 840 <!-- 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.