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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.