Saturday, September 01, 2007

Tutorial 4 -- Rectangle Collisions

Introduction

This tutorial shows how to do some collision checking using the Rectangle class. You will end up with a sprite moving from one side of the screen to the next reversing its direction whenever it collides with a screen edge.

Requirements

A moving sprite (shown in tutorial 3)

Read

View the tutorial here: Tutorial 4

Remember

You don't have to live a life with no point. God offers a free gift. Take it.

No comments: