<?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 Wilhelm Maritz</title><link>https://wjmaritz.dev/tags/pygame/</link><description>Recent content in Pygame on Wilhelm Maritz</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 26 Jan 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://wjmaritz.dev/tags/pygame/index.xml" rel="self" type="application/rss+xml"/><item><title>The particle fade that never faded</title><link>https://wjmaritz.dev/posts/pygame-alpha-never-faded/</link><pubDate>Sun, 26 Jan 2025 00:00:00 +0000</pubDate><guid>https://wjmaritz.dev/posts/pygame-alpha-never-faded/</guid><description>&lt;p>&lt;a href="https://www.boot.dev/courses/build-asteroids-python" target="_blank" rel="noopener">Asteroids on boot.dev&lt;/a> is a guided build. Its chapters cover Pygame setup, the game loop, the player, and the asteroids: enough for a working game. Everything past that is left to you, and that is where I kept going, adding momentum, a start menu, lives, scoring, and explosions.&lt;/p>
&lt;p>The explosions were the fun part. Shoot an asteroid and fifteen white particles fly outward and fade to nothing over half a second.&lt;/p></description></item><item><title>Space has no drag, so I added some</title><link>https://wjmaritz.dev/posts/space-has-no-drag/</link><pubDate>Sun, 19 Jan 2025 00:00:00 +0000</pubDate><guid>https://wjmaritz.dev/posts/space-has-no-drag/</guid><description>&lt;p>The &lt;a href="https://www.boot.dev/courses/build-asteroids-python" target="_blank" rel="noopener">boot.dev Asteroids course&lt;/a> gives you a ship that moves while you hold a key and stops when you let go. It works, it is simple, and it feels nothing like being in space. What I wanted was continuous motion: you thrust, and then you &lt;em>keep going&lt;/em>, because nothing out there is slowing you down.&lt;/p>
&lt;p>That is a small change to describe and a surprisingly interesting one to build, because the honest version of it is unplayable.&lt;/p></description></item></channel></rss>