Mercurial > touhou
comparison pytouhou/game/game.py @ 203:df8b2ab54639
Make pylint slightly happier (and code analysis easier)
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 31 Oct 2011 19:29:47 +0100 |
parents | d348892ef012 |
children | d07506a2e16e |
comparison
equal
deleted
inserted
replaced
202:d348892ef012 | 203:df8b2ab54639 |
---|---|
15 | 15 |
16 from pytouhou.utils.random import Random | 16 from pytouhou.utils.random import Random |
17 | 17 |
18 from pytouhou.vm.eclrunner import ECLMainRunner | 18 from pytouhou.vm.eclrunner import ECLMainRunner |
19 | 19 |
20 from pytouhou.game.player import Player | |
21 from pytouhou.game.enemy import Enemy | 20 from pytouhou.game.enemy import Enemy |
22 from pytouhou.game.item import Item | 21 from pytouhou.game.item import Item |
23 from pytouhou.game.effect import Effect | 22 from pytouhou.game.effect import Effect |
24 from pytouhou.game.effect import Particle | 23 from pytouhou.game.effect import Particle |
25 | 24 |
48 self.difficulty_counter = 0 | 47 self.difficulty_counter = 0 |
49 self.difficulty_min = 12 if rank == 0 else 10 | 48 self.difficulty_min = 12 if rank == 0 else 10 |
50 self.difficulty_max = 20 if rank == 0 else 32 | 49 self.difficulty_max = 20 if rank == 0 else 32 |
51 self.boss = None | 50 self.boss = None |
52 self.spellcard = None | 51 self.spellcard = None |
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] | 52 self.bonus_list = [0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, |
53 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 2] | |
54 self.prng = prng or Random() | 54 self.prng = prng or Random() |
55 self.frame = 0 | 55 self.frame = 0 |
56 | 56 |
57 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, |
58 'stg%denm2.anm' % stage)) | 58 'stg%denm2.anm' % stage)) |