Ignore:
Timestamp:
2013-07-04 11:07:30 (9 years ago)
Author:
jumakall
Message:
 
File:
1 edited

Legend:

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

    r4424 r4426  
    1717    public IntMeter health; 
    1818    private double power = defaultPower; 
     19    public bool canMove = true; 
    1920 
    2021    public Player(double width, double height, int health, bool addDefaultControls) : base(width, height) 
    2122    { 
    2223        this.health = new IntMeter(health, 0, health); 
    23         //this.health.LowerLimit =  
     24        this.health.LowerLimit += UI.GameOver; 
    2425        this.Tag = "player"; 
    2526        this.Shape = Shape.Rectangle; 
     
    123124    private void MovePlayer(Vector force) 
    124125    { 
    125         this.Push(force); 
     126        if (canMove) 
     127            this.Push(force); 
    126128    } 
    127129 
Note: See TracChangeset for help on using the changeset viewer.