<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pygame on Nikhil&#39;s blog</title>
    <link>https://master--suspicious-stonebraker-7d2d21.netlify.app/tags/pygame/</link>
    <description>Recent content in Pygame on Nikhil&#39;s blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Mon, 04 Aug 2008 19:55:00 +0000</lastBuildDate>
    <atom:link href="https://master--suspicious-stonebraker-7d2d21.netlify.app/tags/pygame/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Sierpinski, my first fractal</title>
      <link>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2008/sierpinski-my-first-fractal/</link>
      <pubDate>Mon, 04 Aug 2008 19:55:00 +0000</pubDate>
      <guid>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2008/sierpinski-my-first-fractal/</guid>
      <description>The Sierpinski triangle in Python, inspired by HTDP, and using Pygame&#xA;import sys&#xA;import pygame&#xA;from pygame.locals import *&#xA;class Point(object):&#xA;def __init__(self, x, y):&#xA;self.x, self.y = x, y&#xA;def distance_sq(self, other):&#xA;return (self.x-other.x)**2 + (self.y-other.y)**2&#xA;def distance(self, other):&#xA;return sqrt(self.distance_sq(other))&#xA;def tupl(self):&#xA;return (self.x, self.y)&#xA;def midpt(p1, p2):&#xA;return Point( (p1.x+p2.x)/2, (p1.y+p2.y)/2 )&#xA;def too_small(p1, p2, p3):&#xA;return max([ p1.distance_sq(p2), p2.distance_sq(p3), p3.distance_sq(p1) ]) &amp;lt; 5&#xA;def draw_line(p1, p2, surf, col):</description>
    </item>
    <item>
      <title>Graffiti</title>
      <link>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2008/graffiti/</link>
      <pubDate>Sun, 29 Jun 2008 20:45:00 +0000</pubDate>
      <guid>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2008/graffiti/</guid>
      <description>A new project of mine is Graffiti, a library over Pygame which allows application developers to write HTML and some CSS-like styling information and let Graffiti manage styling and rendering. It&#39;s no Gecko. Just something to solve an itch of handling word wrapping and styling in raw Pygame/SDL. The distinction between CSS and CSS-like is important and will be explained later. Write now I&#39;m just on basic API design with no CSS parser, and all styles currently encoded in source.</description>
    </item>
    <item>
      <title>Meet Pypes</title>
      <link>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2008/meet-pypes/</link>
      <pubDate>Wed, 11 Jun 2008 09:20:00 +0000</pubDate>
      <guid>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2008/meet-pypes/</guid>
      <description> Pypes is almost done, except for the loops, which shouldn&#39;t be there. Have a screenie. </description>
    </item>
    <item>
      <title>Glowpad</title>
      <link>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2006/glowpad/</link>
      <pubDate>Fri, 24 Nov 2006 21:41:00 +0000</pubDate>
      <guid>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2006/glowpad/</guid>
      <description>Glowpad is a small Python/Pygame program to read in a file and generate a word/pattern with randomly coloured squares which morph to white. I basically wrote it after seeing the cool effect that appears at the end of one of the Sony ads(the robot one) where the same effect happens with the word feel. So I hacked this program in just half an hour.&#xA;To run the program, extract it to any place on your computer.</description>
    </item>
    <item>
      <title>LaserMania development</title>
      <link>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2006/lasermania-development/</link>
      <pubDate>Mon, 09 Oct 2006 20:33:00 +0000</pubDate>
      <guid>https://master--suspicious-stonebraker-7d2d21.netlify.app/post/2006/lasermania-development/</guid>
      <description> Lasermania finally has something to see moving. Its this game where you have to arrange specific mirrors in proper places to guide a photon from emitter to reciever. Its written in pygame/python. In the screenshot you can see the photon(red dot) to the right. The emitter now fires a photon, drag and drop works(almost), only the mirror logic is left. </description>
    </item>
  </channel>
</rss>
