Mercurial > boomslang
comparison gamelib/gamescreen.py @ 35:ebc76bc0c067
First item!
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 20:05:37 +0200 |
parents | e5c043aeed65 |
children | 31a431f795e1 |
comparison
equal
deleted
inserted
replaced
34:e5c043aeed65 | 35:ebc76bc0c067 |
---|---|
4 | 4 |
5 from state import initial_state, Item | 5 from state import initial_state, Item |
6 | 6 |
7 from pygame.color import Color | 7 from pygame.color import Color |
8 from pygame import Rect | 8 from pygame import Rect |
9 from pygame.locals import BLEND_ADD | |
9 from albow.screen import Screen | 10 from albow.screen import Screen |
10 from albow.controls import Button, Label, Widget | 11 from albow.controls import Button, Label, Widget |
11 from albow.layout import Column | 12 from albow.layout import Column |
12 from albow.palette_view import PaletteView | 13 from albow.palette_view import PaletteView |
13 | 14 |
44 | 45 |
45 | 46 |
46 class StateWidget(Widget): | 47 class StateWidget(Widget): |
47 | 48 |
48 def __init__(self, state): | 49 def __init__(self, state): |
49 Widget.__init__(self, Rect(0, 0, 800, 600)) | 50 Widget.__init__(self, Rect(0, 0, 800, 550)) |
50 self.state = state | 51 self.state = state |
51 | 52 |
52 def draw(self, surface): | 53 def draw(self, surface): |
53 self.state.draw(surface) | 54 self.state.draw(surface) |
54 | 55 |