## Tvorba počítačových hier s knižnicou Pygame Zero miroslav.binas@tuke.sk / [**Pycon 2019**](https://www.pycon.sk)
## Hráte sa počítačové hry?
![Alien Isolation](images/alien.isolation.jpg)
![TIS-100](images/tis.100.jpg)
## Naprogramovali ste si vlastnú počítačovú hru?
[![Pygame logo](images/logo-pygame.png)](https://www.pygame.org/news)
[![SDL logo](images/logo-sdl.png)](https://www.libsdl.org/) Since 1998
![Steam logo](images/logo-steam.jpg)
### Pygame Zero is for creating games without boilerplate.
Note: * https://www.raspberrypi.org/magpi/wp-content/uploads/2015/06/35_PygameZero.jpg
## Installation * Raspberry Pi - builtin * `sudo dnf install pgzero mu` * `pip install pgzero mu-editor`
![Game Loop](images/game-loop-simple.png) Note: * http://gameprogrammingpatterns.com/images/game-loop-simple.png
## Project Structure ``` . ├── game.py ├── sounds/ │ ├── beep.wav │ └── jingle.wav └── images/ ├── background.png ├── bird.png ├── pipe-bottom.png └── pipe-top.png ```
![Game Analysis](images/analysis.png) Note: * https://www.researchgate.net/publication/324066514_Playing_Flappy_Bird_with_Deep_Reinforcement_Learning
## Pygame Handles ![Pygame Handles](images/pygame.handles.png)
## Collisioin Detection
## Questions?
![qr code](https://api.qrserver.com/v1/create-qr-code/?data=http://bit.ly/2Jx2Ht2&size=300x300) (**http://bit.ly/2Jx2Ht2**)