def __init__(self): User_Interface.__init__(self, "../img/background/title.jpg") # , pygame.RESIZABLE) self.debug = True self.object_list = self.get_critters(15) game_btn = Button((100, 100), (150, 75), self.game_btn_action) exit_btn = Button((100, 300), (150, 75), self.exit_btn_action) self.object_list.append(game_btn) self.object_list.append(exit_btn) self.choice = None
def __init__(self): # super User_Interface.__init__(self, "../img/background/title.jpg") #, pygame.RESIZABLE) self.debug = True self.player = Ship() self.planets = [] for i in range(3): x = randint(0, self.SCREEN_WIDTH) y = randint(0, self.SCREEN_HEIGHT) c = choice( (1, 2, 3) ) self.planets.append( Planet((x, y), c) ) self.object_list.append(self.planets[i]) self.object_list.append(self.player)
def __init__(self): User_Interface.__init__(self, "../img/background/load.jpg", pygame.NOFRAME, (400, 300))