One Game, Many Frameworks: LibGDX

rectangles in a loop!

We finally arrive at Android, and my favorite framework: LibGDX. Unlike the most recent tutorials in which I did not go too deep into the code of the game because I had already discussed OpenGL or Objective-C in previous tutorials; for this one I’ve decided to do a full-on tutorial. One of those oh-my-God-he-never-stops-talking tutorials.

LibGdx to my mind is the most simple to learn of the frameworks, and is in a way the most complete: it supports Particle Systems, Tile Maps, Box2D, 3D objects, Fonts, UI elements, among other things… And it is the most optimized OpenGL framework/wrapper you will find anywhere. And if you have already developed for Android and have used frameworks like AndEngine, you will know how important optimization is and how lame frameworks can be!

One initial caveat: This is, of course, in part, a tutorial on how to build games (or opengl apps) in Android, however I will not cover many of the peculiarities of developing for Android, only the stuff important for this game and LibGDX.

Also, I will not go very deep into how to code in Java, because I did that already. If you don’t know Java, you should probably do that tutorial first.

And now, the stuff you will need in order to run the code.

Install Java SDK
http://www.youtube.com/watch?v=V5iEUpSG7t8

Install Eclipse And Android
http://www.youtube.com/watch?v=ZoWVeXizfbo
http://www.youtube.com/watch?v=OIL1UouA4dE

If the previous links don’t show you how to set up an AVD on Eclipse, you can do a search on youtube to help you with that also.

Download And Set up a test LibGDX project
http://www.youtube.com/watch?v=vLx_72qxK_0

4 Responses to “One Game, Many Frameworks: LibGDX”

  1. Thomas Mayer said...

    You have some really nice articel on your blog. I like it very much!

  2. LibGDX: Porting Frogger to HTML5 | Done With Computers said...

    [...] course you will need all the stuff you needed for the previous tutorial, plus the Google plugin for Eclipse (including the Google Web Toolkit [...]

  3. lakshman said...

    HI,
    i am trying to build the android version for this game so tat i can play in mobile but the game is not working on mobile and mobile crashes this is code i have used https://rapidshare.com/files/3456268683/FroggerLibGDXAndroid.zip

    let me know if i am missing any thing

  4. Simone Cimo said...

    lakshman c’mon, how can you ask the author to check YOUR mess code when HE GAVE US ALL a great tutorial!! C’mon….

Leave a Comment