comparison pytouhou/ui/gamerunner.pyx @ 504:69c73023f7a0

Make ANM garbage collectable.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 23 Oct 2013 18:24:17 +0200
parents c622eaf64428
children 1bc014f9d572
comparison
equal deleted inserted replaced
503:c622eaf64428 504:69c73023f7a0
47 47
48 def load_game(self, Game game, background=None, bgms=None, replay=None, save_keystates=None): 48 def load_game(self, Game game, background=None, bgms=None, replay=None, save_keystates=None):
49 self.game = game 49 self.game = game
50 self.background = background 50 self.background = background
51 51
52 self.renderer.texture_manager.load(self.resource_loader.instanced_anms.values()) 52 self.renderer.texture_manager.load(self.resource_loader.instanced_anms)
53 self.renderer.load_background(background) 53 self.renderer.load_background(background)
54 54
55 self.set_input(replay) 55 self.set_input(replay)
56 if replay and replay.levels[game.stage - 1]: 56 if replay and replay.levels[game.stage - 1]:
57 game.players[0].lives = self.replay_level.lives 57 game.players[0].lives = self.replay_level.lives