Changeset 5460 for 2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken
- Timestamp:
- 2014-07-04 13:17:29 (7 years ago)
- Location:
- 2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken
- Files:
-
- 45 added
- 12 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken.cs
r5378 r5460 9 9 public class AttackOfTheChicken : PhysicsGame { 10 10 11 int screen = 1;11 int screen = 0; 12 12 13 13 PlatformCharacter player; 14 14 15 PlatformCharacter chicken; 15 IntMeter scoreInt = new IntMeter(0); 16 Timer pTimer; 16 17 17 18 PhysicsObject stone; … … 28 29 public override void Begin() { 29 30 31 ClearAll(); 32 SetWindowSize(1280, 760); 33 30 34 switch (screen) { 31 35 case 0: 32 36 MainMenu(); 37 38 KeyInput(); 33 39 break; 34 40 case 1: 35 41 CreateLevel(); 36 42 LoadBackground(); 37 CreatePowerUp();38 43 StartSpawnTimer(); 44 startPointTimer(); 45 scoreInt.Value = 0; 39 46 40 47 KeyInput(); … … 43 50 Camera.Zoom(1); 44 51 Camera.StayInLevel = true; 45 SetWindowSize(1280, 760); 52 46 53 47 54 Gravity = new Vector(0, -2500.0); … … 52 59 } 53 60 61 PlayMusic(); 62 54 63 SmoothTextures = false; 64 } 65 66 /// 67 /// <summary> 68 /// Music 69 /// <summmary> 70 /// 71 72 void PlayMusic() { 73 if (screen == 0) { 74 MediaPlayer.Play("Sounds\\MainMenuTheme"); 75 MediaPlayer.IsRepeating = true; 76 } 77 else if (screen == 1) { 78 MediaPlayer.Play("Sounds\\LevelMusic"); 79 MediaPlayer.IsRepeating = true; 80 } 81 } 82 83 /// 84 /// <summary> 85 /// Changing Levels 86 /// <summmary> 87 /// 88 89 void ChangeLevel(int lvl) { 90 screen = lvl; 91 Begin(); 55 92 } 56 93 … … 63 100 void MainMenu() { 64 101 Level.Background.Color = Color.Black; 102 103 GameObject mainMenuImg = new GameObject(640, 480); 104 mainMenuImg.X -= 50; 105 mainMenuImg.Image = LoadImage("Sprites\\MainMenu"); 106 107 Add(mainMenuImg); 65 108 } 66 109 … … 69 112 /// Creating the Level and all it's assets 70 113 /// </summary> 71 /// 114 /// 115 116 void startPointTimer() { 117 Label scoreDisp = new Label(); 118 scoreDisp.Position = new Vector(-550.0, 350.0); 119 scoreDisp.BindTo(scoreInt); 120 Add(scoreDisp); 121 122 pTimer = new Timer(); 123 pTimer.Interval = 5.0; 124 pTimer.Timeout += CreatePoint; 125 pTimer.Start(); 126 } 127 128 void CreatePoint() { 129 Vector[] whereSpawn = {new Vector(-208, -245), new Vector(208, -245), new Vector(208, -22), new Vector (-208, -22), new Vector(0, 74), new Vector(0, -150)}; 130 131 PhysicsObject points = new PhysicsObject(16.0, 16.0); 132 points.Image = LoadImage("Sprites\\Points"); 133 points.IgnoresExplosions = true; 134 points.IgnoresGravity = true; 135 points.IgnoresPhysicsLogics = true; 136 points.CollisionIgnoreGroup = 1; 137 points.MakeStatic(); 138 points.MaximumLifetime = new TimeSpan(0, 0, 5); 139 points.Position = whereSpawn[RandomGen.NextInt(0, 6)]; 140 AddCollisionHandler(points, player, addScore); 141 Add(points); 142 } 143 144 void addScore(PhysicsObject score, PlatformCharacter playa) { 145 scoreInt.Value += 10; 146 score.Destroy(); 147 148 SoundEffect pointFX = LoadSoundEffect("Sounds\\Point"); 149 pointFX.Play(); 150 } 72 151 73 152 void CreateLevel() { … … 92 171 stone.Image = LoadImage("Sprites\\Stone"); 93 172 stone.Position = place; 173 stone.Tag = "stone"; 94 174 Add(stone); 95 175 } … … 99 179 lava.Image = LoadImage("Sprites\\Lava"); 100 180 lava.Position = place - new Vector(0.0, 14.0); 181 lava.Tag = "laava"; 101 182 Add(lava); 102 183 } … … 106 187 player.Image = LoadImage("Sprites\\PlayerStand"); 107 188 player.Position = place; 189 player.Tag = "player"; 108 190 player.IgnoresExplosions = true; 109 191 Add(player); … … 117 199 player.Weapon.ProjectileCollision = HitByGun; 118 200 player.Weapon.AttackSound = LoadSoundEffect("Sounds\\Gun"); 119 } 201 202 203 AddCollisionHandler(player, "enemie", CollisionWithChicken); 204 AddCollisionHandler(player, "laava", GameEnded); 205 } 206 207 208 120 209 121 210 void StartSpawnTimer() { 122 211 sTimer = new Timer(); 123 sTimer.Interval = 10.0;212 sTimer.Interval = 2.0; 124 213 sTimer.Timeout += CreateChicken; 125 214 sTimer.Start(); … … 127 216 128 217 void CreateChicken() { 129 int bigOrSmall = RandomGen.NextInt(0, 2); 130 131 if (bigOrSmall == 1) 132 { 133 chicken = new PlatformCharacter(64.0, 64.0); 134 chicken.Image = LoadImage("Sprites\\EvilChicken"); 218 219 int bigOrSmall = RandomGen.NextInt(0, 5); 220 221 ChickenCharacter chicken; 222 223 if (bigOrSmall == 1) { 224 int chickenLife = 4; 225 chicken = new ChickenCharacter(64.0, 44.0, chickenLife); 135 226 } else { 136 chicken = new PlatformCharacter(32.0, 32.0); 137 chicken.Image = LoadImage("Sprites\\EvilChicken"); 138 139 140 } 227 int chickenLife = 1; 228 chicken = new ChickenCharacter(32.0, 22.0, chickenLife); 229 } 230 231 AddCollisionHandler(chicken, "laava", GameEnded); 232 233 chicken.Image = LoadImage("Sprites\\EvilChicken"); 141 234 chicken.Position = new Vector(0, Level.Top); 235 chicken.Tag = "enemie"; 236 chicken.CollisionIgnoreGroup = 1; 142 237 143 238 PlatformWandererBrain chickenAI = new PlatformWandererBrain(); 144 239 chickenAI.Speed = 100; 145 240 chickenAI.FallsOffPlatforms = true; 241 chickenAI.Direction = RandomGen.NextDirection(); 146 242 chicken.Brain = chickenAI; 147 243 Add(chicken); … … 151 247 Bullet bullet = new Bullet(1); 152 248 bullet.Size = new Vector(4, 2); 153 switch (weapon) 154 { 249 switch (weapon) { 155 250 case 0: 156 251 // Pistol … … 179 274 } 180 275 181 void CreatePowerUp() { 182 PhysicsObject machinePowerUp = new PhysicsObject(16.0, 16.0); 183 machinePowerUp.Image = LoadImage("Sprites\\MachineGunPowerUp"); 184 machinePowerUp.IgnoresExplosions = true; 185 machinePowerUp.MaximumLifetime = new TimeSpan(0, 0, 5); 186 machinePowerUp.X = player.X + 40; 187 machinePowerUp.Y = player.Y; 188 AddCollisionHandler(machinePowerUp, player, MachineGunPowerUp); 189 Add(machinePowerUp); 190 191 PhysicsObject lazerPowerUp = new PhysicsObject(16.0, 16.0); 192 lazerPowerUp.Image = LoadImage("Sprites\\LazerGunPowerUp"); 193 lazerPowerUp.IgnoresExplosions = true; 194 lazerPowerUp.MaximumLifetime = new TimeSpan(0, 0, 5); 195 lazerPowerUp.X = player.X + 80; 196 lazerPowerUp.Y = player.Y; 197 AddCollisionHandler(lazerPowerUp, player, LazerPowerUp); 198 Add(lazerPowerUp); 276 void CreatePowerUp(int pwu, double x, double y) { 277 if (pwu == 0) { 278 PhysicsObject machinePowerUp = new PhysicsObject(16.0, 16.0); 279 machinePowerUp.Image = LoadImage("Sprites\\MachineGunPowerUp"); 280 machinePowerUp.IgnoresExplosions = true; 281 machinePowerUp.MaximumLifetime = new TimeSpan(0, 0, 5); 282 machinePowerUp.X = x; 283 machinePowerUp.Y = y; 284 AddCollisionHandler(machinePowerUp, player, MachineGunPowerUp); 285 Add(machinePowerUp); 286 } else { 287 PhysicsObject lazerPowerUp = new PhysicsObject(16.0, 16.0); 288 lazerPowerUp.Image = LoadImage("Sprites\\LazerGunPowerUp"); 289 lazerPowerUp.IgnoresExplosions = true; 290 lazerPowerUp.MaximumLifetime = new TimeSpan(0, 0, 5); 291 lazerPowerUp.X = x; 292 lazerPowerUp.Y = y; 293 AddCollisionHandler(lazerPowerUp, player, LazerPowerUp); 294 Add(lazerPowerUp); 295 } 199 296 } 200 297 … … 227 324 228 325 void HitByGun(PhysicsObject ammo, PhysicsObject target) { 229 if (weapon != 2 || target == stone) {326 if (weapon != 2 || target.Tag == "stone") { 230 327 ammo.Destroy(); 328 } 329 330 if (target.Tag == "enemie") { 331 ((ChickenCharacter)target).Health.Value -= 1; 332 SoundEffect hitFX = LoadSoundEffect("Sounds\\BigEnemyFall"); 333 hitFX.Play(); 334 int drop = 0; 335 if (((ChickenCharacter)target).Health.Value < 1) { 336 drop = RandomGen.NextInt(0, 10); 337 if (drop >= 7) { 338 if (drop >= 8) { 339 CreatePowerUp(0, ((ChickenCharacter)target).X, ((ChickenCharacter)target).Y); 340 } 341 else { 342 CreatePowerUp(1, ((ChickenCharacter)target).X, ((ChickenCharacter)target).Y); 343 } 344 } 345 } 231 346 } 232 347 … … 261 376 /// 262 377 ///<summary> 378 /// Player's Death 379 ///<summary> 380 /// 381 382 void CollisionWithChicken(PhysicsObject p, PhysicsObject kohde) { 383 if (kohde.Tag.Equals("enemie")) { 384 screen = 0; 385 Begin(); 386 } 387 } 388 389 void GameEnded(PhysicsObject p, PhysicsObject kohde) 390 { 391 if (kohde.Tag.Equals("laava")) 392 { 393 screen = 0; 394 Begin(); 395 } 396 } 397 398 /// 399 ///<summary> 263 400 /// Keyboard Input and Pausing 264 401 ///<summary> … … 266 403 267 404 void PauseGame() { 268 if (IsPaused) 269 { 405 if (IsPaused) { 270 406 IsPaused = false; 271 407 } … … 276 412 277 413 void KeyInput() { 278 // Keyboard Controls 279 Keyboard.Listen(Key.Right, ButtonState.Down, MovePlayer, "Key Right down", 300.0); 280 Keyboard.Listen(Key.Left, ButtonState.Down, MovePlayer, "Key Right down", -300.0); 281 Keyboard.Listen(Key.Space, ButtonState.Pressed, PlayerJump, "Key Space pressed", 1200.0); 282 Keyboard.Listen(Key.A, ButtonState.Down, PlayerShoot, "Key A down", player); 283 284 // Pause Game 285 Keyboard.Listen(Key.P, ButtonState.Pressed, PauseGame, "Key P pressed"); 414 415 if (screen == 0) { 416 Keyboard.Listen(Key.Space, ButtonState.Pressed, ChangeLevel, "Key Space pressed", 1); 417 } 418 else if (screen == 1) 419 { 420 // Keyboard Controls 421 Keyboard.Listen(Key.Right, ButtonState.Down, MovePlayer, "Key Right down", 300.0); 422 Keyboard.Listen(Key.Left, ButtonState.Down, MovePlayer, "Key Right down", -300.0); 423 Keyboard.Listen(Key.Space, ButtonState.Pressed, PlayerJump, "Key Space pressed", 1200.0); 424 Keyboard.Listen(Key.A, ButtonState.Down, PlayerShoot, "Key A down", player); 425 426 427 // Pause Game 428 Keyboard.Listen(Key.P, ButtonState.Pressed, PauseGame, "Key P pressed"); 429 } else { 430 431 } 286 432 287 433 // Close Window -
2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken.csproj
r5249 r5460 111 111 </ItemGroup> 112 112 <ItemGroup> 113 <Compile Include="ChickenCharacter.cs" /> 113 114 <Compile Include="Ohjelma.cs" /> 114 115 <Compile Include="AttackOfTheChicken.cs" /> -
2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken.csproj.Debug.cachefile
r5378 r5460 5 5 Content\Sprites\Bullet.xnb 6 6 Content\Sprites\Stone.xnb 7 Content\Sounds\Jump.xnb8 7 Content\Sounds\LaserShoot.xnb 9 8 Content\Sounds\BigEnemyFall.xnb … … 13 12 Content\Sprites\MachineGunPowerUp.xnb 14 13 Content\Sounds\Powerup.xnb 15 Content\Sounds\Gun.xnb16 14 Content\Sounds\LevelMusic.xnb 17 15 Content\Sprites\Lava.xnb 16 Content\Sprites\MainMenu.xnb 17 Content\Sprites\Points.xnb 18 Content\Sounds\Point.xnb 19 Content\Sounds\Gun.xnb 18 20 Content\Sounds\MainMenuTheme.wma 19 21 Content\Sounds\LevelMusic.wma -
2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken/obj/x86/Debug/AttackOfTheChicken.csproj.FileListAbsolute.txt
r5378 r5460 13 13 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\Bullet.xnb 14 14 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\Stone.xnb 15 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Jump.xnb16 15 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\LaserShoot.xnb 17 16 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\BigEnemyFall.xnb … … 22 21 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\MachineGunPowerUp.xnb 23 22 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Powerup.xnb 24 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Gun.xnb25 23 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\LevelMusic.xnb 26 24 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\LevelMusic.wma 27 25 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\Lava.xnb 26 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\MainMenu.xnb 27 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\Points.xnb 28 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Point.xnb 29 C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Gun.xnb -
2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken/obj/x86/Debug/ContentPipeline-{CB1AE7A0-EDB1-46B3-96C0-574F1CF28377}.xml
r5378 r5460 9 9 <Options>None</Options> 10 10 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\EvilChicken.xnb</Output> 11 <Time>2014-07-0 3T14:55:33.9176729+03:00</Time>11 <Time>2014-07-04T09:49:05.0611407+03:00</Time> 12 12 </Item> 13 13 <Item> … … 57 57 </Item> 58 58 <Item> 59 <Source>Sounds\Jump.wav</Source>60 <Name>Sounds\Jump</Name>61 <Importer>WavImporter</Importer>62 <Processor>SoundEffectProcessor</Processor>63 <Options>None</Options>64 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Jump.xnb</Output>65 <Time>2014-07-03T09:34:22.9732649+03:00</Time>66 </Item>67 <Item>68 59 <Source>Sounds\LaserShoot.wav</Source> 69 60 <Name>Sounds\LaserShoot</Name> … … 72 63 <Options>None</Options> 73 64 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\LaserShoot.xnb</Output> 74 <Time>2014-07-0 3T12:46:43.793372+03:00</Time>65 <Time>2014-07-04T12:20:51.7265406+03:00</Time> 75 66 </Item> 76 67 <Item> … … 130 121 </Item> 131 122 <Item> 132 <Source>Sounds\Gun.wav</Source>133 <Name>Sounds\Gun</Name>134 <Importer>WavImporter</Importer>135 <Processor>SoundEffectProcessor</Processor>136 <Options>None</Options>137 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Gun.xnb</Output>138 <Time>2014-07-03T12:44:26.0736014+03:00</Time>139 </Item>140 <Item>141 123 <Source>Sounds\LevelMusic.mp3</Source> 142 124 <Name>Sounds\LevelMusic</Name> … … 156 138 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\Lava.xnb</Output> 157 139 <Time>2014-07-03T13:30:12.5465588+03:00</Time> 140 </Item> 141 <Item> 142 <Source>Sprites\MainMenu.png</Source> 143 <Name>Sprites\MainMenu</Name> 144 <Importer>TextureImporter</Importer> 145 <Processor>TextureProcessor</Processor> 146 <Options>None</Options> 147 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\MainMenu.xnb</Output> 148 <Time>2014-07-04T13:07:43.5552519+03:00</Time> 149 </Item> 150 <Item> 151 <Source>Sprites\Points.png</Source> 152 <Name>Sprites\Points</Name> 153 <Importer>TextureImporter</Importer> 154 <Processor>TextureProcessor</Processor> 155 <Options>None</Options> 156 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sprites\Points.xnb</Output> 157 <Time>2014-07-04T11:02:01.0544925+03:00</Time> 158 </Item> 159 <Item> 160 <Source>Sounds\Point.wav</Source> 161 <Name>Sounds\Point</Name> 162 <Importer>WavImporter</Importer> 163 <Processor>SoundEffectProcessor</Processor> 164 <Options>None</Options> 165 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Point.xnb</Output> 166 <Time>2014-07-04T11:02:01.0534924+03:00</Time> 167 </Item> 168 <Item> 169 <Source>Sounds\Gun.wav</Source> 170 <Name>Sounds\Gun</Name> 171 <Importer>WavImporter</Importer> 172 <Processor>SoundEffectProcessor</Processor> 173 <Options>None</Options> 174 <Output>C:\MyTemp\BenjaminE\AttackOfTheChicken\AttackOfTheChicken\AttackOfTheChicken\bin\x86\Debug\Content\Sounds\Gun.xnb</Output> 175 <Time>2014-07-04T12:20:41.3545035+03:00</Time> 158 176 </Item> 159 177 <BuildSuccessful>true</BuildSuccessful> -
2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChicken/obj/x86/Debug/cachefile-{CB1AE7A0-EDB1-46B3-96C0-574F1CF28377}-targetpath.txt
r5378 r5460 5 5 Content\Sprites\Bullet.xnb 6 6 Content\Sprites\Stone.xnb 7 Content\Sounds\Jump.xnb8 7 Content\Sounds\LaserShoot.xnb 9 8 Content\Sounds\BigEnemyFall.xnb … … 14 13 Content\Sprites\MachineGunPowerUp.xnb 15 14 Content\Sounds\Powerup.xnb 16 Content\Sounds\Gun.xnb17 15 Content\Sounds\LevelMusic.xnb 18 16 Content\Sounds\LevelMusic.wma 19 17 Content\Sprites\Lava.xnb 18 Content\Sprites\MainMenu.xnb 19 Content\Sprites\Points.xnb 20 Content\Sounds\Point.xnb 21 Content\Sounds\Gun.xnb -
2014/27/BenjaminE/AttackOfTheChicken/AttackOfTheChicken/AttackOfTheChickenContent/AttackOfTheChickenContent.contentproj
r5378 r5460 88 88 </ItemGroup> 89 89 <ItemGroup> 90 <Compile Include="Sounds\Jump.wav">91 <Name>Jump</Name>92 <Importer>WavImporter</Importer>93 <Processor>SoundEffectProcessor</Processor>94 </Compile>95 </ItemGroup>96 <ItemGroup>97 90 <Compile Include="Sounds\BigEnemyFall.wav"> 98 91 <Name>BigEnemyFall</Name> … … 142 135 </ItemGroup> 143 136 <ItemGroup> 144 <Compile Include="Sounds\Gun.wav">145 <Name>Gun</Name>146 <Importer>WavImporter</Importer>147 <Processor>SoundEffectProcessor</Processor>148 </Compile>149 </ItemGroup>150 <ItemGroup>151 137 <Compile Include="Sounds\LaserShoot.wav"> 152 138 <Name>LaserShoot</Name> … … 162 148 </Compile> 163 149 </ItemGroup> 150 <ItemGroup> 151 <Compile Include="Sprites\MainMenu.png"> 152 <Name>MainMenu</Name> 153 <Importer>TextureImporter</Importer> 154 <Processor>TextureProcessor</Processor> 155 </Compile> 156 </ItemGroup> 157 <ItemGroup> 158 <Compile Include="Sounds\Point.wav"> 159 <Name>Point</Name> 160 <Importer>WavImporter</Importer> 161 <Processor>SoundEffectProcessor</Processor> 162 </Compile> 163 <Compile Include="Sprites\Points.png"> 164 <Name>Points</Name> 165 <Importer>TextureImporter</Importer> 166 <Processor>TextureProcessor</Processor> 167 </Compile> 168 </ItemGroup> 169 <ItemGroup> 170 <Compile Include="Sounds\Gun.wav"> 171 <Name>Gun</Name> 172 <Importer>WavImporter</Importer> 173 <Processor>SoundEffectProcessor</Processor> 174 </Compile> 175 </ItemGroup> 164 176 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 165 177 <!-- 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.