Changeset 4388 for 2013/27


Ignore:
Timestamp:
2013-07-03 11:48:07 (10 years ago)
Author:
jumakall
Message:
 
Location:
2013/27/TeemuM/Game/Game/Game
Files:
2 edited

Legend:

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

    r4387 r4388  
    9393        AddScoreMeter(); 
    9494 
    95         player = new Player(50, 50, true); 
     95        player = new Player(50, 50, 5, true); 
    9696        Add(player); 
    9797 
  • 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.