Example #1
0
 def __init__(self):
     self.pos = vec2.Vec2(0, 0)
     self.vec = 0
     self.size = 2
     self.speed = 6
     self.color = 7
     self.direction = 0
Example #2
0
 def __init__(self, x, y):
     self.pos = vec2.Vec2(x, y)
     self.vx = math.sin(x)
     self.vy = math.cos(y)
     self.r = random.randint(0, 2)
     self.life = random.randint(4, 5)
     self.direction = 0
     self.speed = 2
Example #3
0
 def __init__(self):
     self.pos = vec2.Vec2(10, 95)
     self.vec = 0
     self.direction = 0
     self.is_floating = False
     self.vy = 0
Example #4
0
 def __init__(self):
     self.pos = vec2.Vec2(0, 0)
     self.vec = 0
     self.speed = 0.05
     self.category = ""