Advertisement
Guest User

projectile.py

a guest
Jul 7th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import pygame
  2.  
  3. class projectile(object):
  4. def __init__(self, x, y, radius, color, facing):
  5. self.x = x
  6. self.y = y
  7. self.radius = radius
  8. self.color = color
  9. self.facing = facing
  10. self.vel = 8 * facing
  11.  
  12. def draw(self, win):
  13. pygame.draw.circle(win, self.color, (self.x, self.y), self.radius)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement