Mercurial > rinkhals
diff gamelib/engine.py @ 229:96d440bebdaa
Non-permenant high score table
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 23:40:13 +0000 |
parents | 527a5d4e3fa3 |
children | d3d5352f5853 |
line wrap: on
line diff
--- a/gamelib/engine.py Fri Sep 04 23:32:32 2009 +0000 +++ b/gamelib/engine.py Fri Sep 04 23:40:13 2009 +0000 @@ -1,5 +1,4 @@ """Game engine and states.""" - from pgu.engine import Game, State, Quit import pygame from pygame.locals import USEREVENT, QUIT, KEYDOWN, K_ESCAPE, K_n, K_d, K_s, K_i @@ -17,6 +16,7 @@ self.clock = pygame.time.Clock() self.main_menu = mainmenu.make_main_menu() self._open_window = None + self.scoreboard = gameover.ScoreTable() def tick(self): """Tic toc.""" @@ -45,7 +45,7 @@ def create_game_over(self): """Create and open the Game Over window""" - game_over = gameover.create_game_over(self.gameboard) + game_over = gameover.create_game_over(self.gameboard, self.scoreboard) self.open_window(game_over) class MainMenuState(State):