1
What you want is to dynamically scale the camera so you can only see the map. This can be done by passing a different projection matrix to the SpriteBatch:
var graphics = /* your GraphicsDeviceManager */;
var width = graphics.PreferredBackBufferWidth;
var height = graphics.PreferredBackBufferHeight;
var windowSize = new Vector2(width, height);
var gameSize =...
1
While I have spent years working with XNA across Xbox 360, Windows Phone 7 and PC, this kind of a problem is typical and requires lots of tedious configuration of the target system.
While I was once successful in past, it took more effort than to simply update graphics API (say, DX8 to DX11).
Every new version of VS links against different libraries. Given ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
xna × 3074c# × 1393
monogame × 388
xna-4.0 × 324
2d × 258
collision-detection × 189
3d × 156
hlsl × 138
textures × 133
shaders × 117
physics × 98
camera × 91
sprites × 86
models × 75
windows-phone-7 × 75
farseer-physics-engine × 71
xna-content-pipeline × 71
rotation × 70
matrix × 64
mathematics × 59
graphics × 58
directx × 57
spritebatch × 55
lighting × 54
rendering × 52