PinmikPanik/gamedata/objects/resetbutton.py
2021-09-19 15:58:01 +02:00

16 lines
320 B
Python

from gamedata.objects.button import Button
class Reset(Button):
def __init__(self,x,y,game,w,h):
super().__init__(x,y,game,w,h)
self.text = "Reset save"
def reset(self,game):
game.globals["highscore"] = 0
game.scene = game.scenes.main
self.click = reset