Jôner Duarte jmartins@inf.puc-rio.br. The idea is to use the head as a replacement to the paddle...

Post on 19-Jan-2016

223 views 0 download

Tags:

Transcript of Jôner Duarte jmartins@inf.puc-rio.br. The idea is to use the head as a replacement to the paddle...

Jôner Duartejmartins@inf.puc-rio.br

The idea is to use the head as a replacement to the paddle which bounces the ball to destroy “mines” over your head.

Haar Like Features◦ Encode the existence of oriented contrasts

between regions in the image. A set of these features can be used to encode the contrasts exhibited by a human face and their spacial relationships.

Trained Cascade Classifier◦ A classifier is trained with hundreds of positive

samples of the same size and also negative samples. After trained a classifier can be applied to a region of a image to identify an object.

No Intersection.... No Collision

Intersection.... Possible Collision

Verify the opacity on both images for every point of the intersection

If in both images the point is opaque, then there is a COLLISION!!!!

Helmet◦ Only bounce when direction has postive y-axis◦ In greyed area just bounce the ball back upwards

What is it?◦ Simple and Fast Multimedia Library◦ Open Source API written in C++ to manipulate

graphics, sound, network, etc.

Why use it?◦ Portable (Windows/Linux/MacOS)◦ Object-Oriented alternative to SDL◦ Easily integrable with other GUIs (Qt, MFC,

wxWidgets, X11)◦ Available in C++, C, .NET, Python, Ruby, D