def draw(self): painter = Painter(self.manager.drawing_surface()) painter.clear(Colors.black) scorestr = "Score: " + str(self.score) highstr = "Highscore: " + str(self.high) newstr = "*** New highscore ***" if self.newhigh else "" painter.text((300, 280), scorestr, Colors.white) painter.text((300, 305), highstr, Colors.white) painter.text((300, 330), newstr, Colors.white)
def draw(self): p = Painter(self.manager.drawing_surface()) p.clear(Colors.black) for obj in self.objects: obj.draw()