LIBGDX as the upper layer for Java, the bottom C and C + + game engine. It was a very good mess. The game framework initially only 1 people in the maintenance, has now joined a lot of people, more and more force. The architecture of the LIBGDX is clear, and we first analyze the structure of the package:
Assets
Represents a resource bundle for management such as resource loading.
Audio
Audio package, the game needs to play sound when used.
Files
File processing package, the internal main object is FileHandle, if you have used Libgdx is certainly familiar to the times, libgdx loaded texture pictures, etc. are through this object.
Graphics
Painting is related to the need to draw the controls or characters in the game.
It contains opengles 2d, 3D,EGL, texture texture, camera cameras, vertex properties Vertexattribute, etc.
Input
Input event Correlation
Maps
Map related
Maths
Mathematics-related, there are matrix processing, ray, line segments, circles, polygons, Bezier curves, 2-dimensional points vector2,3 Vector3, and so on, as well as Intersector (judging the intersection of various graphs).
Net
Network-related. That is, the network HTTP request, socket
Scenes
Some of the well-packaged scene objects, it is important to stage, actor and its sub-class. The action and its subclasses are also available for frame animation.
Utils
This package is very many objects and a lot of useful tool classes. such as XML parsing and serialization. XmlReader and XmlWriter (the Internationalization tool for Android I use the POI and this implementation). Rewrite the list, map and other objects for the game. Array, Objectmap, compression processing lzma, and so on.
Of course, the outermost layer is the most important interface. Eg:application,input,files,screen, Audio, etc.
My fantastic tank is based on screen, and for the time being today. Next time, say something about the use of objects.
LIBGDX Game Framework Introduction