Tags » PyGame

Menger Sponge

Normally the Menger Sponge is a three-dimensional cuboid. This program works in a two-dimensional space, so it only shows one side of the sponge.
Because a computer has its capacities, I capped the maximum square count to 10,000. 545 more words


Virtual LCD Using Python

got hold of a Raspberry Pi, a 16×2 LCD display and got down to writing a simple game in Python. Pretty soon, he realized that it was cumbersome to have the Ras-Pi and LCD connected when all he wanted to do was write the code. 155 more words

Raspberry Pi

Breadboard Videogame Controller + Pygame Rectangle Animation

I was inspired to work on a homemade videogame controller for my Raspberry Pi using a breadboard after taking apart two old video game controllers… 406 more words


Circle Mover

Playing around with angles and my getCirclePos() function, I came up with these little entities. They have a center, a distance to that center and an angle which constantly increases. 623 more words



This program falls into the category ‘fancy, but not usefull’. It basically starts with one circle, which spawns in new ones. The maximum number of circles is 100, their color is a gray tone (rgb between 50 and 100). 594 more words


FS Letters II

Improving my first version – FS Letters – I changed a core behavior. Instead of going thru the whole file system, saving it, interpreting it and then displaying it, I now went for a dynamic approach. 665 more words



Continuing to clone famous and fairly easy games, I now made my own version of Snake.
In this version you cannot leave the screen, there are never more than three apples on the screen and there are no blocks inside the field. 990 more words