| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
import adonthell |
| 18 |
|
| 19 |
class in_game(object): |
| 20 |
def __init__ (self): |
| 21 |
pass |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
def music_finished (self, song): |
| 27 |
music = adonthell.gamedata_get_quest ("demo").get_val ("music") |
| 28 |
|
| 29 |
|
| 30 |
if adonthell.gamedata_player ().submap () == 13: |
| 31 |
adonthell.audio_load_background (2, "audio/at-demo-7.ogg") |
| 32 |
adonthell.audio_play_background (2) |
| 33 |
|
| 34 |
|
| 35 |
elif music == 0: |
| 36 |
adonthell.gamedata_get_quest ("demo").set_val ("music", 1) |
| 37 |
adonthell.audio_load_background (1, "audio/at-demo-6.ogg") |
| 38 |
adonthell.audio_play_background (1) |
| 39 |
|
| 40 |
else: |
| 41 |
adonthell.gamedata_get_quest ("demo").set_val ("music", 0) |
| 42 |
adonthell.audio_load_background (0, "audio/at-demo-5.ogg") |
| 43 |
adonthell.audio_play_background (0) |
| 44 |
|