Ignore:
Timestamp:
2014-07-01 21:27:22 (8 years ago)
Author:
mijoilmo
Message:

player movement oli rikki?
aleksanteri saattoi vahingossa commitata uuden player.cs päälle vanhan version?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor.cs

    r5224 r5254  
    1717        Keyboard.Listen(Key.Escape, ButtonState.Down, Exit, "Lopeta Peli"); 
    1818        Keyboard.Listen(Key.Up, ButtonState.Down, player.throttle, "Lento"); 
     19        Keyboard.Listen(Key.Left, ButtonState.Down, player.rotate, "Lento", 2.8); 
     20        Keyboard.Listen(Key.Right, ButtonState.Down, player.rotate, "Lento", -2.8); 
    1921    } 
    2022    void LoadAllImages() 
     
    2426        images["tile0"] = LoadImage("graphics/tiles/tile0.png"); 
    2527    } 
    26     void LoadLevel(int level) 
     28    void LoadLevel(string level) 
    2729    { 
    2830        ClearAll(); 
     
    3638        tileMap.SetTileMethod(Color.FromHexCode("000000"), createTile, ""); 
    3739        tileMap.SetTileMethod(Color.FromHexCode("ff0000"), spawnPlayer); 
    38         tileMap.Execute(20,20); 
     40        tileMap.Execute(40,40); 
    3941    } 
    4042    void createTile(Vector position, double w, double h, string id) 
     
    5860        LoadAllImages(); 
    5961        this.player = new Player(); 
    60         LoadLevel(0); 
     62        LoadLevel("test"); 
    6163    } 
    6264} 
Note: See TracChangeset for help on using the changeset viewer.