Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from vector import Vector
- from pygame import draw
- class Circle(object):
- def __init__(self, pos, vel, rad, color):
- self.pos=pos
- self.vel=vel
- self.rad=rad
- self.color=color
- def show(self, screen):
- pygame.draw.Circle(screen, self.color, (self.pos.x, self.pos.y) self.rad)
- def updateState(self):
- self.pos += self.vel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement