- Timestamp:
- 2011-06-29 12:33:24 (12 years ago)
- Location:
- 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372
- Files:
-
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/GenWeapon.cs
r2268 r2276 5 5 using Jypeli.Effects; 6 6 using Jypeli.Widgets; 7 using Weapons;8 7 9 8 public class GenWeapon … … 17 16 18 17 private void loadWeapon(string weaponName) 19 { 20 18 { 19 //weapon = Pistol(); 21 20 } 22 21 … … 29 28 struct Weapon 30 29 { 31 int reloadTime;32 int firingInterval;33 string name;34 Image weaponImage;35 Image bulletImage;36 SoundEffect sound;30 private int reloadTime; 31 private int firingInterval; 32 private string name; 33 private Image weaponImage; 34 private Image bulletImage; 35 private SoundEffect sound; 37 36 38 37 Weapon(int _reloadTime, int _firingInterval, string weaponName, 39 38 string weaponImgPath, string bulletImgPath, string soundEffectPath) 40 39 { 41 reloadTime = _reloadTime;42 firingInterval = _firingInterval;43 name = weaponName;44 weaponImage = Game.LoadImage(weaponImgPath);45 bulletImage = Game.LoadImage(bulletImgPath);46 sound = Game.LoadSoundEffect(soundEffectPath);40 this.reloadTime = _reloadTime; 41 this.firingInterval = _firingInterval; 42 this.name = weaponName; 43 this.weaponImage = Game.LoadImage(weaponImgPath); 44 this.bulletImage = Game.LoadImage(bulletImgPath); 45 this.sound = Game.LoadSoundEffect(soundEffectPath); 47 46 } 48 47 } -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs
r2261 r2276 18 18 19 19 createLevel(); 20 21 //MediaPlayer.Play("SuperMetroidCrateriaSurface.wma"); 20 22 21 23 Camera.Follow(player); -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs
r2261 r2276 11 11 const int jumpSpeed = 1000; 12 12 Image portrait = Game.LoadImage("Images/character"); 13 SoundEffect walking = Game.LoadSoundEffect("Sounds/pistolshot"); 13 14 14 15 public Player(double width, double height, Shape shape) … … 31 32 this.Walk(speed); 32 33 //this.Image = Image.Mirror(portrait); 34 33 35 } 34 36 … … 37 39 this.Walk(-speed); 38 40 this.Image = Image.Mirror(portrait); 41 this.walking.Play(); 39 42 } 40 43 -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Weapons.cs
r2268 r2276 18 18 * Each struct shall follow these specifications*/ 19 19 20 namespaceWeapons20 public static class Weapons 21 21 { 22 public Weapon Pistol()22 /*public static Weapon Pistol() 23 23 { 24 returnnew Weapon(24 Weapon weapon = new Weapon( 25 25 0, 26 26 0, 27 27 "pistol", 28 28 "Images/gausspistol", 29 "" 30 "Sounds/pistolshot") 31 } 29 "", 30 "Sounds/pistolshot"); 31 }*/ 32 32 } -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372Content/Rogue Agent 2372Content.contentproj
r2261 r2276 85 85 </ItemGroup> 86 86 <ItemGroup> 87 <Folder Include="Sounds\" /> 87 <Compile Include="Sounds\Super Metroid Brinstar 2.wma"> 88 <Name>Super Metroid Brinstar 2</Name> 89 <Importer>WmaImporter</Importer> 90 <Processor>SongProcessor</Processor> 91 </Compile> 92 <Compile Include="Sounds\SuperMetroidCrateriaSurface.wma"> 93 <Name>SuperMetroidCrateriaSurface</Name> 94 <Importer>WmaImporter</Importer> 95 <Processor>SongProcessor</Processor> 96 </Compile> 97 <Compile Include="Sounds\Super Metroid Norfair 2.wma"> 98 <Name>Super Metroid Norfair 2</Name> 99 <Importer>WmaImporter</Importer> 100 <Processor>SongProcessor</Processor> 101 </Compile> 102 </ItemGroup> 103 <ItemGroup> 104 <Compile Include="Sounds\pistolshot.wav"> 105 <Name>pistolshot</Name> 106 <Importer>WavImporter</Importer> 107 <Processor>SoundEffectProcessor</Processor> 108 </Compile> 88 109 </ItemGroup> 89 110 <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" />
Note: See TracChangeset
for help on using the changeset viewer.