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

Importing a project

So far, we have launched the "Hello World" game via the command line, and haven't seen a single line of code so far. Let's change that.

To do this, I will use IntelliJ IDEA. If you are using Android Studio, the screenshots will look familiar. If you are using Eclipse, I am sure you will be able to see the common concepts.

To begin with, we need to generate the appropriate IDE project files. Again, this is using Gradle to do the heavy lifting for us.

Once again, on the command line, run the following (pick the one that applies):

  • On Windows: gradlew idea or gradlew eclipse
  • On Linux and Mac OS X: ./gradlew idea or ./gradlew eclipse

Now, Gradle will have generated some project files. Open your IDE of choice and open the project.

Note ...

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