예제 #1
0
파일: Game.cs 프로젝트: Whazor/Sokoban
 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();
 }
예제 #2
0
파일: Game.cs 프로젝트: Whazor/Sokoban
 public void Reset()
 {
     _map = new Map(_lines);
     _moves = 0;
     _playtime = 0;
     InitiateTimer();
 }