Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LibGDX Game Development By Example

You're reading from   LibGDX Game Development By Example Learn how to create your very own game using the libGDX cross-platform framework

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781785281440
Length 280 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
James Cook James Cook
Author Profile Icon James Cook
James Cook
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Getting to Know LibGDX FREE CHAPTER 2. Let's Get These Snakes Out of This Book! 3. Making That Snake Slick 4. What the Flap Is the Hype About? 5. Making Your Bird More Flightworthy 6. Onto the Next Platform...Game 7. Extending the Platform 8. Why Are All the Birds Angry? 9. Even Angrier Birds! 10. Exporting Our Games to the Platforms 11. Third-party Services Index

Creating Flappee Bee

So at this point, we should have a project set up and ready to go. I hope you have even tried to run it. It should have just shown a black screen, it's not a game yet!

Let's start by breaking this game down into its components so that we can implement them in a set of smaller steps. This won't be quite how it happens in real life as sometimes the game's rules might not have been set in stone and so there would be a chance things would change. However, since we know the game we want to make and the rules are set, let's do it!

Flappee Bee

The main character in our game is Flappee Bee, which tries to bumble its way through the flowers.

Let's pretend that we don't have the art on hand to start rendering old Flappee to the screen. Instead, let's use our ShapeRenderer to get things started so we can get the game playable.

First, let's create a class that will look after Flappee; it will contain properties that only apply to Flappee...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime