projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bb613e1
)
Use centering on Credits screen.
author
Simon Cross
<hodgestar@gmail.com>
Fri, 16 May 2014 23:38:56 +0000
(
01:38
+0200)
committer
Simon Cross
<hodgestar@gmail.com>
Fri, 16 May 2014 23:38:56 +0000
(
01:38
+0200)
naja/scenes/credits.py
patch
|
blob
|
history
diff --git
a/naja/scenes/credits.py
b/naja/scenes/credits.py
index ab330bfd9fb5be28f16c35251789a255203c6162..a6ae05d2b6ce1de404332d50fe48cc7a7753b67d 100644
(file)
--- a/
naja/scenes/credits.py
+++ b/
naja/scenes/credits.py
@@
-22,10
+22,11
@@
class CreditsScene(Scene):
background = ImageBox(
(0, 0), "screens/splash.png")
self.add(background)
background = ImageBox(
(0, 0), "screens/splash.png")
self.add(background)
- self.add(TextWidget((344, 300), 'CREDITS', colour='white'))
+ self.add(TextWidget(
+ (400, 300), 'CREDITS', colour='white', centre=True))
self.add(TextBoxWidget(
self.add(TextBoxWidget(
- (
10, 35
0), '\n'.join([
+ (
400, 34
0), '\n'.join([
'A game about robots and bits and other things',
'',
'by',
'A game about robots and bits and other things',
'',
'by',
@@
-40,7
+41,7
@@
class CreditsScene(Scene):
]),
colour='white', padding=1,
bg_colour=(0, 0, 0, 0), centre=True,
]),
colour='white', padding=1,
bg_colour=(0, 0, 0, 0), centre=True,
- box_width=
640, view_port=(780, 23
0)))
+ box_width=
780, view_port=(780, 25
0)))
def handle_scene_event(self, ev):
if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT:
def handle_scene_event(self, ev):
if ev.type == pgl.KEYDOWN and ev.key in KEYS.QUIT: