{"author_name":"Devon","cat":"LD #11 - Minimalist - 2008","comments":[],"epoch":1208476020,"likes":0,"metadata":{"p_key":"75360","p_author":"Devon","p_authorkey":"10666","p_urlkey":"111192","p_title":"I hope you guys are prepared\u2026","p_cat":"LD #11 - Minimalist - 2008","p_event":"LD11","p_time":"1208476020","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"10666","us_name":"Devon","us_username":"devon-peak","event_start":"1208476800","event_key":"87","event_name":"LD11"},"text":"<p>I just made my first giant clock! I am so ready for Ludum Dare now that I have this incredible custom library at my fingertips:<\/p>\n <p>import os, pygame, random, math, pgu<br \/>\n from pygame.locals import *<br \/>\n clock = pygame.time.Clock()<br \/>\n pygame.init()<br \/>\n screen = pygame.display.set_mode((800,480))<br \/>\n timer = 0<br \/>\n seconds = 0<br \/>\n minutes = 0<br \/>\n timertext = str(minutes) + &#8220;:&#8221; + str(seconds)<br \/>\n background = pygame.Surface(screen.get_size())<br \/>\n background = background.convert()<br \/>\n background.fill((250, 250, 250))<br \/>\n font = pygame.font.Font(None, 500)<br \/>\n text = font.render(timertext, 1, (10, 10, 10))<br \/>\n background.blit(text,(0,0))<br \/>\n screen.blit(background, (0,0))<\/p>\n <p>quit = 0<br \/>\n while not quit:<br \/>\n for e in pygame.event.get():<br \/>\n if e.type is QUIT: quit = 1<br \/>\n if e.type is KEYDOWN and e.key == K_ESCAPE: quit = 1<br \/>\n background.fill((250, 250, 250))<br \/>\n text = font.render(timertext, 1, (10, 10, 10))<br \/>\n background.blit(text,(0,0))<br \/>\n screen.blit(background, (0, 0))<br \/>\n pygame.display.flip()<br \/>\n clock.tick(60)<br \/>\n timer = timer + 1<br \/>\n if timer == 60:<br \/>\n seconds = seconds + 1<br \/>\n timer = 0<br \/>\n if seconds == 60:<br \/>\n minutes = minutes + 1<br \/>\n seconds = 0<br \/>\n if seconds &lt;= 9:<br \/>\n timertext = str(minutes) + &#8220;:&#8221; + &#8220;0&#8221; + str(seconds)<br \/>\n else:<br \/>\n timertext = str(minutes) + &#8220;:&#8221; + str(seconds)<\/p>\n \n <p>Tags: <a href=\"http:\/\/ludumdare.com\/compo\/tag\/custom\/\" rel=\"tag\">custom<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/ld11\/\" rel=\"tag\">LD #11 - Minimalist - 2008<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/library\/\" rel=\"tag\">library<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/pygame\/\" rel=\"tag\">pygame<\/a>, <a href=\"http:\/\/ludumdare.com\/compo\/tag\/python\/\" rel=\"tag\">python<\/a><\/p>","time":"April 17th, 2008 6:47 pm","title":"I hope you guys are prepared\u2026"}