Mercurial > touhou
comparison scripts/pytouhou @ 549:56bca8ce4b68
Add a very simple sample interface.
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
|---|---|
| date | Fri, 08 Nov 2013 18:48:30 +0100 |
| parents | 1e9ea6519f3c |
| children | 8f51e34d911c |
comparison
equal
deleted
inserted
replaced
| 548:1e9ea6519f3c | 549:56bca8ce4b68 |
|---|---|
| 36 game_group.add_argument('-s', '--stage', metavar='STAGE', type=int, default=None, help='Stage, 1 to 7 (Extra), nothing means story mode.') | 36 game_group.add_argument('-s', '--stage', metavar='STAGE', type=int, default=None, help='Stage, 1 to 7 (Extra), nothing means story mode.') |
| 37 game_group.add_argument('-r', '--rank', metavar='RANK', type=int, default=0, help='Rank, from 0 (Easy, default) to 3 (Lunatic).') | 37 game_group.add_argument('-r', '--rank', metavar='RANK', type=int, default=0, help='Rank, from 0 (Easy, default) to 3 (Lunatic).') |
| 38 game_group.add_argument('-c', '--character', metavar='CHARACTER', type=int, default=0, help='Select the character to use, from 0 (ReimuA, default) to 3 (MarisaB).') | 38 game_group.add_argument('-c', '--character', metavar='CHARACTER', type=int, default=0, help='Select the character to use, from 0 (ReimuA, default) to 3 (MarisaB).') |
| 39 game_group.add_argument('-b', '--boss-rush', action='store_true', help='Fight only bosses.') | 39 game_group.add_argument('-b', '--boss-rush', action='store_true', help='Fight only bosses.') |
| 40 game_group.add_argument('--game', metavar='GAME', choices=['EoSD'], default='EoSD', help='Select the game engine to use.') | 40 game_group.add_argument('--game', metavar='GAME', choices=['EoSD'], default='EoSD', help='Select the game engine to use.') |
| 41 game_group.add_argument('--interface', metavar='INTERFACE', choices=['EoSD'], default='EoSD', help='Select the interface to use.') | 41 game_group.add_argument('--interface', metavar='INTERFACE', choices=['EoSD', 'Sample'], default='EoSD', help='Select the interface to use.') |
| 42 game_group.add_argument('--hints', metavar='HINTS', default=None, help='Hints file, to display text while playing.') | 42 game_group.add_argument('--hints', metavar='HINTS', default=None, help='Hints file, to display text while playing.') |
| 43 | 43 |
| 44 replay_group = parser.add_argument_group('Replay options') | 44 replay_group = parser.add_argument_group('Replay options') |
| 45 replay_group.add_argument('--replay', metavar='REPLAY', help='Select a file to replay.') | 45 replay_group.add_argument('--replay', metavar='REPLAY', help='Select a file to replay.') |
| 46 replay_group.add_argument('--save-replay', metavar='REPLAY', help='Save the upcoming game into a replay file.') | 46 replay_group.add_argument('--save-replay', metavar='REPLAY', help='Save the upcoming game into a replay file.') |
| 70 if args.game == 'EoSD': | 70 if args.game == 'EoSD': |
| 71 from pytouhou.games.eosd import EoSDCommon as Common, EoSDGame as Game | 71 from pytouhou.games.eosd import EoSDCommon as Common, EoSDGame as Game |
| 72 | 72 |
| 73 if args.interface == 'EoSD': | 73 if args.interface == 'EoSD': |
| 74 from pytouhou.interfaces.eosd import EoSDInterface as Interface | 74 from pytouhou.interfaces.eosd import EoSDInterface as Interface |
| 75 elif args.interface == 'Sample': | |
| 76 from pytouhou.interfaces.sample import SampleInterface as Interface | |
| 75 | 77 |
| 76 | 78 |
| 77 from pytouhou.lib.sdl import SDL, show_simple_message_box | 79 from pytouhou.lib.sdl import SDL, show_simple_message_box |
| 78 from pytouhou.ui.window import Window | 80 from pytouhou.ui.window import Window |
| 79 from pytouhou.resource.loader import Loader | 81 from pytouhou.resource.loader import Loader |
