Skip to Content
LibGDX Game Development By Example
book

LibGDX Game Development By Example

by James Cook
August 2015
Intermediate to advanced content levelIntermediate to advanced
280 pages
5h 31m
English
Packt Publishing
Content preview from LibGDX Game Development By Example

The project setup

Ok, new game, new project. We will start with a blank canvas; so go through and create a project like we did in the previous example.

Using the LibGDX Project Generator, call the game FlappeeBee and give it a game class name of FlappeeBeeGame.

The package can be anything you like, and then set the destination to wherever you wish to keep your code. Finally, uncheck every checkbox except Desktop.

Once this is done, click on Generate and then import the project into your choice of IDE.

Setting up the GameScreen class

With this being a fresh project, hot off the generator. It will have the default Hello World! game inside. Just bear this in mind for the moment.

Next, we create our own GameScreen class. Remember, when you create this, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering LibGDX Game Development

Mastering LibGDX Game Development

Patrick Hoey
Learning LibGDX Game Development- Second Edition

Learning LibGDX Game Development- Second Edition

Suryakumar B Nair, Andreas Oehlke

Publisher Resources

ISBN: 9781785281440Supplemental Content