libgdx useful snippets