Added main menu and game menu.

This commit is contained in:
Sakse Dalum
2012-08-07 17:26:49 +02:00
parent 06aca4eec9
commit c14c5e248e
7 changed files with 116 additions and 5 deletions

View File

@@ -30,6 +30,7 @@ import pygame
import jukebox
import level
import main_menu
import game_menu
class Game(object):
"""Create an object to handle the game."""
@@ -52,8 +53,9 @@ class Game(object):
self.running = False
def load(self):
self.objs.append(main_menu.MainMenu(self, os.path.abspath(os.path.join(
"resources", "graphics", "main_menu.png"))))
graphics_dir = os.path.abspath(os.path.join("resources", "graphics"))
self.objs.append(main_menu.MainMenu(self, graphics_dir))
self.level = None
self.jukebox = jukebox.Jukebox(
os.path.abspath(os.path.join("resources", "music")),