Added sound and music.

This commit is contained in:
2013-01-23 22:30:40 -04:30
parent b800e46d29
commit 298e9c9df4
9 changed files with 95 additions and 15 deletions

View File

@@ -9,6 +9,11 @@ try:
except ImportError:
android = None
try:
import pygame.mixer as mixer
except ImportError:
import android_mixer as mixer
import database
from game import Game
@@ -20,6 +25,7 @@ def main():
# Init PyGame.
pygame.init()
pygame.font.init()
mixer.init()
if android:
# Init pgs4a and map Android's back button to PyGame's escape key.