Exemplo n.º 1
0
 public Game(Level game)
 {
     _level = game;
     var bytes = Levels.ResourceManager.GetObject(game.Name) as Byte[];
     if (bytes == null) return;
     _lines = Encoding.UTF8.GetString(bytes).Split(new[] {"\n", "\r\n"}, StringSplitOptions.None);
     _map = new Map(_lines);
     InitiateTimer();
 }
Exemplo n.º 2
0
 public void Reset()
 {
     _map = new Map(_lines);
     _moves = 0;
     _playtime = 0;
     InitiateTimer();
 }