X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fscenes%2Fmenu.py;h=9a0fe71318cb3095dd69b16b20c7f69ea8890599;hb=2db9ad1ca0004af92e7e00a81cadcf8e4b51f4ae;hp=c2e9a164ceef9edda02553242ba768743f769654;hpb=e6371744b346217a9348a694462354ae644fc032;p=naja.git diff --git a/naja/scenes/menu.py b/naja/scenes/menu.py index c2e9a16..9a0fe71 100644 --- a/naja/scenes/menu.py +++ b/naja/scenes/menu.py @@ -13,8 +13,8 @@ from naja.events import SceneChangeEvent class MenuScene(Scene): - def __init__(self): - super(MenuScene, self).__init__() + def __init__(self, state): + super(MenuScene, self).__init__(state) self.widgets.append(TextWidget((10, 10), 'Game', fontsize=32, colour='white')) self.widgets.append(TextWidget((10, 40), 'Credits', fontsize=32, @@ -27,6 +27,5 @@ class MenuScene(Scene): QuitGameEvent.post() return if ev.type == pgl.KEYDOWN and ev.key is pgl.K_RETURN: - credits_menu = CreditsScene() - SceneChangeEvent.post(credits_menu) + SceneChangeEvent.post(CreditsScene) return