To put into practice what you have learned about steering behaviors, we will build a basic game. The player's objective is to collect some pickup items that rotate around different planets placed in the world, while escaping from enemies. The enemies are non-playable characters that seek the playable character and avoid the planets.
We will represent the characters as particle systems, and the final version of the game will look like this:
As usual, we will define a base class that wraps the access to the
CircleShape attribute with the updated center:
from cocos.cocosnode import CocosNode from cocos.director import ...