(self)
| 174 | world.hud.notification("Press 'H' or '?' for help.", seconds=4.0) |
| 175 | |
| 176 | def parse_events(self): |
| 177 | for event in pygame.event.get(): |
| 178 | if event.type == pygame.QUIT: |
| 179 | return True |
| 180 | elif event.type == pygame.KEYUP: |
| 181 | if self._is_quit_shortcut(event.key): |
| 182 | return True |
| 183 | |
| 184 | @staticmethod |
| 185 | def _is_quit_shortcut(key): |
no test coverage detected