예제 #1
0
def on_draw():
    """
    Draw the game state (board and robots).
    """

    window.clear()
    draw_state(state, window)
예제 #2
0
 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,
     )
예제 #3
0
 def window_draw(self):
     """
     Draw the game state (board and robots).
     """
     self.window.clear()
     draw_state(self.state, self.window)