Permalink
Browse files

First commit

  • Loading branch information...
0 parents commit 7bbf61c295f5d38a405f05c25f6048b43f0ba8a8 @Halfwake committed Oct 5, 2012
Showing with 85,623 additions and 0 deletions.
  1. +100 −0 BigPackages.py
  2. +6 −0 README.txt
  3. BIN avbin.dll
  4. +21 −0 button.py
  5. +67 −0 char.py
  6. +30 −0 config.py
  7. +96 −0 credit.py
  8. +226 −0 game.py
  9. +100 −0 main.py
  10. +46 −0 menu.py
  11. +24 −0 messenger.py
  12. +362 −0 pyglet/__init__.py
  13. BIN pyglet/__init__.pyc
  14. +297 −0 pyglet/app/__init__.py
  15. BIN pyglet/app/__init__.pyc
  16. +144 −0 pyglet/app/carbon.py
  17. BIN pyglet/app/carbon.pyc
  18. +106 −0 pyglet/app/win32.py
  19. BIN pyglet/app/win32.pyc
  20. +98 −0 pyglet/app/xlib.py
  21. BIN pyglet/app/xlib.pyc
  22. +949 −0 pyglet/clock.py
  23. BIN pyglet/clock.pyc
  24. +154 −0 pyglet/com.py
  25. BIN pyglet/com.pyc
  26. +437 −0 pyglet/event.py
  27. BIN pyglet/event.pyc
  28. +694 −0 pyglet/font/__init__.py
  29. BIN pyglet/font/__init__.pyc
  30. +442 −0 pyglet/font/base.py
  31. BIN pyglet/font/base.pyc
  32. +437 −0 pyglet/font/carbon.py
  33. BIN pyglet/font/carbon.pyc
  34. +354 −0 pyglet/font/freetype.py
  35. BIN pyglet/font/freetype.pyc
  36. +427 −0 pyglet/font/freetype_lib.py
  37. BIN pyglet/font/freetype_lib.pyc
  38. +635 −0 pyglet/font/ttf.py
  39. BIN pyglet/font/ttf.pyc
  40. +575 −0 pyglet/font/win32.py
  41. BIN pyglet/font/win32.pyc
  42. +510 −0 pyglet/gl/__init__.py
  43. BIN pyglet/gl/__init__.pyc
  44. +452 −0 pyglet/gl/agl.py
  45. BIN pyglet/gl/agl.pyc
  46. +2,156 −0 pyglet/gl/gl.py
  47. BIN pyglet/gl/gl.pyc
  48. +196 −0 pyglet/gl/gl_info.py
  49. BIN pyglet/gl/gl_info.pyc
  50. +9,349 −0 pyglet/gl/glext_arb.py
  51. BIN pyglet/gl/glext_arb.pyc
  52. +127 −0 pyglet/gl/glext_missing.py
  53. BIN pyglet/gl/glext_missing.pyc
  54. +10,240 −0 pyglet/gl/glext_nv.py
  55. BIN pyglet/gl/glext_nv.pyc
  56. +494 −0 pyglet/gl/glu.py
  57. BIN pyglet/gl/glu.pyc
  58. +160 −0 pyglet/gl/glu_info.py
  59. BIN pyglet/gl/glu_info.pyc
  60. +587 −0 pyglet/gl/glx.py
  61. BIN pyglet/gl/glx.pyc
  62. +143 −0 pyglet/gl/glx_info.py
  63. BIN pyglet/gl/glx_info.pyc
  64. +756 −0 pyglet/gl/glxext_arb.py
  65. BIN pyglet/gl/glxext_arb.pyc
  66. +45 −0 pyglet/gl/glxext_mesa.py
  67. BIN pyglet/gl/glxext_mesa.pyc
  68. +901 −0 pyglet/gl/glxext_nv.py
  69. BIN pyglet/gl/glxext_nv.pyc
  70. +144 −0 pyglet/gl/lib.py
  71. BIN pyglet/gl/lib.pyc
  72. +74 −0 pyglet/gl/lib_agl.py
  73. BIN pyglet/gl/lib_agl.pyc
  74. +92 −0 pyglet/gl/lib_glx.py
  75. BIN pyglet/gl/lib_glx.pyc
  76. +153 −0 pyglet/gl/lib_wgl.py
  77. BIN pyglet/gl/lib_wgl.pyc
  78. +374 −0 pyglet/gl/wgl.py
  79. BIN pyglet/gl/wgl.pyc
  80. +71 −0 pyglet/gl/wgl_info.py
  81. BIN pyglet/gl/wgl_info.pyc
  82. +811 −0 pyglet/gl/wglext_arb.py
  83. BIN pyglet/gl/wglext_arb.pyc
  84. +909 −0 pyglet/gl/wglext_nv.py
  85. BIN pyglet/gl/wglext_nv.pyc
  86. +721 −0 pyglet/graphics/__init__.py
  87. BIN pyglet/graphics/__init__.pyc
  88. +390 −0 pyglet/graphics/allocation.py
  89. BIN pyglet/graphics/allocation.pyc
  90. +506 −0 pyglet/graphics/vertexattribute.py
  91. BIN pyglet/graphics/vertexattribute.pyc
  92. +597 −0 pyglet/graphics/vertexbuffer.py
  93. BIN pyglet/graphics/vertexbuffer.pyc
  94. +776 −0 pyglet/graphics/vertexdomain.py
  95. BIN pyglet/graphics/vertexdomain.pyc
  96. +2,537 −0 pyglet/image/__init__.py
  97. BIN pyglet/image/__init__.pyc
  98. +259 −0 pyglet/image/atlas.py
  99. BIN pyglet/image/atlas.pyc
  100. +231 −0 pyglet/image/codecs/__init__.py
  101. BIN pyglet/image/codecs/__init__.pyc
  102. +359 −0 pyglet/image/codecs/bmp.py
  103. BIN pyglet/image/codecs/bmp.pyc
  104. +227 −0 pyglet/image/codecs/dds.py
  105. BIN pyglet/image/codecs/dds.pyc
  106. +273 −0 pyglet/image/codecs/gdiplus.py
  107. BIN pyglet/image/codecs/gdiplus.pyc
  108. +164 −0 pyglet/image/codecs/gdkpixbuf2.py
  109. BIN pyglet/image/codecs/gdkpixbuf2.pyc
  110. +169 −0 pyglet/image/codecs/gif.py
  111. BIN pyglet/image/codecs/gif.pyc
  112. +110 −0 pyglet/image/codecs/pil.py
  113. BIN pyglet/image/codecs/pil.pyc
  114. +110 −0 pyglet/image/codecs/png.py
  115. BIN pyglet/image/codecs/png.pyc
  116. +1,092 −0 pyglet/image/codecs/pypng.py
  117. BIN pyglet/image/codecs/pypng.pyc
  118. +288 −0 pyglet/image/codecs/quicktime.py
  119. BIN pyglet/image/codecs/quicktime.pyc
  120. +381 −0 pyglet/image/codecs/s3tc.py
  121. BIN pyglet/image/codecs/s3tc.pyc
  122. +191 −0 pyglet/info.py
  123. BIN pyglet/info.pyc
  124. +303 −0 pyglet/lib.py
  125. BIN pyglet/lib.pyc
  126. +1,404 −0 pyglet/media/__init__.py
  127. BIN pyglet/media/__init__.pyc
  128. +477 −0 pyglet/media/avbin.py
  129. BIN pyglet/media/avbin.pyc
  130. +34 −0 pyglet/media/drivers/__init__.py
  131. BIN pyglet/media/drivers/__init__.pyc
  132. +301 −0 pyglet/media/drivers/alsa/__init__.py
  133. BIN pyglet/media/drivers/alsa/__init__.pyc
  134. +9,673 −0 pyglet/media/drivers/alsa/asound.py
  135. BIN pyglet/media/drivers/alsa/asound.pyc
  136. +394 −0 pyglet/media/drivers/directsound/__init__.py
  137. BIN pyglet/media/drivers/directsound/__init__.pyc
  138. +408 −0 pyglet/media/drivers/directsound/lib_dsound.py
  139. BIN pyglet/media/drivers/directsound/lib_dsound.pyc
  140. +360 −0 pyglet/media/drivers/openal/__init__.py
  141. BIN pyglet/media/drivers/openal/__init__.pyc
  142. +286 −0 pyglet/media/drivers/openal/lib_alc.py
  143. BIN pyglet/media/drivers/openal/lib_alc.pyc
  144. +655 −0 pyglet/media/drivers/openal/lib_openal.py
  145. BIN pyglet/media/drivers/openal/lib_openal.pyc
  146. +158 −0 pyglet/media/drivers/silent.py
  147. BIN pyglet/media/drivers/silent.pyc
  148. +181 −0 pyglet/media/procedural.py
  149. BIN pyglet/media/procedural.pyc
  150. +249 −0 pyglet/media/riff.py
  151. BIN pyglet/media/riff.pyc
  152. +695 −0 pyglet/resource.py
  153. BIN pyglet/resource.pyc
  154. +568 −0 pyglet/sprite.py
  155. BIN pyglet/sprite.pyc
  156. +505 −0 pyglet/text/__init__.py
  157. BIN pyglet/text/__init__.pyc
  158. +591 −0 pyglet/text/caret.py
  159. BIN pyglet/text/caret.pyc
  160. +731 −0 pyglet/text/document.py
  161. BIN pyglet/text/document.pyc
  162. +40 −0 pyglet/text/formats/__init__.py
  163. BIN pyglet/text/formats/__init__.pyc
  164. +138 −0 pyglet/text/formats/attributed.py
  165. BIN pyglet/text/formats/attributed.pyc
  166. +363 −0 pyglet/text/formats/html.py
  167. BIN pyglet/text/formats/html.pyc
  168. +47 −0 pyglet/text/formats/plaintext.py
  169. BIN pyglet/text/formats/plaintext.pyc
  170. +261 −0 pyglet/text/formats/structured.py
  171. BIN pyglet/text/formats/structured.pyc
  172. +2,395 −0 pyglet/text/layout.py
  173. BIN pyglet/text/layout.pyc
  174. +418 −0 pyglet/text/runlist.py
  175. BIN pyglet/text/runlist.pyc
  176. +1,684 −0 pyglet/window/__init__.py
  177. BIN pyglet/window/__init__.pyc
  178. +1,366 −0 pyglet/window/carbon/__init__.py
  179. BIN pyglet/window/carbon/__init__.pyc
  180. +525 −0 pyglet/window/carbon/constants.py
  181. BIN pyglet/window/carbon/constants.pyc
  182. +270 −0 pyglet/window/carbon/quartzkey.py
  183. BIN pyglet/window/carbon/quartzkey.pyc
  184. +159 −0 pyglet/window/carbon/types.py
  185. BIN pyglet/window/carbon/types.pyc
  186. +177 −0 pyglet/window/event.py
  187. BIN pyglet/window/event.pyc
  188. +407 −0 pyglet/window/key.py
  189. BIN pyglet/window/key.pyc
  190. +67 −0 pyglet/window/mouse.py
  191. BIN pyglet/window/mouse.pyc
  192. +1,191 −0 pyglet/window/win32/__init__.py
  193. BIN pyglet/window/win32/__init__.pyc
  194. +4,986 −0 pyglet/window/win32/constants.py
  195. BIN pyglet/window/win32/constants.pyc
  196. +223 −0 pyglet/window/win32/types.py
  197. BIN pyglet/window/win32/types.pyc
  198. +237 −0 pyglet/window/win32/winkey.py
  199. BIN pyglet/window/win32/winkey.pyc
  200. +1,519 −0 pyglet/window/xlib/__init__.py
  201. BIN pyglet/window/xlib/__init__.pyc
  202. +120 −0 pyglet/window/xlib/cursorfont.py
  203. BIN pyglet/window/xlib/cursorfont.pyc
  204. +112 −0 pyglet/window/xlib/xinerama.py
  205. BIN pyglet/window/xlib/xinerama.pyc
  206. +5,485 −0 pyglet/window/xlib/xlib.py
  207. BIN pyglet/window/xlib/xlib.pyc
  208. +471 −0 pyglet/window/xlib/xsync.py
  209. BIN pyglet/window/xlib/xsync.pyc
  210. BIN resources/art/background1.png
  211. BIN resources/art/background2.png
  212. BIN resources/art/background3.png
  213. BIN resources/art/background4.png
  214. BIN resources/art/button.xcf
  215. BIN resources/art/char_button.png
  216. BIN resources/art/char_button.xcf
  217. BIN resources/art/menu_button.png
  218. BIN resources/art/menu_button.xcf
  219. BIN resources/art/quit_button.png
  220. BIN resources/art/quit_button.xcf
  221. BIN resources/art/sprite_sheet.png
  222. BIN resources/art/sprite_sheet.xcf
  223. BIN resources/art/start_button.png
  224. BIN resources/art/start_button.xcf
  225. BIN resources/art/title_screen.png
  226. BIN resources/art/title_screen.xcf
  227. BIN resources/music/02-Grinch.mp3
  228. BIN resources/music/Jingle Bells 3.mp3
  229. BIN resources/music/Jingle Bells.mp3
  230. BIN resources/music/Oh Xmas.mp3
  231. BIN resources/music/Up on a Housetop.mp3
  232. BIN resources/music/We Wish You.mp3
  233. BIN resources/music/bell-ring-01.mp3
  234. BIN resources/music/bell-ringing-01.mp3
  235. BIN resources/music/grinch.mp3
  236. BIN resources/music/paper-rustle-8.mp3
  237. +16 −0 screen.py
  238. +21 −0 text.py
