(self, text, color=(255, 255, 255), seconds=2.0)
| 575 | self.surface = pygame.Surface(self.dim) |
| 576 | |
| 577 | def set_text(self, text, color=(255, 255, 255), seconds=2.0): |
| 578 | text_texture = self.font.render(text, True, color) |
| 579 | self.surface = pygame.Surface(self.dim) |
| 580 | self.seconds_left = seconds |
| 581 | self.surface.fill((0, 0, 0, 0)) |
| 582 | self.surface.blit(text_texture, (10, 11)) |
| 583 | |
| 584 | def tick(self, _, clock): |
| 585 | delta_seconds = 1e-3 * clock.get_time() |
no test coverage detected