Tests examples for the miniworldmaker engine https://www.miniworldmaker.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
miniworldmaker_cookbook/snippets/13 sound/1302_start_and_stop_music.py

12 lines
262 B

from miniworldmaker import *
# music from https://opengameart.org/content/motivational-chips-day-2, cc0 license
board = Board()
board.play_music("sounds/demo.mp3")
@board.register
def act(self):
if self.frame == 200:
board.stop_music()
board.run()