<?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 Zovirl Industries</title>
    <link>/tags/pygame/</link>
    <description>Recent content in Pygame on Zovirl Industries</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 17 Mar 2007 21:09:00 +0000</lastBuildDate>
    <atom:link href="/tags/pygame/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Drive: a simple scrolling demo in pygame</title>
      <link>/2007/03/17/drive-a-simple-scrolling-demo-in-pygame/</link>
      <pubDate>Sat, 17 Mar 2007 21:09:00 +0000</pubDate>
      
      <guid>/2007/03/17/drive-a-simple-scrolling-demo-in-pygame/</guid>
      <description>

&lt;h1 id=&#34;drive-a-simple-scrolling-demo-in-pygame-2007-03-17-drive-a-simple-scrolling-demo-in-pygame&#34;&gt;&lt;a href=&#34;/2007/03/17/drive-a-simple-scrolling-demo-in-pygame/&#34;&gt;Drive: a simple scrolling demo in pygame&lt;/a&gt;&lt;/h1&gt;

&lt;p&gt;&lt;img src=&#34;/2007/03/car.jpg&#34;/&gt;&lt;br/&gt;
A couple weekends ago I wanted to play around with some game ideas, to see if they were super-awesome or boring.  I needed a simple framework to prototype them on, so I whipped one out using pygame.  Then I sketched up some art.  And made an installer.&lt;/p&gt;
&lt;p&gt;And totally forgot to play around my original game ideas.&lt;/p&gt;
&lt;p&gt;Damn.  Maybe next time.&lt;/p&gt;
&lt;p&gt;Anyway, here it is: a simple scrolling demo made with python and pygame.  It has no real purpose (unless you want to do scrolling in pygame).&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;/2007/03/Drive-1.0.dmg&#34;&gt;OSX&lt;/a&gt;&lt;br/&gt;
&lt;a href=&#34;/2007/03/Drive-1.0.zip&#34;&gt;Windows&lt;/a&gt;&lt;br/&gt;
&lt;a href=&#34;/2007/03/Drive-1.0.tar.gz&#34;&gt;Source (Linux)&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>steal the mouse back from SDL</title>
      <link>/2006/08/21/steal-the-mouse-back-from-sdl/</link>
      <pubDate>Tue, 22 Aug 2006 00:05:00 +0000</pubDate>
      
      <guid>/2006/08/21/steal-the-mouse-back-from-sdl/</guid>
      <description>

&lt;h1 id=&#34;steal-the-mouse-back-from-sdl-2006-08-21-steal-the-mouse-back-from-sdl&#34;&gt;&lt;a href=&#34;/2006/08/21/steal-the-mouse-back-from-sdl/&#34;&gt;steal the mouse back from SDL&lt;/a&gt;&lt;/h1&gt;

&lt;p&gt;&lt;p&gt;I hate it when a poorly-behaved SDL app (usually mine) grabs the mouse, crashes, and doesn’t give the mouse back.  Great, now I’m stuck in X with no mouse.  Here’s a handy python script to get it back:&lt;/p&gt;
&lt;div class=&#34;highlight&#34; style=&#34;background: #f0f3f3&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span style=&#34;color: #0099FF; font-style: italic&#34;&gt;#!/usr/bin/env python&lt;/span&gt;
&lt;span style=&#34;color: #0099FF; font-style: italic&#34;&gt;# get the mouse back after an SDL app crashes&lt;/span&gt;
&lt;span style=&#34;color: #006699; font-weight: bold&#34;&gt;import&lt;/span&gt; &lt;span style=&#34;color: #00CCFF; font-weight: bold&#34;&gt;pygame&lt;/span&gt;
pygame&lt;span style=&#34;color: #555555&#34;&gt;.&lt;/span&gt;init()
pygame&lt;span style=&#34;color: #555555&#34;&gt;.&lt;/span&gt;mouse&lt;span style=&#34;color: #555555&#34;&gt;.&lt;/span&gt;set_visible(&lt;span style=&#34;color: #336666&#34;&gt;False&lt;/span&gt;)
pygame&lt;span style=&#34;color: #555555&#34;&gt;.&lt;/span&gt;event&lt;span style=&#34;color: #555555&#34;&gt;.&lt;/span&gt;set_grab(&lt;span style=&#34;color: #336666&#34;&gt;True&lt;/span&gt;)
pygame&lt;span style=&#34;color: #555555&#34;&gt;.&lt;/span&gt;quit()
&lt;/pre&gt;&lt;/div&gt;
&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
