Skip to content

Commit

Permalink
Add an example for the music module
Browse files Browse the repository at this point in the history
  • Loading branch information
marian42 committed Mar 10, 2016
1 parent d0bdb8a commit ee3e04d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions example_music.py
@@ -0,0 +1,18 @@
from screenfactory import create_screen
from modules.music import Music
import config
import time
import pygame

screen = create_screen()

music = Music(screen)
music.start()

while True:
if config.virtual_hardware:
pygame.time.wait(10)
for event in pygame.event.get():
pass
else:
time.sleep(0.01)

0 comments on commit ee3e04d

Please sign in to comment.