(self, text, color=(255, 255, 255), seconds=2.0)
| 525 | self.surface = pygame.Surface(self.dim) |
| 526 | |
| 527 | def set_text(self, text, color=(255, 255, 255), seconds=2.0): |
| 528 | text_texture = self.font.render(text, True, color) |
| 529 | self.surface = pygame.Surface(self.dim) |
| 530 | self.seconds_left = seconds |
| 531 | self.surface.fill((0, 0, 0, 0)) |
| 532 | self.surface.blit(text_texture, (10, 11)) |
| 533 | |
| 534 | def tick(self, _, clock): |
| 535 | delta_seconds = 1e-3 * clock.get_time() |
no test coverage detected