Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. from vector import Vector
  2. from pygame import draw
  3. class Circle(object):
  4.     def __init__(self, pos, vel, rad, color):
  5.         self.pos=pos
  6.         self.vel=vel
  7.         self.rad=rad
  8.         self.color=color
  9.     def show(self, screen):
  10.         pygame.draw.Circle(screen, self.color, (self.pos.x, self.pos.y) self.rad)
  11.     def updateState(self):
  12.         self.pos += self.vel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement