5 import pygame.locals as pgl
7 from naja.constants import KEYS
8 from naja.scenes.scene import Scene
9 from naja.widgets.text import TextWidget, TextBoxWidget
10 from naja.events import SceneChangeEvent
13 class CreditsScene(Scene):
15 List those responsible.
18 def __init__(self, state):
19 super(CreditsScene, self).__init__(state)
21 (480, 160), 'Credits', fontsize=32, colour='white'))
22 self.add(TextBoxWidget(
23 (120, 30), '\n'.join([
24 'Your mom A stranger',
27 'A host of really bored bronies',
28 'And FIVE GOLDEN RIIIIINGS!'
30 colour='white', padding=1, border=1,
31 bg_colour='black', border_colour='black',
34 def handle_scene_event(self, ev):
35 if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT:
36 from naja.scenes.menu import MenuScene
37 SceneChangeEvent.post(MenuScene)