Mercurial > touhou
diff pytouhou/game/game.py @ 122:174324a4da51
Add support for launch animations! (Warning: slow :()
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 10 Sep 2011 01:26:30 +0200 |
parents | c7847bfed427 |
children | d1c82d43bbf3 |
line wrap: on
line diff
--- a/pytouhou/game/game.py +++ b/pytouhou/game/game.py @@ -22,10 +22,12 @@ from pytouhou.game.enemy import Enemy class GameState(object): __slots__ = ('resource_loader', 'bullets', 'players', 'rank', 'difficulty', 'frame', - 'stage', 'boss', 'prng') - def __init__(self, resource_loader, players, stage, rank, difficulty): + 'stage', 'boss', 'prng', 'bullet_types') + def __init__(self, resource_loader, players, stage, rank, difficulty, bullet_types): self.resource_loader = resource_loader + self.bullet_types = bullet_types + self.bullets = [] self.stage = stage @@ -39,8 +41,8 @@ class GameState(object): class Game(object): - def __init__(self, resource_loader, players, stage, rank, difficulty): - self.game_state = GameState(resource_loader, players, stage, rank, difficulty) + def __init__(self, resource_loader, players, stage, rank, difficulty, bullet_types): + self.game_state = GameState(resource_loader, players, stage, rank, difficulty, bullet_types) self.enemies = []