<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.spielend-programmieren.at/pythongamebook/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.spielend-programmieren.at/pythongamebook/feed.php">
        <title>The Python Game Book - www.pythongamebook.com</title>
        <description></description>
        <link>http://www.spielend-programmieren.at/pythongamebook/</link>
        <image rdf:resource="http://www.spielend-programmieren.at/pythongamebook/lib/images/favicon.ico" />
       <dc:date>2010-03-10T09:03:05+01:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step015&amp;rev=1267342577&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:resources:people:start&amp;rev=1265907265&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step004&amp;rev=1265906930&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part1:start&amp;rev=1265543392&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step013&amp;rev=1264789594&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step014&amp;rev=1264626464&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.spielend-programmieren.at/pythongamebook/lib/images/favicon.ico">
        <title>The Python Game Book - www.pythongamebook.com</title>
        <link>http://www.spielend-programmieren.at/pythongamebook/</link>
        <url>http://www.spielend-programmieren.at/pythongamebook/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step015&amp;rev=1267342577&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-28T08:36:17+01:00</dc:date>
        <dc:creator>Horst JENS</dc:creator>
        <title>step 015 - more sprites</title>
        <link>http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step015&amp;rev=1267342577&amp;do=diff</link>
        <description>step 015 - more sprites
  ← previous   ↑ Overview   → next  
	*  missing: layeredUpdates

discussion

[screenshot from part2step015]

In the code example below (see ) you can create and kill sprites by mouse click. For each kill there is an explosion effect: a sound plays and a random amount of fragments is flying around. The fragments are subject to a gravity force.</description>
    </item>
    <item rdf:about="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:resources:people:start&amp;rev=1265907265&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-11T17:54:25+01:00</dc:date>
        <dc:creator>Raphael</dc:creator>
        <title>people</title>
        <link>http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:resources:people:start&amp;rev=1265907265&amp;do=diff</link>
        <description>The most wonderful aspect of the open-source world are the people you will meet as soon as you dive into it.

This namespace page does not intend to be wp&gt;facebook, but it is possible to create a page for each user where you link to your facebook page, homepage, twitter tweeds etc.</description>
    </item>
    <item rdf:about="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step004&amp;rev=1265906930&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-11T17:48:50+01:00</dc:date>
        <dc:creator>Raphael</dc:creator>
        <title>step 004 - colorkey</title>
        <link>http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step004&amp;rev=1265906930&amp;do=diff</link>
        <description>← previous   ↑ Overview   → next  


discussion

colorkey

[screenshot pygame003.py The blue ball is blitted on a tranparent background]
There is only one important line in this example to get rid of the ugly black corners of the blue ball surface: 
We declare the color black (0.0.0) as transparent.</description>
    </item>
    <item rdf:about="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part1:start&amp;rev=1265543392&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-07T12:49:52+01:00</dc:date>
        <dc:creator>Horst JENS</dc:creator>
        <title>part 1: programming with Python</title>
        <link>http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part1:start&amp;rev=1265543392&amp;do=diff</link>
        <description>There exist various resources to learn programming with python. I suggest you read one of those first.

&lt;http://www.python.org/doc/&gt;</description>
    </item>
    <item rdf:about="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step013&amp;rev=1264789594&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-29T19:26:34+01:00</dc:date>
        <dc:creator>Horst JENS</dc:creator>
        <title>step 013 - catch the thief game</title>
        <link>http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step013&amp;rev=1264789594&amp;do=diff</link>
        <description>← previous   ↑ Overview   → next  


how to play

[screenshot from part2step013-catch-the-thief-game.py]
This code example should teach nearly nothing new but instead put all the wisdom from the previous steps together to create a little game. In this catch-the-thief-game up to 2 players control sprites (the Pygame snake and the babytux bird) and are tasked to help the police (blue circle with white “P”) to catch a thief (red triangle with transparent “T”). To make the game interesting (and diff…</description>
    </item>
    <item rdf:about="http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step014&amp;rev=1264626464&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-27T22:07:44+01:00</dc:date>
        <dc:creator>Horst JENS</dc:creator>
        <title>step 014 - pygame sprites</title>
        <link>http://www.spielend-programmieren.at/pythongamebook/doku.php?id=en:part2:step014&amp;rev=1264626464&amp;do=diff</link>
        <description>← previous   ↑ Overview   → next  


discussion

[many many sprites]
If you analyse the previous catch-the-thief game you will notice that most code in the main loop take care of cleaning, calculating and blitting the pygame surfaces (the sprites). Pygame provide a very powerful pygame.sprite class for more elegant and object-oriented sprite programming.</description>
    </item>
</rdf:RDF>
