Tagged Questions
0
votes
0answers
65 views
Texture not rendered correctly while zooming in LibGdx
I'm trying to make a game with libgdx which can run in multiple aspect ratio. The idea is to zoom in/zoom out the camera until the height of my screen same as the device height (my game is landscape). ...
0
votes
1answer
122 views
Using compressed(ETC1) textures in LibGDX
I use standard android tool for compressing PNG texture and archiving it with gzip:
/android-sdks/tools/etc1tool texture.png --encodeNoHeader
gzip texture.pkm
Then I try to load it:
FileHandle ...
0
votes
1answer
81 views
Devices or Smartphones That Can Run and Displayed Images Properly While Power of 2 Code is Disabled
Before making game apps, I want to have any certain smartphone device brands that runs on OpenGL. I have to make a code for images that doesn't need to required power of 2 images so that I can resize ...
1
vote
1answer
289 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);
...
2
votes
0answers
473 views
How do I generate mipmap .png and model .obj files for LibGDX?
I'm playing a bit with LibGDX (OpenGL ES 2.0 wrapper for Android).
I found some sample code which used prepared files to load models and mipmap textures for them, e.g., at ...
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 < ...
0
votes
1answer
3k views
How to rotate a sprite on circle in android using Libgdx
Dear Fellow Game Developers
i am newbie to Android Game Development,i like to know how we can develop a sprite rotate in circle on android,with help of libgdx,
i do have a image in assets ...