Tagged Questions
1
vote
2answers
102 views
Textures loading too large on smaller monitors
I have an XNA game, and when i run the game the textures load all good on my computer and on my tv and they're all bring drawn in the right position. But on my laptop, which screen is smaller then ...
0
votes
3answers
203 views
XNA SpriteBatch.Draw with rotation, scaling and origin?
I use a 1x1 pixel 2d texture as source for SpriteBatch.Draw. The texture is scaled and rotated around an origin. The left image is only scaling. The right one scaling + rotation around the origin at ...
1
vote
1answer
283 views
Repeat texture in a scrolling game
The bottom region of the screen is filled by a repeated texture:
grassTexture = new Texture(Gdx.files.internal("images/grass.png"));
grassTexture.setWrap(TextureWrap.Repeat, TextureWrap.Repeat);
...
0
votes
1answer
266 views
Artifacts when using SamplerState.LinearClamp in SpriteBatch
I'm using XNA 4.0 and VS2010 Express for Windows Phone and Windows Phone SDK 7.1.
This is a platform game and I have a map made up of 16x16 textures that is drawn dynamically, tile by tile.
When ...
4
votes
1answer
1k views
Repeat texture in libgdx
How to fill region with repeated texture? Now I'm using next method:
spriteBatch.begin();
final int tWidth = texture.getWidth();
final int tHeight = texture.getHeight();
for (int i = 0; i < ...
1
vote
1answer
270 views
Effective SpriteBatching in XNA?
What is an example of efficient sprite batching in XNA?
I don't know when (if ever) I would do something like this:
spriteBatch.Begin()
DrawSprite1();
spriteBatch.End();
spriteBatch.Begin();
...
