Beispiel #1
0
        public DataMaster(WarGames.core.Game game)
        {
            this.game = game;

            //make sure the map is as big as the screen is
            map = new Map(new Vector2i(
                (int)Math.Round((float)(game.stage.Size.X / 32)),
                (int)Math.Round((float)(game.stage.Size.Y / 32) - 4)
                ));
            InterfaceBar = new InterfaceBar();
        }
Beispiel #2
0
 public MapRenderer(Map data)
 {
     this.data = data;
     tilesRenderers = new TileRenderer[data.tiles.GetLength(0) - 1, data.tiles.GetLength(1) - 1];
     createTileRenderers();
 }
Beispiel #3
0
 public Pathfinder(Map map)
 {
     this.map = map;
     openList = new List<Tile>();
     closeList = new List<Tile>();
 }