def draw(self, screen): if self.worlds: [self.drawSimple, self.drawNetwork, self.drawSummary, self.drawOverview][self.drawmode](screen) BaseContext.draw(self, screen) # draw current generation renderedGen = SysFont("Monospace", 40, bold=True).render(str(self.pop.generation_count), 1, (50, 50, 50)) # draw generation overlay (dinosaur egg) screen.blit(self._overlays, (485, 650), (336, 0, 48, 48)) screen.blit(renderedGen, (540, 655))
def draw(self, screen): screen.blit(self._background, (0, 0)) BaseContext.draw(self, screen)
def draw(self, screen): self._gameContext.draw(screen) BaseContext.draw(self, screen)
def draw(self, screen): screen.blit(self._background, (0, 0)) screen.blit(self._logo, ((const.screenWidth - self._logo.get_width()) // 2, 35)) BaseContext.draw(self, screen)
def draw(self, screen): screen.blit(self._background, (0, 0)) BaseContext.draw(self, screen) for i, (x, y) in enumerate(self._positions): screen.blit(self._overlays, (50 + x, 70 + y), (i * 48, 0, 48, 48))