Changeset 6617 for 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/Item.cs
- Timestamp:
- 2015-06-30 16:47:41 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/Item.cs
r6550 r6617 53 53 : base(player) 54 54 { 55 InventoryImage = TheLegendOfGabriel.SmallSwordImage; 55 56 swordAngles = new Angle[5]; 56 57 for (var i = 0; i < 5; i++) … … 125 126 { 126 127 Charge = new DoubleMeter(0, 0, 4); 128 InventoryImage = TheLegendOfGabriel.GunImage; 127 129 } 128 130 … … 145 147 player.MovementSpeed.Value = player.MovementSpeed.MaxValue * 0.333; 146 148 147 // TODO: Tee pistoolin ampumiselle animaatio.148 149 ShootDirection = player.Velocity.Angle.MainDirection; 149 player.Animation = new Animation(player.S wingAnimations[ShootDirection]);150 player.Animation = new Animation(player.ShootAnimations[ShootDirection]); 150 151 player.Animation.StopOnLastFrame = true; 151 152 player.Animation.Start(1); … … 172 173 } 173 174 } 175 176 class Monocle : Item 177 { 178 public Monocle(Player player) : base(player) 179 { 180 } 181 182 public override void UpdateItem(Time time) 183 { 184 base.UpdateItem(time); 185 } 186 187 public override void UseKeyReleased() 188 { 189 InUse = true; 190 base.UseKeyReleased(); 191 } 192 193 public override void UseKeyPressed() 194 { 195 InUse = false; 196 base.UseKeyPressed(); 197 } 198 }
Note: See TracChangeset
for help on using the changeset viewer.