comparison pytouhou/ui/gamerenderer.pyx @ 330:16ed1ab1e14b

Add a GameRunner.load_game method to allow level changes. This will probably get changed later, but this is sufficient to change levels for a story mode or a boss rush mode, for instance. * * * Fix previous patch
author Thibaut Girka <thib@sitedethib.com>
date Sat, 30 Jun 2012 13:02:24 +0200
parents 13201d90bb22
children 61caded6b4f5
comparison
equal deleted inserted replaced
329:1bb78c469f64 330:16ed1ab1e14b
27 cdef public background 27 cdef public background
28 28
29 29
30 def __init__(self, resource_loader, game=None, background=None): 30 def __init__(self, resource_loader, game=None, background=None):
31 Renderer.__init__(self, resource_loader) 31 Renderer.__init__(self, resource_loader)
32 self.load_game(game, background)
32 33
34
35 cpdef load_game(self, game=None, background=None):
33 self.game = game 36 self.game = game
34 self.background = background 37 self.background = background
35 38
36 if game: 39 if game:
37 # Preload textures 40 # Preload textures