forked from ayte/PinmikPanik
16 lines
320 B
Python
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
|