Download presentation
Presentation is loading. Please wait.
Published byTyler Norman Modified over 9 years ago
1
Colour Collision Detection ICS3 Mr. Brunton
2
There are many ways to detect a collision in programming. The easiest way is to use colour collision detection. What you will do is test the colour of the pixel just beyond the edge of your character (in this case, a ball). RUN WINDOW
3
Use the get statement to determine the colour of the pixel one beyond the edge of the ball (mouseX+11). Do that at least 4 times (top, bottom, right, left).
4
Allows you to exit a program when you want. Not equal toOR (under the backspace key)
5
Practice Add collision detection to your maze.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.