Changeset 2360 for 2011


Ignore:
Timestamp:
2011-06-30 14:19:32 (8 years ago)
Author:
jaollipa
Message:
 
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  
    3434        titleMenu.Add(exitGameButton); 
    3535 
     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?) 
    3637        MediaPlayer.Play("Sounds/TitleScreenMusic"); 
    3738        MediaPlayer.Volume = 1.0; 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Weapons.cs

    r2354 r2360  
    1515        AmmoIgnoresGravity = true; 
    1616        InfiniteAmmo = true; 
    17         Power.DefaultValue = 1000; 
     17        Power.DefaultValue = 800; 
    1818        TimeBetweenUse = TimeSpan.FromSeconds(0.4); 
    1919    } 
     
    3636    } 
    3737} 
     38 
     39public 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  
    115115    </Compile> 
    116116  </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> 
    117129  <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> 
    118130  <!--  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.