Book Image

Creative Greenfoot: RAW

By : Michael Haungs
Book Image

Creative Greenfoot: RAW

By: Michael Haungs

Overview of this book

Table of Contents (17 chapters)
Creative Greenfoot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Challenge


Okay, we have implemented several forms of collision detection in our zombie simulation. Which method of collision detection do you prefer for this simulation?

For a challenge, create an Actor ball that occasionally rolls in from the left and knocks zombies out of the way. If the ball hits Wall, have it do 1,000 damage to it. Which form of collision detection will you use to detect collisions between the ball and zombies and between the ball and a wall?