From: Stefano Rivera Date: Sat, 17 May 2014 22:50:13 +0000 (+0200) Subject: That was too fast X-Git-Tag: 0.1~10^2~10 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;ds=inline;h=aa61c9babaa76bd6db7f4a6b57a29c3617c769ca;p=naja.git That was too fast --- 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