Ignore:
Timestamp:
2012-07-03 20:04:30 (9 years ago)
Author:
dezhidki
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/Player.cs

    r3477 r3515  
    1414        public const double playerHeight = 75; 
    1515       // private PhysicsObject head; 
    16         private Vector movementVector = Vector.Zero; 
    17         private bool isMoving = false; 
     16        public Vector movementVector = Vector.Zero; 
     17        public bool isMoving = false; 
    1818        private Keyboard keyboard; 
    1919        private double speed = 200; 
    2020 
    21         public Player(Vector pos) 
     21        public Player(Game game, Vector pos) 
    2222            : base(playerWidth, playerHeight) 
    2323        { 
    24             keyboard = Game.Keyboard; 
     24            keyboard = game.Keyboard; 
    2525            CanRotate = false; 
    2626            setupKeys(); 
     
    4040        } 
    4141 
    42         public override void Update(Time time) 
     42        public void tick() 
    4343        { 
    44             if (!isMoving) 
     44            if (isMoving) 
    4545            { 
    4646                movementVector = Vector.Zero; 
     
    4848            } 
    4949 
    50             isMoving = false; 
    51             base.Update(time); 
     50            isMoving = false;   
    5251        } 
    5352 
Note: See TracChangeset for help on using the changeset viewer.