Fonts in LibGDX
Using fonts in LibGDX is very straightforward, it even has a Freetype engine extension that lets you render the fonts on the fly using a texture atlas. To generate the bitmap font you just do:FreeTypeFontGenerator ftfg = new FreeTypeFontGenerator(fileHandle);
And to render text use a SpriteBatch to render text like this:
font.draw(sbatch, text, X, Y);
Transitions
The transitions are fairly straightforward. There are the automatic transitions (like scrolling leftward from the game start) or pushing a button when touching a transition body (like pressing the down button whe you're touching the pipe in the dungeon).Get the Android build on my Google Drive.
No hay comentarios:
Publicar un comentario