2015-06-27, post № 41
programming, Pygame, Python, #around, #bubbles, #circle, #colors, #fancy, #getCirclePos(), #gray, #gray tones, #red, #smoke
This program falls into the category ‘fancy, but not useful’. It basically starts with one circle, which spawns in new ones. The maximum number of circles is 𝟣𝟢𝟢, their color is a gray tone (
rgb between 𝟧𝟢 and 𝟣𝟢𝟢).
2015-06-21, post № 40
programming, Pygame, Python, #black, #dynamic, #file, #file check, #file system, #files, #filesystem, #fs, #red
Improving my first version — FS Letters — I changed a core behavior. Instead of going through the whole file system, saving it, interpreting it and then displaying it, I now went for a dynamic approach. As the filesystem gets checked (𝟨𝟢 times per second), the screen is also updating. This makes for both a more efficient (no freeze!) and a much nicer program. If the program is done checking the file system, the text ‘done’ will appear in the screen’s caption.
2015-06-20, post № 39
games, programming, Pygame, Python, #apples, #simple, #simple snake, #snake, #snake game, #snakes, #video game
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.
Your current score is displayed in the screen caption.
To get more information about Snake, check this Wikipedia entry.
- Arrow keys move the snake,
- Escape pauses and unpauses the game,
- ‘r’ resets the game.
Jonathan Frech's blog; built 2021/04/16 20:21:20 CEST