Mysteria

Monday, February 17, 2014

Everything you need to know to start with Libgdx



Number
Category
Translate
  

3

Why ? 

French


Libgdx is a multiplatform library that allows to develop in several OS (operating system ) with writing a single only one source code. This means we can develop Android apps in a Desktop Environment (Windows for example).

And this will avoid us to use the emulator which is slow and this will accelerate the learning and programming procedure.

Libgdx allows you to go as low level programming as you want , giving you direct access to file systems , input devices, audio devices via a unified and OpenGL 1.x and OpenGL ES 2.0.

Here are the main feature provided by Libgdx :

An API for OpenGL ES (texture, shaders, vertex arrays ... )
An API for 2D graphics ( bitmap fonts, sprites , widgets , animations ... )
An API for 3D graphics (OBJ Chargers and MD5, handling the camera ... )
An API for I / O ( audio , photos , graphics, key / touch / click events ... )
An API for Physics ( box2d ) and mathematics
Many utilities ( JSON, generating bitmap fonts , and Packer texture ... )

We will see how to use Libgdx to create a project for game / app.

  
A Libgdx project has three parts :

The logical part  
Contains code source of the app/game where all functions and operations are implemented.
The Desktop part  
Contains the source code trigger of the app/game on Desktop
Android part:
Contains the source code trigger of the app/game on Android.

In practice
We have two projects

The logical part and Desktop part will be on the same project
The Android apps/game will be in a separate project

 <<  Previous             

Main Menu      

No comments:

Post a Comment