Ignore:
Timestamp:
2013-07-03 11:48:07 (10 years ago)
Author:
jumakall
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/27/TeemuM/Game/Game/Game/Player.cs

    r4386 r4388  
    1616    double speed = defaultMoveSpeed; 
    1717    double power = defaultWeaponPower; 
     18    IntMeter healt; 
    1819 
    19     public Player(double width, double height, bool addDefaultControls) : base(width, height) 
     20    public Player(double width, double height, int healt, bool addDefaultControls) : base(width, height) 
    2021    { 
    2122        this.Tag = "player"; 
     
    2324        this.Image = playerImage; 
    2425        this.LinearDamping = 0.9; 
    25          
     26 
     27        healt = new IntMeter(healt, 0, healt); 
     28 
    2629        if (addDefaultControls) 
    2730            SetControls(Key.W, Key.S, Key.D, Key.A, MouseButton.Left); 
     
    8689        if (weapon != null) 
    8790        { 
    88             //weapon.Power =  
    8991            weapon.Shoot(); 
    9092        } 
Note: See TracChangeset for help on using the changeset viewer.