Book Image

Libgdx Cross-platform Game Development Cookbook

Book Image

Libgdx Cross-platform Game Development Cookbook

Overview of this book

Table of Contents (20 chapters)
Libgdx Cross-platform Game Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Working with 2D Graphics

In this chapter, we will cover the following recipes:

  • Texture rendering with SpriteBatch

  • More effective rendering with regions and atlases

  • Taking advantage of Libgdx sprites

  • Rendering sprite-sheet-based animations

  • Understanding orthographic cameras

  • Using ShapeRenderer for debug graphics

  • Handling multiple screen sizes with viewports