Book Image

Mastering LibGDX Game Development

By : Patrick Hoey
Book Image

Mastering LibGDX Game Development

By: Patrick Hoey

Overview of this book

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

Creating cutscenes


In any video game, cutscenes play an important part in order to convey emotion to the player. They help to progress the story and immerse the players in your world. This is even more important in an RPG, as the player needs to react to world events and feel that they are making an impact in the world you are creating. For this section, we will implement a cutscene that explains the influx of monsters over the lands of BludBourne, but also leaves some unanswered questions to entice the player to continue playing.

The basic idea is that we create a Screen class that renders a Stage object. We have previously discussed the Stage class in Chapter 4, Where Do I Put My Stuff?. Basically, the Stage class manages all the different aspects of an Actor object lifecycle, such as drawing the Actor and distributing the relevant input events. The individual nodes that compose the Scene2D scene graph are referred to as Actor objects and they contain their own position, size, origin, scale...