Program Arcade Games
With Python And PygameDownload all these examples along with supporting files in a zip file: python_examples.zip.
Lab 16: Pygame Sprite Examples
![](python_examples/screenshots/pick_up_blocks.png)
Same as collect blocks example, but you can move the sprite by clicking to pick them up.
![](python_examples/screenshots/sprite_collect_blocks_levels.png)
Expands the prior example to show how to manage a game with levels. Level advances when all the blocks are cleared.
![](python_examples/screenshots/sprite_collect_circle.png)
Same as sprite_collect_blocks.py but with a black circle instead of a block. (Chapter 14)
![](python_examples/screenshots/sprite_collect_graphic.png)
Same as sprite_collect_blocks.py but with a graphic instead of a block. (Chapter 14)
![](python_examples/screenshots/sprite_collect_blocks.png)
Same idea as sprite_collect_blocks.py but uses a Game class to organize the code. This is a more advanced
way of organizing the code. It helps if you want to “restart” a game once it is over. (Chapter 14)
![](python_examples/screenshots/move_sprite_mouse.png)
Move a sprite with the keyboard smoothly and continuously while a key is pressed. (Chapter 14)
You are not logged in. Log in here and track your progress.
Copyright © 2017
English version by Paul Vincent Craven
Spanish version by Antonio Rodríguez Verdugo
Russian version by Vladimir Slav
Turkish version by Güray Yildirim
Portuguese version by Armando Marques Sobrinho and Tati Carvalho
Dutch version by Frank Waegeman
Hungarian version by Nagy Attila
Finnish version by Jouko Järvenpää
French version by Franco Rossi
Korean version by Kim Zeung-Il
Chinese version by Kai Lin
English version by Paul Vincent Craven
Spanish version by Antonio Rodríguez Verdugo
Russian version by Vladimir Slav
Turkish version by Güray Yildirim
Portuguese version by Armando Marques Sobrinho and Tati Carvalho
Dutch version by Frank Waegeman
Hungarian version by Nagy Attila
Finnish version by Jouko Järvenpää
French version by Franco Rossi
Korean version by Kim Zeung-Il
Chinese version by Kai Lin