<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ludum Dare &#187; custom</title>
	<atom:link href="http://www.ludumdare.com/compo/tag/custom/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ludumdare.com/compo</link>
	<description>A tri-annual 48 hour solo game development competition.</description>
	<lastBuildDate>Wed, 08 Feb 2012 14:14:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>I hope you guys are prepared&#8230;</title>
		<link>http://www.ludumdare.com/compo/2008/04/17/i-hope-you-guys-are-prepared/</link>
		<comments>http://www.ludumdare.com/compo/2008/04/17/i-hope-you-guys-are-prepared/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 02:47:02 +0000</pubDate>
		<dc:creator>Devon</dc:creator>
				<category><![CDATA[LD #11 - Minimalist - 2008]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[pygame]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.ludumdare.com/compo/2008/04/17/i-hope-you-guys-are-prepared/</guid>
		<description><![CDATA[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: import os, pygame, random, math, pgu from pygame.locals import * clock = pygame.time.Clock() pygame.init() screen = pygame.display.set_mode((800,480)) timer = 0 seconds = 0 minutes = 0 timertext = str(minutes) + [...]]]></description>
			<content:encoded><![CDATA[<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>
<p>import os, pygame, random, math, pgu<br />
from pygame.locals import *<br />
clock = pygame.time.Clock()<br />
pygame.init()<br />
screen = pygame.display.set_mode((800,480))<br />
timer = 0<br />
seconds = 0<br />
minutes = 0<br />
timertext = str(minutes) + &#8220;:&#8221; + str(seconds)<br />
background = pygame.Surface(screen.get_size())<br />
background = background.convert()<br />
background.fill((250, 250, 250))<br />
font = pygame.font.Font(None, 500)<br />
text = font.render(timertext, 1, (10, 10, 10))<br />
background.blit(text,(0,0))<br />
screen.blit(background, (0,0))</p>
<p>quit = 0<br />
while not quit:<br />
for e in pygame.event.get():<br />
if e.type is QUIT: quit = 1<br />
if e.type is KEYDOWN and e.key == K_ESCAPE: quit = 1<br />
background.fill((250, 250, 250))<br />
text = font.render(timertext, 1, (10, 10, 10))<br />
background.blit(text,(0,0))<br />
screen.blit(background, (0, 0))<br />
pygame.display.flip()<br />
clock.tick(60)<br />
timer = timer + 1<br />
if timer == 60:<br />
seconds = seconds + 1<br />
timer = 0<br />
if seconds == 60:<br />
minutes = minutes + 1<br />
seconds = 0<br />
if seconds &lt;= 9:<br />
timertext = str(minutes) + &#8220;:&#8221; + &#8220;0&#8243; + str(seconds)<br />
else:<br />
timertext = str(minutes) + &#8220;:&#8221; + str(seconds)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludumdare.com/compo/2008/04/17/i-hope-you-guys-are-prepared/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

