Mercurial > touhou
comparison pytouhou/interfaces/sample.py @ 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 | |
children | ab131d04987d |
comparison
equal
deleted
inserted
replaced
548:1e9ea6519f3c | 549:56bca8ce4b68 |
---|---|
1 # -*- encoding: utf-8 -*- | |
2 ## | |
3 ## Copyright (C) 2014 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | |
4 ## | |
5 ## This program is free software; you can redistribute it and/or modify | |
6 ## it under the terms of the GNU General Public License as published | |
7 ## by the Free Software Foundation; version 3 only. | |
8 ## | |
9 ## This program is distributed in the hope that it will be useful, | |
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 ## GNU General Public License for more details. | |
13 ## | |
14 | |
15 class SampleInterface(object): | |
16 def __init__(self, resource_loader, player_state): | |
17 self.game = None | |
18 self.player_state = player_state | |
19 self.ascii_anm = resource_loader.get_single_anm('ascii.anm') #XXX | |
20 | |
21 self.width = 384 | |
22 self.height = 448 | |
23 self.game_pos = (0, 32) | |
24 | |
25 self.items = [] | |
26 self.level_start = [] | |
27 self.labels = {} | |
28 self.boss_items = [] | |
29 | |
30 | |
31 def start_stage(self, game, stage): | |
32 self.game = game | |
33 | |
34 | |
35 def set_song_name(self, name): | |
36 pass | |
37 | |
38 | |
39 def set_boss_life(self): | |
40 pass | |
41 | |
42 | |
43 def set_spell_life(self): | |
44 pass | |
45 | |
46 | |
47 def update(self): | |
48 pass |