Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 35:ebc76bc0c067
First item!
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 20:05:37 +0200 |
parents | 0f25f7b9b37a |
children | 088a101f5b94 |
comparison
equal
deleted
inserted
replaced
34:e5c043aeed65 | 35:ebc76bc0c067 |
---|---|
1 from gamelib.state import Scene | 1 from gamelib.state import Scene, Item |
2 | 2 |
3 class Cryo(Scene): | 3 class Cryo(Scene): |
4 | 4 |
5 FOLDER = "cryo" | 5 FOLDER = "cryo" |
6 BACKGROUND = "cryo_room.png" | 6 BACKGROUND = "cryo_room.png" |
7 | 7 |
8 def __init__(self, state): | 8 def __init__(self, state): |
9 super(Cryo, self).__init__(state) | 9 super(Cryo, self).__init__(state) |
10 self.add_item(Triangle("triangle")) | |
11 self.add_item(Square("square")) | |
12 | |
13 | |
14 class Triangle(Item): | |
15 | |
16 INVENTORY_IMAGE = "triangle.png" | |
17 | |
18 | |
19 class Square(Item): | |
20 | |
21 INVENTORY_IMAGE = "square.png" | |
10 | 22 |
11 | 23 |
12 SCENES = [Cryo] | 24 SCENES = [Cryo] |