Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data/GSOC examples/rotate polygon
diff options
context:
space:
mode:
Diffstat (limited to 'data/GSOC examples/rotate polygon')
-rw-r--r--data/GSOC examples/rotate polygon5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/GSOC examples/rotate polygon b/data/GSOC examples/rotate polygon
index 01d2b9d..aa6c838 100644
--- a/data/GSOC examples/rotate polygon
+++ b/data/GSOC examples/rotate polygon
@@ -151,12 +151,16 @@ while pippy.pygame.next_frame():
msg = "Use left and right arrows for controling speed. Speed: "
msg = msg + str(speed_factor)
msg2 = "Use up and down arrows for controling size. Size : " + str(side_length)
+ msg3 = "Press q to quit."
text1 = font.render(msg , True, font_colour)
text_box1 = text1.get_rect()
text_box1.top = height / 20
text2 = font.render(msg2 , True, font_colour)
text_box2 = text2.get_rect()
text_box2.top = height / 20 + 14
+ text3 = font.render(msg3 , True, font_colour)
+ text_box3 = text3.get_rect()
+ text_box3.top = height / 20 + 28
# if the L or R arrow is pressed (and held), keep adjusting speed
# You'll have to click it real fast if you with to change the speed by
@@ -189,6 +193,7 @@ while pippy.pygame.next_frame():
# draw the text
screen.blit(text1, text_box1)
screen.blit(text2, text_box2)
+ screen.blit(text3, text_box3)
# refresh the screen
pygame.display.flip()