Skip to main content

Getting Started with Java and LibGDX

  • Chapter
  • First Online:
  • 2041 Accesses

Abstract

This chapter will explain how to set up a Java development environment and configure it to run with the LibGDX game development framework. You’ll see a simple example of a “Hello, World!” program and explore it in enough detail to understand the different parts. Finally, you’ll learn some of the advantages to be gained by working with the LibGDX library.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    More recent versions of these files can be obtained from the website https://libgdx.badlogicgames.com/nightlies/dist/ . These are the nightly builds of the LibGDX libraries, which contain the most up-to-date code, but they are also under development and thus may contain a few bugs or glitches.

  2. 2.

    Since neither the texture nor the coordinates are changing in this example, the fact that the render method is called repeatedly is irrelevant here. However, if you were to periodically change the image, you could generate an animation; if you were to gradually change the coordinates, you could simulate motion. You will see how to accomplish both of these variations in the following chapter.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Lee Stemkoski

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Stemkoski, L. (2018). Getting Started with Java and LibGDX. In: Java Game Development with LibGDX. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3324-5_1

Download citation

Publish with us

Policies and ethics