adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-wastesedge-commits] Release_0-3-3 9705cbd 02/50: ADDED quick-


From: Kai Sterker
Subject: [adonthell-wastesedge-commits] Release_0-3-3 9705cbd 02/50: ADDED quick-load feature
Date: Mon, 25 Jul 2016 18:15:29 +0000 (UTC)

tag: Release_0-3-3
commit 9705cbd27ba1b7c70372c07e1c265b96f0476139
Author: Kai Sterker <address@hidden>
Commit: Kai Sterker <address@hidden>

    ADDED quick-load feature
---
 scripts/init.py |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/scripts/init.py b/scripts/init.py
index ddcac23..01f1577 100755
--- a/scripts/init.py
+++ b/scripts/init.py
@@ -20,9 +20,6 @@ class title_screen:
     def __init__ (self):
         # -- load our music
         adonthell.audio_load_background (0, "audio/at-demo-1.ogg")
-        adonthell.audio_load_wave (0, "audio/select.wav")
-        adonthell.audio_load_wave (1, "audio/switch.wav")
-        adonthell.audio_load_wave (2, "audio/unselect.wav")
 
         # -- The themes and fonts we'll use
         adonthell.win_manager_add_theme ("original")
@@ -221,4 +218,13 @@ class title_screen:
         adonthell.gamedata_engine ().fade_in ()
 
 # -- Main --
-title = title_screen ()
+adonthell.audio_load_wave (0, "audio/select.wav")
+adonthell.audio_load_wave (1, "audio/switch.wav")
+adonthell.audio_load_wave (2, "audio/unselect.wav")
+
+if adonthell.gamedata_load_newest () == 0:
+    title = title_screen ()
+else:
+    # -- Quick-load
+    adonthell.gametime_start_action ()
+    adonthell.gamedata_engine ().main ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]