June 2014
Beginner to intermediate
434 pages
9h 49m
English
It is time to add the hunter back to the game. However, this time the birds will have fun. So, instead of shooting the birds, the hunter will be running around and dodging the stones that they throw at him.
There will be quite a lot of code to add, so here is a brief explanation of what we want to do. We want to create a new class for our hunter, as we cannot reuse the old Hunter class. Our new hunter class, PhysicsHunter, will have two animations: idle and running. We will control the hunter by touching the screen. When we touch the screen on the left-hand side, the hunter will run to the left, and when we touch the right-hand side of the screen, the hunter will run to the right. When we don't touch the screen, ...