Mercurial > touhou
changeset 265:0aab9b34299e
Use better defaults for player, and start the stage as if in practice mode.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 23 Jan 2012 02:04:13 +0100 |
parents | 3ac8b135592c |
children | 3a86c4e070dc |
files | eosd pytouhou/game/player.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/eosd +++ b/eosd @@ -43,7 +43,8 @@ def main(path, stage_num, rank, characte resource_loader = Loader(path) resource_loader.scan_archives(data) - game = EoSDGame(resource_loader, [PlayerState(character=character)], stage_num, rank, 16, + default_power = [0, 64, 128, 128, 128, 128, 0][stage_num - 1] + game = EoSDGame(resource_loader, [PlayerState(character=character, power=default_power)], stage_num, rank, 16, prng=prng) # Load stage data
--- a/pytouhou/game/player.py +++ b/pytouhou/game/player.py @@ -22,7 +22,7 @@ from math import pi class PlayerState(object): - def __init__(self, character=0, score=0, power=0, lives=0, bombs=0): + def __init__(self, character=0, score=0, power=0, lives=2, bombs=3): self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/... self.score = score