public Map(int width, int height) { Width = width; Height = height; Tiles = new TileBase[width * height]; MapEntities = new GoRogue.MultiSpatialMap <Entity>(); }
public Map(int width, int height) { Width = width; Height = height; if (GameLoop.ReceivedEntities != null) { Entities = GameLoop.ReceivedEntities; } else { Entities = new GoRogue.MultiSpatialMap <Entity>(); } }
public Map(Dictionary <Point, TileBase> tiles, int W = 100, int H = 100) { Width = W; Height = H; foreach (KeyValuePair <Point, TileBase> tile in tiles) { NewTiles.Add(tile.Key, tile.Value); } if (GameLoop.ReceivedEntities != null) { Entities = GameLoop.ReceivedEntities; } else { Entities = new GoRogue.MultiSpatialMap <Entity>(); } }
public Level(LevelTypes levelType) : base(150, 75) { this.levelType = levelType; entities = new GoRogue.MultiSpatialMap <Construct>(); CreateLevel(); }