Ignore:
Timestamp:
2014-07-02 22:05:15 (8 years ago)
Author:
mijoilmo
Message:

Level.cs on nyt oma tiedosto. Lisäsin basic supportin mistä tietää onko level planeetta vai avaruus. Muokkasin kuvia korkeammiksi (TEE KUVAT NIIN, ETTÄ AINAKIN PUOLET KENTÄN KORKEUDESTA ON TYHJÄÄ)

File:
1 edited

Legend:

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

    r5308 r5311  
    66using Jypeli.Effects; 
    77using Jypeli.Widgets; 
    8  
    9  
    108 
    119public class Proto236b : PhysicsGame //true survivor 
     
    1816    private Dictionary<string, Image[]> imageLists = new Dictionary<string, Image[]>(); 
    1917    public Dictionary<string, Image[]> ImageLists { get { return imageLists; } set { imageLists = value; } } 
    20  
     18    private ProtoLevel currentLevel; 
     19    public ProtoLevel CurrentLevel { get { return currentLevel; } set { currentLevel = value; } } 
    2120 
    2221    void AssignKeys() 
     
    3736        images["tile0"] = LoadImage("graphics/tiles/tile0"); 
    3837    } 
    39     void LoadLevel(string level) 
     38    void LoadLevel(ProtoLevel level) 
    4039    { 
    4140        ClearAll(); 
     41        currentLevel = level; 
    4242        Add(this.player); 
    4343        Camera.Follow(this.player); 
    4444        AssignKeys(); 
    45         LevelFromImage("graphics/levels/" + level); 
     45        LevelFromImage("graphics/levels/" + level.TileMapSrc); 
    4646    } 
    4747    void LevelFromImage(string levelName) 
     
    8989        this.player = new Player(this); 
    9090        this.player.IsUpdated = true; 
    91         LoadLevel("0"); 
     91        LoadLevel(new ProtoLevel("0",true));//tää on huono metodi, TODO: luo level-classit ennen lataamista 
    9292    } 
    9393} 
Note: See TracChangeset for help on using the changeset viewer.