def __init__(self): PhysX_Object.__init__(self, (0, 100), (0, 0), (0, 0), (50, 50), 2.2e3) self.img_thrust_full = pygame.image.load("../img/toastercat_thrust_full.png") self.img_thrust_med = pygame.image.load("../img/toastercat_thrust_med.png") self.img_thrust_low = pygame.image.load("../img/toastercat_thrust_low.png") self.img_thrust_off = pygame.image.load("../img/toastercat_thrust_off.png") self.image = self.img_thrust_off # control attributes self.x_thrust = 0 self.y_thrust = 0 self.thrust_mode = True self.thrust_max = 10 self.inert_damp = 0.25
def __init__(self, location, category = 2): PhysX_Object.__init__(self, location, (0, 0), (0, 0), (200, 200), 1e10, 1) source = "../img/planet_" + str(category) + ".png" self.load_image(pygame.image.load(source))