This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame, sys | |
import pygame.gfxdraw | |
pygame.init() | |
class Obstacle(object): | |
""" The Obstacle class defines simple methods and properties of | |
obstacle objects such as rectangles and circles""" | |
def __init__(self, center, WIDTH, HEIGHT): | |
self.center = pygame.math.Vector2(center) |