From aa61c9babaa76bd6db7f4a6b57a29c3617c769ca Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 18 May 2014 00:50:13 +0200 Subject: [PATCH] That was too fast --- naja/scenes/credits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/naja/scenes/credits.py b/naja/scenes/credits.py index f967a72..b3fd4bd 100644 --- a/naja/scenes/credits.py +++ b/naja/scenes/credits.py @@ -6,7 +6,7 @@ Credits scene. import pygame import pygame.locals as pgl -from naja.constants import KEYS +from naja.constants import KEYS, FPS from naja.scenes.scene import Scene from naja.widgets.text import TextWidget, TextBoxWidget from naja.widgets.image_box import ImageBox @@ -60,7 +60,7 @@ class CreditsScene(Scene): def render_scene(self, surface): if self.autoscroll is not None: self.autoscroll += 1 - if self.autoscroll >= 24: + if self.autoscroll >= 1.5 * FPS: fake_event = pygame.event.Event(pgl.KEYDOWN, key=pgl.K_DOWN) self.credits.handle_event(fake_event) self.autoscroll = 0 -- 2.34.1