PinmikPanik/gamedata/objects/resetbutton.py

16 lines
320 B
Python
Raw Permalink Normal View History

2021-09-19 15:58:01 +02:00
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