Ignore:
Timestamp:
2015-06-30 16:47:41 (5 years ago)
Author:
sieerinn
Message:

Tähtäysanimaatiot ja inventory äheltämistä.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/Item.cs

    r6550 r6617  
    5353        : base(player) 
    5454    { 
     55        InventoryImage = TheLegendOfGabriel.SmallSwordImage; 
    5556        swordAngles = new Angle[5]; 
    5657        for (var i = 0; i < 5; i++) 
     
    125126    { 
    126127        Charge = new DoubleMeter(0, 0, 4); 
     128        InventoryImage = TheLegendOfGabriel.GunImage; 
    127129    } 
    128130 
     
    145147        player.MovementSpeed.Value = player.MovementSpeed.MaxValue * 0.333; 
    146148 
    147         // TODO: Tee pistoolin ampumiselle animaatio. 
    148149        ShootDirection = player.Velocity.Angle.MainDirection; 
    149         player.Animation = new Animation(player.SwingAnimations[ShootDirection]); 
     150        player.Animation = new Animation(player.ShootAnimations[ShootDirection]); 
    150151        player.Animation.StopOnLastFrame = true; 
    151152        player.Animation.Start(1); 
     
    172173    } 
    173174} 
     175 
     176class 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.