예제 #1
0
 public static bool NewTreasureRoom(GameScreen gs, TileBlock b)
 {
     if (gs.Player.Alive) {
         gs.setRoom(new TileMap(20, 5, MapType.Treasure, gs, gs.TileMap));
         gs.Player.moveTo(new Vector2(0, TileMap.SPRITE_SIZE * 3));
     }
     return true;
 }
예제 #2
0
 public static bool MapGoBack(GameScreen gs, TileBlock b)
 {
     if (gs.TileMap.OldMap != null) {
         gs.setRoom(gs.TileMap.OldMap);
         gs.Player.moveTo(gs.TileMap.LeavePoint);
     } else {
         gs.newMainRoom();
     }
     return true;
 }