LIBGDX Game Framework Introduction

Source: Internet
Author: User
Tags libgdx

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.