comparison pytouhou/interfaces/sample.py @ 596:ab131d04987d

Fix a regression introduced in the previous commit when the interface has a different resolution than 640×480 and framebuffer_blit is enabled.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 25 Oct 2014 18:49:41 +0200
parents 56bca8ce4b68
children
comparison
equal deleted inserted replaced
595:b7b4a234bf70 596:ab131d04987d
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details. 12 ## GNU General Public License for more details.
13 ## 13 ##
14 14
15 class SampleInterface(object): 15 class SampleInterface(object):
16 width = 384
17 height = 448
18 game_pos = (0, 0)
19
16 def __init__(self, resource_loader, player_state): 20 def __init__(self, resource_loader, player_state):
17 self.game = None 21 self.game = None
18 self.player_state = player_state 22 self.player_state = player_state
19 self.ascii_anm = resource_loader.get_single_anm('ascii.anm') #XXX 23 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 24
25 self.items = [] 25 self.items = []
26 self.level_start = [] 26 self.level_start = []
27 self.labels = {} 27 self.labels = {}
28 self.boss_items = [] 28 self.boss_items = []