Added main menu and game menu.
This commit is contained in:
@@ -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")),
|
||||
|
||||
Reference in New Issue
Block a user