Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Python Game Programming By Example

You're reading from   Python Game Programming By Example A pragmatic guide for developing your own games with Python

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785281532
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Chapter 4. Steering Behaviors

Our previous cocos2d game was based on actions, so movements and rotations were predefined and the characters were not influenced by the current state of the game. However, a recurring problem in game development is how to recreate life-like animations, such as pursuing a target or avoiding moving obstacles.

Now, you will learn how to apply steering behaviors, a technique used to create seemingly intelligent movements for autonomous characters. The implementation of these strategies achieves the ability to navigate through the game world with improvised patterns.

Finally, we will put these strategies in practice with particle systems, a Cocos2d module that we have not worked with so far. Since we will use simple shapes, these particle systems will represent our characters, with the advantage of us not requiring external assets for our applications.

In this chapter, we will cover these topics:

  • Basic concepts of steering behaviors
  • Behaviors for individuals...
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