comparison pytouhou/game/game.py @ 192:5e84dfd153ab

Use the right “random” item drop function.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 27 Oct 2011 15:17:21 -0700
parents dbe6b7b2d3fc
children 9f58e2a6e950
comparison
equal deleted inserted replaced
191:d2b58a26c908 192:5e84dfd153ab
46 self.stage = stage 46 self.stage = stage
47 self.rank = rank 47 self.rank = rank
48 self.difficulty = difficulty 48 self.difficulty = difficulty
49 self.boss = None 49 self.boss = None
50 self.spellcard = None 50 self.spellcard = None
51 self.deaths_count = 0
52 self.next_bonus = 0
53 self.bonus_list = [0,0,1,0,1,0,0,1,1,1,0,0,0,1,1,0,1,0,1,0,1,0,1,0,1,0,0,1,1,1,0,2]
51 self.prng = prng or Random() 54 self.prng = prng or Random()
52 self.frame = 0 55 self.frame = 0
53 56
54 self.enm_anm_wrapper = resource_loader.get_anm_wrapper2(('stg%denm.anm' % stage, 57 self.enm_anm_wrapper = resource_loader.get_anm_wrapper2(('stg%denm.anm' % stage,
55 'stg%denm2.anm' % stage)) 58 'stg%denm2.anm' % stage))