public void Draw(SpriteBatch batch, Vector2 offset) { batch.Draw(MapManager.getInstance().getFBO(fbo), new Vector2((int)Math.Round(position.X * tileSize - offset.X), (int)Math.Round(position.Y * tileSize - offset.Y)), null); }
protected override void Initialize() { mapManager = new MapManager((int)Math.Ceiling(400 / 256f), (int)Math.Ceiling(400 / 256f), graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight); base.Initialize(); }