- Timestamp:
- 2011-06-30 14:19:32 (12 years ago)
- Location:
- 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs
r2358 r2360 34 34 titleMenu.Add(exitGameButton); 35 35 36 //Starts playing the title screen music, which is set to repeat (which is unnecessary though - who would want to stare at an inanimate screen for 4 minutes?) 36 37 MediaPlayer.Play("Sounds/TitleScreenMusic"); 37 38 MediaPlayer.Volume = 1.0; -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Weapons.cs
r2354 r2360 15 15 AmmoIgnoresGravity = true; 16 16 InfiniteAmmo = true; 17 Power.DefaultValue = 1000;17 Power.DefaultValue = 800; 18 18 TimeBetweenUse = TimeSpan.FromSeconds(0.4); 19 19 } … … 36 36 } 37 37 } 38 39 public class Rifle : Weapon 40 { 41 public Rifle(double width, double height) 42 : base(width, height) 43 { 44 Image = Game.LoadImage("Images/gaussrifle"); 45 AttackSound = Game.LoadSoundEffect("Sounds/assaultrifleshot"); 46 AmmoIgnoresGravity = true; 47 InfiniteAmmo = true; 48 Power.DefaultValue = 1000; 49 } 50 51 protected override PhysicsObject CreateProjectileRifle() 52 { 53 Projectile proj2 = new Projectile(1, 1.5, Color.DarkGray); 54 proj2.CollisionIgnoreGroup = 1; 55 return proj2; 56 } 57 58 public int firePower() 59 { 60 return 15; 61 } 62 63 public string namer() 64 { 65 return "Rifle"; 66 } 67 } -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372Content/Rogue Agent 2372Content.contentproj
r2286 r2360 115 115 </Compile> 116 116 </ItemGroup> 117 <ItemGroup> 118 <Compile Include="Sounds\assaultrifleshot.wav"> 119 <Name>assaultrifleshot</Name> 120 <Importer>WavImporter</Importer> 121 <Processor>SoundEffectProcessor</Processor> 122 </Compile> 123 <Compile Include="Sounds\lasercannonshot.wav"> 124 <Name>lasercannonshot</Name> 125 <Importer>WavImporter</Importer> 126 <Processor>SoundEffectProcessor</Processor> 127 </Compile> 128 </ItemGroup> 117 129 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 118 130 <!-- 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.