Ignore:
Timestamp:
2013-07-02 15:00:32 (8 years ago)
Author:
jumakall
Message:
 
File:
1 edited

Legend:

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

    r4360 r4365  
    1212    public Image playerImage = LoadImage("Player"); 
    1313 
     14    Zombie1 zombie1; 
     15 
    1416    public override void Begin() 
    1517    { 
     18 
     19 
     20        Zombie1 zombie1 = new Zombie1(50, 50); 
     21 
     22        createBrain1(); 
     23 
     24        Add(zombie1); 
     25         
    1626        game = this; 
    17  
    1827        Player pelaaja = new Player(this, 50, 50); 
     28        pelaaja.Tag = "Player"; 
    1929        Add(pelaaja); 
    2030 
    2131        ScoreMeter(); 
    2232 
    23         PhoneBackButton.Listen(Exit, "Lopeta peli"); 
    2433        Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, "Lopeta peli"); 
    2534 
     
    2736    } 
    2837 
     38 
     39    public void createBrain1() 
     40    { 
     41        FollowerBrain brain1 = new FollowerBrain("Player"); 
     42        brain1.Speed = 100; 
     43        brain1.Active = true; 
     44    } 
     45 
    2946    IntMeter scoreboard; 
    30  
    3147    void ScoreMeter() 
    3248    { 
Note: See TracChangeset for help on using the changeset viewer.