Summary

In this chapter, we looked at setting up our game to use the screen-based system, we then implemented our own game using the Game class. We looked at the render cycle and the loaded textures and handled input. We have the makings of a very good game!

Coming up, we will take this game further and make it complete. We will do this by adding the collision of the snake with itself, creating a gameover scenario, and introducing a scoring system.

Get LibGDX Game Development By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.