Added player and level and world objects.

This commit is contained in:
Sakse Dalum
2012-08-07 19:59:52 +02:00
parent c14c5e248e
commit dc5acdf4c6
7 changed files with 155 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ The main menu.
import os
import pygame
import level
import level1
import game_menu
class MainMenu(object):
@@ -59,7 +59,7 @@ class MainMenu(object):
for event in e:
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_SPACE:
self.game.goto_level(level.Level("landing"))
self.game.goto_level(level1.Level1())
self.game.objs.remove(self)
self.game.objs.append(game_menu.GameMenu(self.game,
self.img_dir))