Book Image

LibGDX Game Development By Example

By : James Cook
Book Image

LibGDX Game Development By Example

By: James Cook

Overview of this book

Table of Contents (18 chapters)
LibGDX Game Development By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Extending the Platform

In the previous chapter, we looked at how to create a simple platform game, where we used a new tool, Tiled, that allowed us to create a level and used the Tiled Maps API of LibGDX to bring it to life. However, our game was confined to a single screen. As most of you will be aware, to really take our game to the next level, the level itself should usually be bigger than the screen.

In this chapter, we are going to look at how to extend the level and how to move the camera with Pete as he traverses through our new world. Once we have that, we can then move on to the next topic, which is adding sounds. In this, we will introduce you to the use of music and sound effects. We will cover the following topics in this chapter:

  • Increasing the level length

  • Introducing camera scroll

  • Making sounds

  • Playing music