Book Image

Learning LibGDX Game Development- Second Edition

Book Image

Learning LibGDX Game Development- Second Edition

Overview of this book

Table of Contents (21 chapters)
Learning LibGDX Game Development Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Special Effects

In this chapter, you will learn to add special effects to Canyon Bunny using LibGDX's particle system, and learn about linear interpolation, and several other ways to enhance the visual appearance of the game. You will also design a custom particle effect in a graphical editor, which will serve as dust. This dust effect will be shown whenever the player character is running on rocks. You will be introduced to the concept of linear interpolation, using examples of smoothing the camera's movement while it is following a set target, as well as letting the rocks slowly bob up and down on the water.

In addition to this, you will implement a parallax scrolling effect for the displayed mountains in the background. The clouds will continuously move at random speeds from the right to the left of the level. The game's GUI will also be enhanced by adding some subtle effects for events where the player has lost a life or when the game score has increased.

In this chapter, you...