


LibGDX is a cross-platform, open source, fairly well-documented framework for making games. And do let me know if I've made any mistakes in the included text files/screenshots/instructions. Oh and feel free to offer improvements or tips for my code, I'm by no means an expert and am always willing to learn.

I do believe that 'doing' is one of the best ways of learning, and putting your Java skills in the context of a real thing can really help you learn, understand, and remember key concepts.Īs always, comment questions or message me and I'll do my best to help. This is by no means intended to be a straight-up Java tutorial and having some experience with Java will help you greatly here, there are already plenty of excellent Java tutorials online, so do one of those before following this. After making this Instructable I also added more features like gesture controls and released it to the Google Play Store, which you can see here.

I will show you how to get the basic game working on your phone with touch controls. This tutorial will focus on Android but if you want to deploy to iOS you can code the game following the tutorial, then follow these instructions to deploy to iOS. The great thing about LibGDX is that you code your game and can then export to a variety of platforms, namely PC (Mac, Linux, and Windows), Android, IOS, and HTML5. This tutorial will use Java to show you how to use the LibGDX framework to get a working game on your android phone and your computer. Learning to code is an extraordinarily worthwhile skill, and it's incredibly rewarding and satisfying to see your code come to life in the form of some tangible product, whether it be some Arduino contraption, a website you built, or in this case, a game you can play and share with others.Ībove is a time-lapse of coding the game, the whole thing took around 40 minutes.
