Class: Collision

$wk$. Collision

new Collision(p_walls, p_paddles)

The main method handleCollision detects collisions between the paddle and a wall.
This:
Parameters:
Name Type Description
p_walls Object The walls of the game: An object with four integer attributes: left, right, top, and bottom.
p_paddles Paddle The paddles of the game.
Source:

Methods

handleCollision()

Detects collisions between the paddle and a wall, between the paddle and the wall, and between the paddle and the paddle. If a collision is detected, the collision is handled.
Source:
W. Kowarschick © 2013 (CC BY-NC-SA 3.0: http://creativecommons.org/licenses/by-nc-sa/3.0/)
Documentation generated by JSDoc 3.3.0-dev on Sat Nov 16 2013 10:57:52 GMT+0100 (MEZ) using the DocStrap template.