Skip to content

Instantly share code, notes, and snippets.

View jediminer543's full-sized avatar

jediminer543

View GitHub Profile
@jediminer543
jediminer543 / ColisionExample.py
Last active August 29, 2015 14:03
Python colision detection
class Rectangle:
# defines x and y coords
x = 0
y = 0
# defines width and height values. these must be positive
w = 0
h = 0
def __init__(self, x, y, w, h):