Changeset 4398 for 2013/27


Ignore:
Timestamp:
2013-07-03 14:09:50 (6 years ago)
Author:
jumakall
Message:
 
File:
1 edited

Legend:

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

    r4394 r4398  
    1111    public static G game; 
    1212    IntMeter scoreboard; 
    13     public Player player; 
     13    public Player player { get; private set; } 
    1414 
    1515    public override void Begin() 
     
    4040                { 
    4141                    MessageDisplay.Add("+$" + int.Parse(commands[2])); 
     42                    player.health--; 
    4243                } 
    4344                else if (commands[1] == "reduce") 
     
    9394        AddScoreMeter(); 
    9495 
    95         createPlayer(); 
    96         createZ(); 
     96        player = new Player(50, 50, 1, true); 
     97        Add(player); 
    9798 
    9899    } 
Note: See TracChangeset for help on using the changeset viewer.