Exemple #1
0
 public World(int height, int width)
 {
     tiles = new Tile[height][];
     for (int x = 0; x < height; x++)
         tiles[x] = new Tile[width];
     manager = new EntityManager(this);
     this.worldWidth = width;
     this.worldHeight = height;
 }
Exemple #2
0
 private static void AddTile(String mapName, Tile tile)
 {
     Console.WriteLine("[TileLoader] Mapping " + mapName + " to " + open);
     tilesDictionary.Add(mapName, tile);
     tilesList[open++] = tile;
 }