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; }
private static void AddTile(String mapName, Tile tile) { Console.WriteLine("[TileLoader] Mapping " + mapName + " to " + open); tilesDictionary.Add(mapName, tile); tilesList[open++] = tile; }