public EditorTileMap(Vector2 cameraPosition, ContentManager Content, int sourceTileWidth, int sourceTileHeight, int tileWidth, int tileHeight, bool showGrid) : base(cameraPosition, Content, sourceTileWidth, sourceTileHeight, tileWidth, tileHeight) { this.frameTexture = Content.Load <Texture2D>(@"Buttons/tileFrame"); this.ShowGrid = showGrid; this.Content = Content; actorTileSheet = new Animations.TileSheetHandler(Content.Load <Texture2D>(@"Textures/actorsTemp"), 64, 64); }
public MiniMap(ContentManager Content, GraphicsDevice graphicsDevice, Vector2 size, IMapDB mapDB, ILevelInfoDB levelInfoDB) : base(Vector2.Zero, Content, 64, 64, 64, 64) { this.Size = size; minimapBatch = new SpriteBatch(graphicsDevice); this.graphicsDevice = graphicsDevice; mapHandler = new Scene.MapHandlerScene(Content, this, levelInfoDB, mapDB); this.Camera = new Camera.Camera(Vector2.Zero, size, size); miniMaps = new Dictionary <string, Texture2D>(); activeMiniMap = null; previousMiniMap = null; message = new Animations.DisplayMessage(Content); CurrentMapID = 0; background = Content.Load <Texture2D>(@"Textures/whiteRectangle"); player = Content.Load <Texture2D>(@"Textures/player"); mob = Content.Load <Texture2D>(@"Textures/Mobs/chaser"); actorTileSheet = new Animations.TileSheetHandler(Content.Load <Texture2D>(@"Textures/ActorsTemp"), this.SourceTileWidth, this.SourceTileHeight); message.OffSet = new Vector2(0, 300); }