comparison pytouhou/game/game.py @ 83:fc0294c745b6

Basic bullet handling! Clean up as soon as possible :p
author Thibaut Girka <thib@sitedethib.com>
date Sat, 03 Sep 2011 22:22:58 +0200
parents ab826bc29aa2
children ac2e5e1c2c3c
comparison
equal deleted inserted replaced
82:de48213a02bf 83:fc0294c745b6
14 14
15 15
16 from pytouhou.utils.random import Random 16 from pytouhou.utils.random import Random
17 17
18 class GameState(object): 18 class GameState(object):
19 __slots__ = ('players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng') 19 __slots__ = ('resources', 'players', 'rank', 'difficulty', 'frame', 'stage', 'boss', 'prng')
20 def __init__(self, players, stage, rank, difficulty): 20 def __init__(self, resources, players, stage, rank, difficulty):
21 self.resources = resources
22
21 self.stage = stage 23 self.stage = stage
22 self.players = players 24 self.players = players
23 self.rank = rank 25 self.rank = rank
24 self.difficulty = difficulty 26 self.difficulty = difficulty
25 self.boss = None 27 self.boss = None
26 self.prng = Random() 28 self.prng = Random()
27 self.frame = 0 29 self.frame = 0
30
31
32 class Resources(object):
33 def __init__(self, etama_anm_wrappers, players_anm_wrappers, effects_anm_wrapper):
34 self.etama_anm_wrappers = etama_anm_wrappers
35 self.players_anm_wrappers = players_anm_wrappers
36 self.effects_anm_wrapper = effects_anm_wrapper
37