Fix TextBoxWidget centering to work with TextWidget centering.
[naja.git] / naja / scenes / howto.py
index d44483411d0c3b93a2a86adc983602849e6502c5..b231dc3b9356aeb6c3d9d5fff346be44d783b67c 100644 (file)
@@ -5,9 +5,9 @@ Howto scene.
 import pygame.locals as pgl
 
 from naja.constants import KEYS
+from naja.events import SceneChangeEvent
 from naja.scenes.scene import Scene
 from naja.widgets.text import TextWidget, TextBoxWidget
-from naja.events import SceneChangeEvent
 
 
 class HowtoScene(Scene):
@@ -45,11 +45,13 @@ class HowtoScene(Scene):
                 "Some actions cost health {HEALTH}. If you run out of "
                 "health {HEALTH}, you lose.",
                 "Some actions gain you points {WINTOKEN}. Once you have "
-                "enough points, you win the game."
+                "enough points, you win the game.",
+                "",
+                "Press ESC to return to the menu.",
             ]), fontsize=32,
             colour='white', padding=1, border=1,
             bg_colour='black', border_colour='black',
-            box_width=380, view_port=(780, 500)))
+            box_width=740, view_port=(780, 540)))
 
     def handle_scene_event(self, ev):
         from naja.scenes.menu import MenuScene