Update flatcraft.py
parent
c035963395
commit
f8f9196cd8
58
flatcraft.py
58
flatcraft.py
|
@ -168,55 +168,15 @@ def music():
|
||||||
numpy.random.shuffle(music_array)
|
numpy.random.shuffle(music_array)
|
||||||
pygame.mixer.init()
|
pygame.mixer.init()
|
||||||
while True:
|
while True:
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[0])
|
songs = 7
|
||||||
pygame.mixer.music.play()
|
for i in range(1, songs + 1):
|
||||||
while True:
|
pygame.mixer.music.load("soundtrack/default/" + music_array[i])
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
pygame.mixer.music.play()
|
||||||
break
|
while True:
|
||||||
time.sleep(1)
|
if pygame.mixer.music.get_busy() == 0:
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[1])
|
break
|
||||||
pygame.mixer.music.play()
|
time.sleep(1)
|
||||||
while True:
|
numpy.random.shuffle(music_array)
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[2])
|
|
||||||
pygame.mixer.music.play()
|
|
||||||
while True:
|
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[3])
|
|
||||||
pygame.mixer.music.play()
|
|
||||||
while True:
|
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[4])
|
|
||||||
pygame.mixer.music.play()
|
|
||||||
while True:
|
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[5])
|
|
||||||
pygame.mixer.music.play()
|
|
||||||
while True:
|
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[6])
|
|
||||||
pygame.mixer.music.play()
|
|
||||||
while True:
|
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
pygame.mixer.music.load("soundtrack/default/" + music_array[7])
|
|
||||||
pygame.mixer.music.play()
|
|
||||||
while True:
|
|
||||||
if pygame.mixer.music.get_busy() == 0:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
|
||||||
numpy.random.shuffle(music_array)
|
|
||||||
def splash_screen_change():
|
def splash_screen_change():
|
||||||
splash_screen = ["Hello World!","20 GOTO 10!","Call your mother!","Guess what?","Oops.","Oh man!","What happened?","OMG!","Never Mind.","Gibberish!","Did you finish your homework?","Fun!","274 lines of code!"]
|
splash_screen = ["Hello World!","20 GOTO 10!","Call your mother!","Guess what?","Oops.","Oh man!","What happened?","OMG!","Never Mind.","Gibberish!","Did you finish your homework?","Fun!","274 lines of code!"]
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue