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

Nutty Birds


Right, now is the time to introduce the game we are going to make ourselves. We shall call it Nutty Birds. We will follow the same gameplay as Angry Birds. Except, instead of flinging the birds at pigs, we will bring back our friend Pete the Squirrel and he will be lobbing his acorns at the birds—pesky birds living in his tree, probably stealing his acorns.

Here is a mock up of how the game will, hopefully, end up looking.

Pete will fling his acorn toward a simple fort. Perhaps this is level 1, where one of the naughty birds is hiding. As with Angry Birds, if the bird is hit with enough force, the pigs will disappear and the player will win the level.

Let's get tiling!

First things first, let's get the level screen set up. To do this, we are going to use that awesome tiling tool called Tiled again. However, this time we are going to do two, yes two! things with it.

I am going to assume that you are up to speed with how Tiled works so I am not going to go into too much detail on the...