Mercurial > touhou
comparison pytouhou/ui/gamerenderer.pyx @ 341:61caded6b4f5
Clean music playback API a little.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 04 Jul 2012 23:05:21 +0200 |
parents | 16ed1ab1e14b |
children | 2c4589370cc6 |
comparison
equal
deleted
inserted
replaced
340:39bc59953dfa | 341:61caded6b4f5 |
---|---|
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 if game: |
33 self.load_game(game, background) | |
33 | 34 |
34 | 35 |
35 cpdef load_game(self, game=None, background=None): | 36 cpdef load_game(self, game=None, background=None): |
36 self.game = game | 37 self.game = game |
37 self.background = background | 38 self.background = background |