mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Removed Graphics.delta_s and the usage thereof, tweaked credits screen code
This commit is contained in:
@@ -33,7 +33,7 @@ class IntroEventScene < EventScene
|
||||
# fade to opacity 255 in FADE_TICKS ticks after waiting 0 frames
|
||||
@pic.moveOpacity(0, FADE_TICKS, 255)
|
||||
pictureWait
|
||||
@timer = 0.0 # reset the timer
|
||||
@timer = System.uptime # reset the timer
|
||||
onUpdate.set(method(:splash_update)) # called every frame
|
||||
onCTrigger.set(method(:close_splash)) # called when C key is pressed
|
||||
end
|
||||
@@ -52,8 +52,7 @@ class IntroEventScene < EventScene
|
||||
end
|
||||
|
||||
def splash_update(scene, args)
|
||||
@timer += Graphics.delta_s
|
||||
close_splash(scene, args) if @timer > SECONDS_PER_SPLASH
|
||||
close_splash(scene, args) if System.uptime - @timer >= SECONDS_PER_SPLASH
|
||||
end
|
||||
|
||||
def open_title_screen(_scene, *args)
|
||||
|
||||
Reference in New Issue
Block a user