@@ -0,0 +1,100 @@
+import pyglet
+import sys
+import os
+try: #This will install avbin if needed, and it works on windows and linux!
+ pyglet.resource.image("resources/art/background1.png")
+except:
+ if sys.platform.startswith("win"):
+ print "Error: avbin.dll not found."
+ quit()
+ elif sys.platform.startswith("linux"):
+ if sys.maxsize > 2 ** 32:
+ if os.system("avbin-linux-x86-64-7/install.sh") != 0:
+ print "You must install avbin manually by running the install.sh script in avbin-linux-x86-64-7."
+ quit()
+ else:
+ if os.system("avbin-linux-x86-32-7/install.sh") !=0:
+ print "You must install avbin manually by running the install.sh script in avbin-linux-x86-64-7."
+ quit()
+ elif sys.platform == "dawrwin":
+ #Note, osx doesn't work because the avbin devs don't care about it
+ #and left it in the dust. Just a small town OS living in a
+ #dangerious dog eat world. Lost it all at the gambling games.
+ #Working hard to fight the man. Didn't even really have a plan.
+ #But hey, man? You gotta work. Work. Work this out. Get ahead.
+ #You gotta work. Work. Work this out. Get ahead. Ah yeah!
+ raise "Error: This game is not supported on OSX."
+ os.system("avbin-darwin-universal-5/install.sh")
+import config
+import messenger
+import menu
+import game
+import credit
+import char
+import random
+
+
+MUSIC = {"JingleBellsA" : pyglet.media.load(r"resources\music\Jingle Bells.mp3"),
+ "JingleBellsB" : pyglet.media.load(r"resources\music\Jingle Bells 3.mp3"),
+ "OhChristmasTree" : pyglet.media.load(r"resources\music\Oh Xmas.mp3"),
+ "UpOnAHouseTop" : pyglet.media.load(r"resources\music\Up on a Housetop.mp3"),
+ "WeWishYou" : pyglet.media.load(r"resources\music\We Wish You.mp3"),
+ "Grinch1" : pyglet.media.load(r"resources\music\grinch.mp3"),
+ "Grinch2" : pyglet.media.load(r"resources\music\02-Grinch.mp3")}
+
+
+class Game(pyglet.window.Window):
+ def __init__(self, width, height):
+ messenger.Messenger.game = self
+ self.create_music_player()
+ self.fps_display = pyglet.clock.ClockDisplay()
+ pyglet.clock.set_fps_limit(90)
+ super(Game, self).__init__(width,
+ height,
+ vsync = False,
+ caption = "Big Packages")
+ self.mode_hash = {}
+ self.mode_hash["MenuScreen"] = menu.MenuScreen()
+ self.mode_hash["GameScreen"] = game.GameScreen()
+ self.mode_hash["CreditScreen"] = credit.CreditScreen()
+ self.mode_hash["CharScreen"] = char.CharScreen()
+ #TESTING PURPOSES
+ self.mode = self.mode_hash["MenuScreen"]
+ #self.mode = self.mode_hash["GameScreen"]
+ #TESTING PURPOSES
+ def create_music_player(self):
+ "Creates a music player and loads all the fun christmas music on it."
+ self.music_player = pyglet.media.Player()
+ #self.music_player.eos_action = "loop" #disabling looping
+ music_list = []
+ for key in MUSIC:
+ item = MUSIC[key]
+ music_list.append(item)
+ random.shuffle(music_list)
+ for song in music_list:
+ self.music_player.queue(song)
+ self.music_player.play()
+ pyglet.clock.schedule_interval(lambda dt : self.music_player.play(), 2.0)
+ def on_draw(self):
+ self.clear()
+ self.mode.on_draw()
+ #self.fps_display.draw() #FPS should not be displayed during normal gameplay
+ def on_key_press(self, symbol, modifiers):
+ self.mode.on_key_press(symbol, modifiers)
+ def on_key_release(self, symbol, modifiers):
+ self.mode.on_key_release(symbol, modifiers)
+ def on_mouse_motion(self, x, y, dx, dy):
+ self.mode.on_mouse_motion(x, y, dx, dy)
+ def on_mouse_press(self, x, y, button, modifiers):
+ self.mode.on_mouse_press(x, y, button, modifiers)
+ def on_mouse_release(self, x, y, button, modifiers):
+ self.mode.on_mouse_release(x, y, button, modifiers)
+ def on_mouse_drag(self, x, y, dx, dy, buttons, modifiers):
+ self.mode.on_mouse_drag(x, y, dx, dy, buttons, modifiers)
+ def on_close(self):
+ self.music_player.pause()
+ self.music_player = None
+ super(Game, self).on_close()
+if __name__ == "__main__":
+ root = Game(config.SCREEN_WIDTH, config.SCREEN_HEIGHT)
+ pyglet.app.run()
@@ -0,0 +1,6 @@
+Non-Grinch Music: Kevin MacLeod
+Grinch Music: http://www.dilandau.eu
+Sound Effects: Soundjay
+
+Mouse for menu navigation
+wasd to move
Binary file not shown.
@@ -0,0 +1,21 @@
+import pyglet
+import config
+
+IMAGES = {}
+
+class Button(pyglet.sprite.Sprite):
+ "A sprite that reacts when clicked."
+ def __init__(self, image, x, y, text = None):
+ super(Button, self).__init__(image)
+ #The following text part needs work.
+## if text:
+## self.text = pyglet.text.label(text)
+ self.x = x
+ self.y = y
+ self.command = lambda : None
+ def click(self, x, y):
+ if self.x < x < self.x + self.width:
+ if self.y < y < self.y + self.height:
+ self.command()
+
+
@@ -0,0 +1,67 @@
+import pyglet
+import screen
+import messenger
+import button
+import config
+import text
+
+SPRITE_SHEET_MERGED = pyglet.image.load(r"resources/art/sprite_sheet.png") #Non-divided sprite_sheet
+SPRITE_SHEET_DIVIDED = pyglet.image.ImageGrid(SPRITE_SHEET_MERGED, 8, 8) #Divided sprite_sheet
+
+IMAGES = {}
+IMAGES["background"] = pyglet.image.load(r"resources/art/background1.png")
+IMAGES["menu_button"] = pyglet.image.load(r"resources/art/menu_button.png")
+IMAGES["tiber"] = SPRITE_SHEET_DIVIDED[63]
+IMAGES["gwen"] = SPRITE_SHEET_DIVIDED[62]
+
+class CharScreen(screen.AbstractScreen):
+ def __init__(self):
+ messenger.Messenger.charScreen = self
+ self.background = IMAGES["background"]
+ self.font_size = 30
+ self.make_descriptions()
+ self.menu_button = button.Button(image = IMAGES["menu_button"],
+ x = 40,
+ y = 40)
+ self.menu_button.command = lambda : messenger.Messenger.change_mode("MenuScreen")
+ def on_draw(self):
+ self.background.blit(0,0)
+ self.menu_button.draw()
+ self.tiber.draw()
+ self.tiber_descript.draw()
+ self.gwen.draw()
+ self.gwen_descript.draw()
+ def on_mouse_press(self, x, y, button, modifiers):
+ self.menu_button.click(x, y)
+ def make_descriptions(self):
+ self.tiber = button.Button(image = IMAGES["tiber"],
+ x = 25,
+ y = 450)
+ self.tiber.scale = 4.0
+ self.tiber_descript = text.TextBox(x = 100,
+ y = 550,
+ font_name = config.FONT_TYPE,
+ font_size = self.font_size,
+ color = (0, 0, 0, 255),
+ text = """
+A greedy elf warrior, in spite
+of Tiberius's Christmas spirit
+he was doomed to a life of
+no presents. Now he returns
+for his rightful tribute.""")
+
+ self.gwen = button.Button(image = IMAGES["gwen"],
+ x = 25,
+ y = 175)
+ self.gwen.scale = 4.0
+ self.gwen_descript = text.TextBox(x = 100,
+ y = 300,
+ font_name = config.FONT_TYPE,
+ font_size = self.font_size,
+ color = (0, 0, 0, 255),
+ text = """
+Gwendayln was once
+a promissing young
+snowmancer until
+she turned rotten
+with greed.""")
@@ -0,0 +1,30 @@
+"A file for storing configuration text. It's easier than parsing a text file."
+FONT_TYPE = "Arial"
+
+SCREEN_WIDTH = 800
+SCREEN_HEIGHT = 600
+
+START_SCORE = 0
+START_LIVES = 3
+
+START_PRESENT_SIZE = 5.0
+PRESENT_SIZE_INCREMENT = 0.5
+MIN_PRESENT_SIZE = 0.3
+
+START_PRESENT_AMOUNT = 3
+PRESENT_AMOUNT_INCREMENT = 2
+
+START_PRESENT_WORTH = 5
+PRESENT_WORTH_INCREMENT = 10
+
+PLAYER_START = (100,100)
+
+PLAYER_START_SPEED = 10
+PLAYER_SPEED_INCREMENT = 20
+MAX_PLAYER_SPEED = 300
+
+START_TIME = 30
+START_TIME += 2 #For some reason it starts with two seconds off
+TIME_INCREMENT = 2
+
+PLAYER_STEPS = 100
@@ -0,0 +1,96 @@
+import pyglet
+import screen
+import button
+import messenger
+import config
+import text
+
+IMAGES = {}
+IMAGES["background"] = pyglet.image.load(r"resources/art/background1.png")
+IMAGES["menu_button"] = pyglet.image.load(r"resources/art/menu_button.png")
+
+class CreditScreen(screen.AbstractScreen):
+ def __init__(self):
+ messenger.Messenger.creditScreen = self
+ self.font_size = 40
+ self.color = (0, 0, 0, 255)
+ self.background = IMAGES["background"]
+ self.make_buttons()
+ self.make_labels()
+ def on_draw(self):
+ self.background.blit(0, 0)
+ self.menu_button.draw()
+ self.score_label.draw()
+ self.score_comment.draw()
+ def make_score_comment(self):
+ score = messenger.Messenger.gameScreen.score
+ if score == 0:
+ _text = """
+This is the only easter egg
+in the game, you truly
+understand the Christmas spirit.
+THANKS FOR PLAYING!"""
+ elif score < 500:
+ _text = """
+Did you even try? At this rate
+you'll never get that white
+iPhone!"""
+ elif score < 2000:
+ _text = """
+A decent amount of kids won't
+be getting parents this year,
+you bastard."""
+ elif score < 5000:
+ _text = """
+You have a fair portion of
+toys, but even with so many
+childhood dreams ruined...
+You really have not made an
+impact on a global scale."""
+ elif messenger.Messenger.score < 6000:
+ _text = """
+You're colder than Jack Frost.
+Thanks for ruining Christmas,
+asshole."""
+ elif messenger.Messenger.score < 7000:
+ _text = """
+There. Are. No. Presents. Left."""
+ elif messenger.Messenger.score < 8000:
+ _text = """
+If you cheat you get put on
+the naughty list. You know
+that, right?"""
+ else:
+ _text = """
+Stop. Messing. With. The.
+Config. File. You. Asshat."""
+
+ self.score_comment = text.TextBox(font_name = config.FONT_TYPE,
+ font_size = self.font_size,
+ text = _text,
+ color = self.color,
+ x = 25,
+ y = config.SCREEN_HEIGHT - 50)
+ def on_mouse_press(self, x, y, button, modifiers):
+ self.menu_button.click(x, y)
+ def make_labels(self):
+ self.score_label = pyglet.text.Label(text = "Final Score: %d" % 0,
+ font_name = config.FONT_TYPE,
+ font_size = self.font_size,
+ x = config.SCREEN_WIDTH / 4,
+ y = config.SCREEN_HEIGHT / 2,
+ color = self.color)
+ self.score_label.x -= 175 #Hard coded offset
+ self.score_comment = text.TextBox(font_name = config.FONT_TYPE,
+ font_size = self.font_size,
+ text = "If this text appears the developer is retarded.",
+ color = self.color,
+ x = config.SCREEN_WIDTH / 4,
+ y = config.SCREEN_HEIGHT / 4 * 2)
+ def make_buttons(self):
+ self.menu_button = button.Button(image = IMAGES["menu_button"],
+ x = config.SCREEN_WIDTH / 4,
+ y = config.SCREEN_HEIGHT / 4)
+ self.menu_button.x -= self.menu_button.width / 2
+ self.menu_button.y -= self.menu_button.height / 2
+ self.menu_button.command = lambda : messenger.Messenger.change_mode("MenuScreen")
Oops, something went wrong. Retry.

0 comments on commit 7bbf61c

Please sign in to comment.