Asteroid splits in only 2 now

master
mian 1 year ago
parent 42e64c9ccf
commit eb41b6a387
  1. 2
      JunkSpace/asteroid.py

@ -7,7 +7,7 @@ class Asteroid(Sprite):
SPEED = 2 SPEED = 2
COLOR = (0,0,255) COLOR = (0,0,255)
BASE_SIZE = 30 BASE_SIZE = 30
N_CHILDREN = 2 N_CHILDREN = 3
def __init__(self, map_rect=None, map_pos=(0,0), velocity=(0, SPEED), size_lev=3): def __init__(self, map_rect=None, map_pos=(0,0), velocity=(0, SPEED), size_lev=3):
self.size = size_lev * self.BASE_SIZE self.size = size_lev * self.BASE_SIZE

Loading…
Cancel
Save