- Timestamp:
- 2012-07-25 10:35:58 (11 years ago)
- Location:
- 2012/30/TapaniS
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/30/TapaniS/The Slayer task Marsu/The Slayer task Marsu/The Slayer task Marsu/The_Slayer_task_Marsu.cs
r3737 r3740 11 11 PlatformCharacter pelaaja; 12 12 Image pelaajanKuva = LoadImage("ok"); 13 PlatformCharacter2 vihu;13 14 14 Image vihunKuva = LoadImage("Marsuvihu1"); 15 16 15 17 16 18 … … 34 36 ruudut.SetTileMethod(Color.LimeGreen, LuoKukka); 35 37 36 ruudut.Execute(2 0, 20);38 ruudut.Execute(22, 20); 37 39 Level.CreateBorders(); 38 40 AsetaOhjaimet(); … … 112 114 void LuoPelaaja(Vector paikka, double leveys, double korkeus) 113 115 { 116 114 117 pelaaja = new PlatformCharacter(30, 50); 115 118 pelaaja.Position = paikka; 116 119 Add(pelaaja); 117 120 pelaaja.Image = pelaajanKuva; 121 pelaaja.Tag = "pelaaja"; 118 122 AssaultRifle ase = new AssaultRifle(10, 10); 119 123 pelaaja.Weapon = ase; … … 123 127 void LuoVihollinen(Vector paikka, double leveys, double korkeus) 124 128 { 125 vihu = new PlatformCharacter2(30, 50); 129 PlatformCharacter vihu = new PlatformCharacter(25, 40); 130 vihu.Tag = "vihu"; 126 131 vihu.Position = paikka; 127 Add( pelaaja);132 Add(vihu); 128 133 vihu.Image = vihunKuva; 129 134 PlatformWandererBrain seuraajanAivot = new PlatformWandererBrain(); 135 seuraajanAivot.TriesToJump = true; 136 seuraajanAivot.FallsOffPlatforms = true; 137 vihu.Brain = seuraajanAivot; 138 seuraajanAivot.Active = true; 130 139 131 140 } … … 152 161 { 153 162 PhysicsObject ammus = ase.Shoot(); 154 ase.FireRate = 1.0;163 ase.FireRate = 2.0; 155 164 ase.AmmoIgnoresGravity = false; 156 165 ase.Ammo.Value = 50; -
2012/30/TapaniS/The Slayer task Marsu/The Slayer task Marsu/The Slayer task MarsuContent/The Slayer task MarsuContent.contentproj
r3737 r3740 45 45 </ItemGroup> 46 46 <ItemGroup> 47 <Compile Include="Kentta.png">48 <Name>Kentta</Name>49 <Importer>TextureImporter</Importer>50 <Processor>TextureProcessor</Processor>51 </Compile>52 </ItemGroup>53 <ItemGroup>54 47 <Compile Include="ok.png"> 55 48 <Name>ok</Name> … … 65 58 </Compile> 66 59 </ItemGroup> 60 <ItemGroup> 61 <Compile Include="Kentta.png"> 62 <Name>Kentta</Name> 63 <Importer>TextureImporter</Importer> 64 <Processor>TextureProcessor</Processor> 65 </Compile> 66 </ItemGroup> 67 <ItemGroup> 68 <Compile Include="Marsuvihu2.png"> 69 <Name>Marsuvihu2</Name> 70 <Importer>TextureImporter</Importer> 71 <Processor>TextureProcessor</Processor> 72 </Compile> 73 </ItemGroup> 67 74 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 68 75 <!-- 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.