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

Chapter 2. Let's Get These Snakes Out of This Book!

In this chapter, we will start making our first game with the LibGDX framework. We will make a little journey back to one of the very first popular mobile games, Snake. We will start out by looking at LibGDX's update cycle and how textures are handled. Then, we will dive into the world of game making by creating our Snake game!

The following will be covered in this chapter:

  • Why Snake?
  • The game update cycle
  • Introducing the snake
  • Making the snake move
  • Controlling the snake
  • Introducing the collision detection mechanism
  • Increasing the length of the snake once the apple is eaten

Why Snake?

Snake is one of the earliest mobile games that I can remember. I remember playing it many a time, chasing the apple while ...

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