Changeset 2252 for 2011


Ignore:
Timestamp:
2011-06-29 10:29:19 (8 years ago)
Author:
teeevasa
Message:

Talletus.

Location:
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372
Files:
3 edited

Legend:

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

    r2226 r2252  
    1919 
    2020    SoundEffect maaliAani = LoadSoundEffect("maali"); 
    21  
    22     Player player; 
    2321 
    2422    public override void Begin() 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs

    r2245 r2252  
    1818 
    1919        createLevel(); 
    20         //lisaaNappaimet(); 
    2120 
    2221        Camera.Follow(player); 
     
    3837    Player addPlayer() 
    3938    { 
    40         player = new Player(10.0, 10.0, Shape.Rectangle); 
     39        player = new Player(33, 74, Shape.Rectangle); 
     40        Image i = LoadImage("character"); 
     41        player.Image = i; 
    4142        return player; 
    4243    } 
     
    4445    MeleeAlien addMeleeAlien() 
    4546    { 
    46         MeleeAlien meleeAlien = new MeleeAlien(20.0, 20.0, Shape.Rectangle, 10, "Patrol"); 
     47        MeleeAlien meleeAlien = new MeleeAlien(45, 80, Shape.Rectangle, 10, "Patrol"); 
    4748        return meleeAlien; 
    4849    } 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2245 r2252  
    1212 
    1313    // Miten voidaan viitata Contentiin? 
    14     Image portrait = Game.LoadImage("character.png"); 
     14    //Image portrait = Game.LoadImage("character"); 
    1515 
    1616        public Player(double width, double height, Shape shape) 
     
    1919        hitPoints = 100; 
    2020        AddedToGame += addControls; 
    21         this.Image = portrait; 
     21        //this.Image = portrait; 
    2222        } 
    2323 
Note: See TracChangeset for help on using the changeset viewer.