CSCI 1106 Movement and Collision Detection

Sprite is at the top wall y position 180 sprite is

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: nega:ve? What happens if the velocity is too great? Must the velocity be constant? What happens if we hit the wall? Hibng the Wall •  Fact: If the sprite keeps moving it will reach the edge of the stage •  Two op:ons: –  Fall off the edge –  Bounce back •  How do we know when we have hit the wall? •  Does it mader which wall it is? Falling of the Edge •  I...
View Full Document

This document was uploaded on 03/27/2014 for the course CSCI 1106 at Dalhousie.

Ask a homework question - tutors are online