예제 #1
0
 def draw(self):
     scroll_location = int(puit.gamemaster.scrollarea.left * self._zoom_factor)
     self._mini_screen_bounds.bottom_left = (scroll_location, self._bottom)
     draw_me_a.rect(self._mini_screen_bounds, (0.6, 0.87, 1.0))
     self._map_pic = self._gamestate.level.get_mini_graphic()
     self._map_pic.blit(0, self._bottom)
     for p in self._gamestate.get_all(Character):
         x, y = p.boundingbox.center
         x = int(x * self._x_ratio)
         y = int(y * self._y_ratio + self._bottom)
         col = p.team.main_colour_gl
         self._player_dot_bounds.bottom_left = (x, y)
         draw_me_a.rect(self._player_dot_bounds, col)
     if self._blink_counter <= self._on_ticks:
         col = (0.9, 0.3, 0.1)
     else:
         col = (0.54, 0.14, 0.0)
     self._blink_counter += 1
     self._blink_counter %= self._repeat_ticks
     for c in self._gamestate.get_all(Itemcrate):
         x, y = c.boundingbox.center
         x = int(x * self._x_ratio)
         y = int(y * self._y_ratio + self._bottom)
         self._player_dot_bounds.bottom_left = (x, y)
         draw_me_a.rect(self._player_dot_bounds, col)
예제 #2
0
 def draw(self):
   draw_me_a.rect(self.owner.boundingbox, self._colour, puit.gamemaster.scrollarea.bottom_left)
예제 #3
0
 def draw(self):
     if (self._occupier is None) or ((int(self._ticks_occupied / 7.0) % 2) == 0):
         col = self._colour_gl
     else:
         col = self._occupier.main_colour_gl
     draw_me_a.rect(self.boundingbox, col, puit.gamemaster.scrollarea.bottom_left)