Ignore:
Timestamp:
2015-06-29 21:27:11 (4 years ago)
Author:
empaheik
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/27/ohjaajat/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel/TheLegendOfGabriel.cs

    r6543 r6544  
    7070    { 
    7171        ClearAll(); 
    72         CreateLevel("testlevel3"); 
    73         CreatePlayer(new Vector(30, -30)); 
     72        CreateLevel("level1"); 
     73      //  CreatePlayer(new Vector(-Level.Width/3, Level.Bottom + TILE_SIZE * 2)); 
    7474        SetControls(); 
    7575        Camera.ZoomToLevel(); 
     
    8686    } 
    8787 
    88     /// <summary> 
    89     /// Luo pelaajan. 
    90     /// </summary> 
    91     void CreatePlayer(Vector position) 
    92     { 
    93         player = new Creature(TILE_SIZE, TILE_SIZE); 
    94         player.MovementSpeed = 2300; 
    95         player.Position = position; 
    96         Add(player); 
    97  
    98         AddCollisionHandler(player, "exit", CollidesWithExit); 
    99     } 
     88    ///// <summary> 
     89    ///// Luo pelaajan. 
     90    ///// </summary> 
     91    //void CreatePlayer(Vector position) 
     92    //{ 
     93    //    player = new Creature(TILE_SIZE, TILE_SIZE); 
     94    //    player.MovementSpeed = 2300; 
     95    //    player.Position = position; 
     96    //    Add(player); 
     97 
     98    //    AddCollisionHandler(player, "exit", CollidesWithExit); 
     99    //} 
    100100 
    101101    void CollidesWithExit(PhysicsObject pPlayer, PhysicsObject pExit) 
Note: See TracChangeset for help on using the changeset viewer.