Mercurial > touhou
comparison eosd @ 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 | 8fa660da5f0c |
children | a09ac4650e0d |
comparison
equal
deleted
inserted
replaced
264:3ac8b135592c | 265:0aab9b34299e |
---|---|
41 prng = None | 41 prng = None |
42 | 42 |
43 resource_loader = Loader(path) | 43 resource_loader = Loader(path) |
44 | 44 |
45 resource_loader.scan_archives(data) | 45 resource_loader.scan_archives(data) |
46 game = EoSDGame(resource_loader, [PlayerState(character=character)], stage_num, rank, 16, | 46 default_power = [0, 64, 128, 128, 128, 128, 0][stage_num - 1] |
47 game = EoSDGame(resource_loader, [PlayerState(character=character, power=default_power)], stage_num, rank, 16, | |
47 prng=prng) | 48 prng=prng) |
48 | 49 |
49 # Load stage data | 50 # Load stage data |
50 stage = resource_loader.get_stage('stage%d.std' % stage_num) | 51 stage = resource_loader.get_stage('stage%d.std' % stage_num) |
51 | 52 |