I am using libGDX and apparently the only way I see for creating a UI is with texture packs.
I would say that since a texture pack is nothing more than JSON or XML file and a large png I could manually code a texture pack. How?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI am using libGDX and apparently the only way I see for creating a UI is with texture packs.
I would say that since a texture pack is nothing more than JSON or XML file and a large png I could manually code a texture pack. How?
I wouldn't recommend you creating texture atlas manually. With only two textures it looks like this:
atlas.png
size: 1024,256
format: RGBA8888
filter: Linear,Linear
repeat: none
player
rotate: false
xy: 404, 4
size: 400, 174
orig: 400, 174
offset: 0, 0
index: -1
tank
rotate: false
xy: 2, 2
size: 400, 176
orig: 400, 176
offset: 0, 0
index: -1
What is your problem with automatic atlas creating? You can either use TexturePacker GUI or run TexturePacker from code which is cool because you don't need manually edit anything after adding new texture.