Exemple #1
0
  def live(self):
    PyGameScene.live(self)

    self.scene.fill((0, 0, 0))

    # Always draw the borders.
    for border in self.borders:
      pygame.draw.line(self.scene, BORDER_COLOR, border.debut.tupled(), border.arret.tupled(), BORDER_SIZE)

    self.radar.draw(self.scene, self.borders)
Exemple #2
0
    def live(self):
        PyGameScene.live(self)

        self.scene.fill((0, 0, 0))

        if not self.ball.halt:
            # Apply gravitational attraction.
            self.influence(self.ball)

            # Apply wind.
            if self.wind.blowing:
                self.wind.influence(self.ball)

        # Always draw the ball.
        self.ball.draw(self.scene)
Exemple #3
0
  def live(self):
    PyGameScene.live(self)

    if self.wiping:
      self.scene.fill((0, 0, 0))