Changeset 4388 for 2013/27/TeemuM/Game/Game/Game/Player.cs
- Timestamp:
- 2013-07-03 11:48:07 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2013/27/TeemuM/Game/Game/Game/Player.cs
r4386 r4388 16 16 double speed = defaultMoveSpeed; 17 17 double power = defaultWeaponPower; 18 IntMeter healt; 18 19 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) 20 21 { 21 22 this.Tag = "player"; … … 23 24 this.Image = playerImage; 24 25 this.LinearDamping = 0.9; 25 26 27 healt = new IntMeter(healt, 0, healt); 28 26 29 if (addDefaultControls) 27 30 SetControls(Key.W, Key.S, Key.D, Key.A, MouseButton.Left); … … 86 89 if (weapon != null) 87 90 { 88 //weapon.Power =89 91 weapon.Shoot(); 90 92 }
Note: See TracChangeset
for help on using the changeset viewer.