Pygame snippets and random code
Jorge 516ca4be3e Left only one pygame.quit() in game Bullet dodger. | 8 роки тому | |
---|---|---|
snapshots | 8 роки тому | |
src | 8 роки тому | |
.gitignore | 8 роки тому | |
LICENSE | 8 роки тому | |
README.md | 8 роки тому |
This repository contains several Pygame games. Some of them are useful to reuse and to extend, other are just text snippets with test code.
In this section, all the games are listed and described. For
instructions on how to run the games, read the
src/README.md
file.
Just a base Pygame window. It has an icon and a title, but it's empty.
A game in which you can toggle between normal and full screen mode pressing F11. The hardest part of the game comes when you're in full screen mode. You must exit this mode pressing the Escape button.
Just a transparent rectangle. There is some text behind it.
A walking cat. It never stops.
A square that jumps when you press the up arrow key (UP).
A fun and challenging mouse game where you must dodge bullets. How many points will you get?
This code creates a background with a image smaller than the window's resolution. It works by repeating the image until the background is filled.