Changeset 4386 for 2013


Ignore:
Timestamp:
2013-07-03 11:06:25 (6 years ago)
Author:
jumakall
Message:
 
Location:
2013/27/TeemuM/Game/Game/Game
Files:
1 deleted
1 edited

Legend:

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

    r4383 r4386  
    1010{ 
    1111    const double defaultMoveSpeed = 1000; 
     12    const double defaultWeaponPower = 10; 
    1213    private static Image playerImage = Game.LoadImage("Player"); 
    1314 
    1415    Weapon weapon; 
    1516    double speed = defaultMoveSpeed; 
     17    double power = defaultWeaponPower; 
    1618 
    1719    public Player(double width, double height, bool addDefaultControls) : base(width, height) 
     
    8385    { 
    8486        if (weapon != null) 
     87        { 
     88            //weapon.Power =  
    8589            weapon.Shoot(); 
     90        } 
    8691        else 
    8792            Game.MessageDisplay.Add("Weapon missing"); 
Note: See TracChangeset for help on using the changeset viewer.