示例#1
0
 // Method to reset th game
 public void reset()
 {
     level  = new Map_Level(resetLevel);
     player = new Character("Bob", 10, 1);
     tiles  = level.Tiles;
     story  = level.Story;
     flag   = 0;
     win    = false;
 }
示例#2
0
 //constructor
 public Game(int lev)
 {
     resetLevel = lev;
     level      = new Map_Level(lev);
     player     = new Character("Bob", 10, 4);
     tiles      = level.Tiles;
     story      = level.Story;
     flag       = 0;
     win        = false;
 }