- Timestamp:
- 2011-06-29 13:43:04 (12 years ago)
- Location:
- 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs
r2286 r2290 23 23 24 24 Camera.Follow(player); 25 Camera.ZoomFactor = 1. 2;25 Camera.ZoomFactor = 1.0; 26 26 Camera.StayInLevel = true; 27 27 } … … 54 54 PhysicsObject createHorizontalBlock() 55 55 { 56 PhysicsObject hBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGTH); 56 PhysicsObject hBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGTH, 57 Shape.Rectangle, CollisionShapeQuality.Best); 57 58 hBlock.Color = Color.Black; 58 59 return hBlock; … … 61 62 PhysicsObject createVerticalBlock() 62 63 { 63 PhysicsObject vBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGTH); 64 PhysicsObject vBlock = PhysicsObject.CreateStaticObject(SCREEN_WIDTH, SCREEN_HEIGTH, 65 Shape.Rectangle, CollisionShapeQuality.Best); 64 66 vBlock.Color = Color.Red; 65 67 return vBlock; -
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Weapons.cs
r2286 r2290 5 5 using Jypeli.Effects; 6 6 using Jypeli.Widgets; 7 8 /* Each Weapon has its own loader, which *must* load the following:9 * int reloadTime -- Tells how many seconds it takes to reload the weapon10 * int firingSpeed -- Tells how many seconds there are between shots11 * string name -- The name of the weapon12 * Image weaponImage -- The image of the *weapon*, which will (somehow) be added the character13 * Image bulletImage -- The image of the *bullet*14 * SoundEffect sound -- The sound that the weapon makes when fired (Reload soung is universal)15 *16 * Note that the Images and SoundEffect are supplied as strings to the struct constructor17 *18 * Each struct shall follow these specifications*/19 20 public static class Weapons21 {22 public static Weapon Pistol()23 {24 return new Weapon(25 0,26 0,27 "pistol",28 "Images/gausspistol",29 "",30 "Sounds/pistolshot");31 }32 33 /*public static Weapon Rifle()34 {35 36 }*/37 }
Note: See TracChangeset
for help on using the changeset viewer.