Exemple #1
0
 public Map(int width, int height)
 {
     Width       = width;
     Height      = height;
     Tiles       = new TileBase[width * height];
     MapEntities = new GoRogue.MultiSpatialMap <Entity>();
 }
Exemple #2
0
        public Map(int width, int height)
        {
            Width  = width;
            Height = height;

            if (GameLoop.ReceivedEntities != null)
            {
                Entities = GameLoop.ReceivedEntities;
            }
            else
            {
                Entities = new GoRogue.MultiSpatialMap <Entity>();
            }
        }
Exemple #3
0
        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>();
            }
        }
Exemple #4
0
 public Level(LevelTypes levelType) : base(150, 75)
 {
     this.levelType = levelType;
     entities       = new GoRogue.MultiSpatialMap <Construct>();
     CreateLevel();
 }