def on_draw(): """ Draw the game state (board and robots). """ window.clear() draw_state(state, window)
def window_draw(self): """ Draw the game state (board and robots). """ self.window.clear() animation_pos = (monotonic() - self.animation_start) / LOG_FRAME_TIME if animation_pos < 0: animation_pos = 0 if animation_pos > 1: animation_pos = 1 draw_state( self.state, self.winner_time, self.available_robots, self.window, last_robots=self.last_robots, animation_pos=animation_pos, )
def window_draw(self): """ Draw the game state (board and robots). """ self.window.clear() draw_state(self.state, self.window)