Ignore:
Timestamp:
2011-06-28 12:21:32 (8 years ago)
Author:
teeevasa
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2205 r2206  
    88public class Player : GenCharacter 
    99{ 
     10    const int speed = 200; 
     11 
    1012        public Player(double width, double height, Shape shape) 
    1113        : base(width, height, shape) 
    1214        { 
     15        hitPoints = 100; 
     16        addControls(); 
     17        } 
    1318 
    14         } 
     19    public void addControls() 
     20    { 
     21        Keyboard.Listen(Key.Right, ButtonState.Down, "Move right", speed); 
     22    } 
    1523} 
Note: See TracChangeset for help on using the changeset viewer.