In this post I will describe, how to manage the assets for your mobile game (graphics / design and sound). This includes some links & tips where you can find free, high quality game assets. You have at least three different ways of making a design for your mobile game:
Find a designer that creates the assets with / for you. That might be very cost-intensive, if you “hire” an external designer. Here are some links where you can find some on:
- dribbble.com – Find Designers by location, skills, availability and more
- folyo.me – Freelancer platform
Create the assets on your own.
Buy (or use free) game assets from the web. Here are some links where you can find assets:
…and there are many other resources, just use Google Search.
Creating App Icons for Android and iOS
An easy way to resize your icon for your Android and iOS mobile app is to use an icon resizer, like makeappicon.com.
Managing your graphic assets in libGDX
Usually, libGDX assets are located in the assets directory in the android module:
You can just put every single image you want to use in your game into the assets folder, but this is a very bad idea. OpenGL bounds textures, which is relatively expensive (memory allocation). So the idea is to store many smaller images on a larger image, than load that bigger image once and use parts of it. LibGDX has a so called “TexturePacker” which is a command line application that packs many images on to larger images. The locations of the smaller images are stored and can easily references by their name without the file ending. Different algorithms are used for a very efficient texture packaging.
Either you run the TexturePacker via code or via script from and command line, like I did it, which works pretty well for me. Put your graphic assets into the tools/sprites directory and then execute the tools/texturepacker.sh script (Linux / Mac OS X) or the tools/texturepacker.cmd script (Windows). The results are put in the android/assets folder.