Changeset 2576
- Timestamp:
- 2011-08-05 10:36:28 (12 years ago)
- Location:
- 2011/31/JereK/Serades/Serades
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/31/JereK/Serades/Serades/Serades/Peli.cs
r2549 r2576 24 24 Image pomonkuva = LoadImage("boss"); 25 25 Image taustaKuva = LoadImage("kartta7"); 26 Image plasmakuva = LoadImage("plasma33"); 26 27 27 28 … … 49 50 Valikko(); 50 51 } 52 51 53 52 54 void Valikko() … … 118 120 void LuoAlus() 119 121 { 122 MediaPlayer.Play("musiikki1"); 120 123 pelaaja1 = new PhysicsObject(50, 80); 121 124 pelaaja1.Tag = "pelaaja"; … … 124 127 pelaaja1.Image = olionkuva; 125 128 pelaaja1Pyssy = new LaserGun(20, 5); 129 pelaaja1Pyssy.AttackSound = null; 130 126 131 pelaaja1Pyssy.ProjectileCollision = LaserSadeOsuu; 127 132 pelaaja1Pyssy.InfiniteAmmo = true; … … 132 137 pelaaja1Pyssy.IsVisible = false; 133 138 pelaaja1Pyssy2 = new PlasmaCannon(20, 5); 134 139 pelaaja1Pyssy2.AttackSound = null; 135 140 pelaaja1.Add(pelaaja1Pyssy2); 136 141 pelaaja1Pyssy2.IsVisible = false; … … 146 151 pelaaja2.Image = oliokuva; 147 152 pelaaja2Pyssy = new LaserGun(20, 5); 153 pelaaja2Pyssy.AttackSound = null; 148 154 pelaaja2Pyssy.ProjectileCollision = LaserSadeOsuu; 149 155 pelaaja2Pyssy.InfiniteAmmo = true; … … 155 161 pelaaja2Pyssy.IsVisible = false; 156 162 pelaaja2Pyssy2 = new PlasmaCannon(20, 5); 163 pelaaja2Pyssy2.AttackSound = null; 157 164 pelaaja2.Add(pelaaja2Pyssy2); 158 165 pelaaja2Pyssy2.IsVisible = false; … … 164 171 taso++; 165 172 166 if (taso < 6)173 if (taso < 2) 167 174 { 168 175 MessageDisplay.Add("~Seuraava aalto alkaa!!"); … … 188 195 Pomo.Y = 300; 189 196 Pomo.Tag = "vihollinen"; 197 Pomo.Destroyed += new Action(Pomo_Destroyed); 190 198 191 199 TagFollowerBrain seuraajanAivot = new TagFollowerBrain("pelaaja", 2000); … … 215 223 } 216 224 225 void Pomo_Destroyed() 226 { 227 Label m = new Label("HGjh"); 228 Add(m); 229 } 230 217 231 void PomoKaantyy(PhysicsObject pomo) 218 232 { … … 222 236 void PomoAmpuu(Weapon ase) 223 237 { 224 ase.Shoot(); 238 PhysicsObject ammus = ase.Shoot(); 239 if (ammus != null) 240 { 241 ammus.Image = plasmakuva; 242 ammus.Size *= 5; 243 } 225 244 } 226 245 … … 288 307 289 308 if (kohde.Tag.ToString() == "vihollinen") 309 290 310 { 291 311 Alus alus = (Alus)kohde; … … 302 322 } 303 323 } 324 325 304 326 } 305 } 327 328 } 329 330 306 331 307 332 void Kaasu(PhysicsObject alus) -
2011/31/JereK/Serades/Serades/SeradesContent/SeradesContent.contentproj
r2549 r2576 135 135 </Compile> 136 136 </ItemGroup> 137 <ItemGroup> 138 <Compile Include="musiikki1.mp3"> 139 <Name>musiikki1</Name> 140 <Importer>Mp3Importer</Importer> 141 <Processor>SongProcessor</Processor> 142 </Compile> 143 </ItemGroup> 144 <ItemGroup> 145 <Compile Include="plasma33.png"> 146 <Name>plasma33</Name> 147 <Importer>TextureImporter</Importer> 148 <Processor>TextureProcessor</Processor> 149 </Compile> 150 </ItemGroup> 137 151 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 138 152 <!-- 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.