Ignore:
Timestamp:
2011-12-27 20:27:30 (7 years ago)
Author:
hniemi
Message:

Nyt pelitilanteen jatkaminen säilyttää myös liikutusten määrän ja kestää pelin sammuttamisen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2010/23/hniemi/BlockPusher/Blockpusher/Blockpusher/BlockLevel.cs

    r2640 r2641  
    1515    private static readonly string tagName = "name: "; 
    1616    private static readonly string tagAuthor = "author: "; 
    17     private static readonly int levelStartRow = 3; 
     17    private static readonly string tagScore = "highscore: "; 
     18    private static readonly int levelStartRow = 4; 
    1819 
    1920 
     
    5758    /// </summary> 
    5859    public int ParMoves { get; set; } 
     60 
     61    /// <summary> 
     62    /// Highscore 
     63    /// </summary> 
     64    public int HighScore { get; set; } 
    5965 
    6066    /// <summary> 
     
    236242        Author = level[1].Substring(tagAuthor.Length); 
    237243        ParMoves = int.Parse(level[2].Substring(tagPar.Length)); 
    238          
     244        HighScore = int.Parse(level[3].Substring(tagScore.Length)); 
    239245 
    240246        playfield = new Block[playfieldWidth, playfieldHeight]; 
     
    293299        list.Add(tagAuthor + Author); 
    294300        list.Add(tagPar + ParMoves); 
     301        list.Add(tagScore + HighScore); 
    295302 
    296303        for (int i = 0; i < playfield.GetLength(1); i++) 
Note: See TracChangeset for help on using the changeset viewer.