def __init__(self): Screen.__init__(self) # Fill background background = pygame.Surface(self.screen.get_size()) background = background.convert() background.fill((0, 0, 0)) # Create a grid of tiles self.grid_map = TileGrid(self.screen) # create group of players, # each with one team of units placed on map self.players = PlayerUnitGroup(self.screen) self.melee_engine = MeleeEngine(self.grid_map, self.players, self.players.ttl_players) # create player/unit interface area self.player_command = PlayerCommand() self.buttons = Btn_grp() self.buttons.new_btn(rect=(750, 500, 18, 24), caption="hi", normal=GameScreen.TEST_IMAGE) self.buttons.new_btn(rect=(650, 500, 18, 24), normal=GameScreen.TEST_IMAGE) self.buttons.new_btn(rect=(690, 500, 10, 10), caption="B", normal=GameScreen.SMALL_BUTTON_GRAY, down=GameScreen.SMALL_BUTTON_GREEN, highlight=GameScreen.SMALL_BUTTON_RED) self.buttons.new_btn(rect=(625, 550, 150, 20), caption="MAKE IT SO!")