comparison pytouhou/games/sample/interface.py @ 597:244c99c568c8

Don’t hardcode the available games and interfaces, and relocation them.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 25 Oct 2014 18:52:16 +0200
parents pytouhou/interfaces/sample.py@ab131d04987d
children d1f0bb0b7a17
comparison
equal deleted inserted replaced
596:ab131d04987d 597:244c99c568c8
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 Interface(object):
16 width = 384
17 height = 448
18 game_pos = (0, 0)
19
20 def __init__(self, resource_loader, player_state):
21 self.game = None
22 self.player_state = player_state
23 self.ascii_anm = resource_loader.get_single_anm('ascii.anm') #XXX
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