## 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?


## Naprogramovali ste si vlastnú počítačovú hru?
[](https://www.pygame.org/news)
[](https://www.libsdl.org/)
Since 1998

### 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`

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
```

Note:
* https://www.researchgate.net/publication/324066514_Playing_Flappy_Bird_with_Deep_Reinforcement_Learning
## Pygame Handles


(**http://bit.ly/2Jx2Ht2**)
## Links
* [výsledný projekt z predášky](flappybird.zip) - Flappy Bird
* [výsledný projekt z workshopu](arkanoid.zip) - Arkanoid
* [Pygame Zero homepage](https://pygame-zero.readthedocs.io/) ([sk](https://pgzero-slovak.readthedocs.io/sk/latest/index.html))
* [Wireframe](https://wireframe.raspberrypi.org/) Magazine
* [MagPi](https://www.raspberrypi.org/magpi/) Magazine
* [Mission Python](https://nostarch.com/missionpython) ([YouTube Video](https://www.youtube.com/watch?time_continue=2&v=_2aglIeW1kQ))
* [Tvorba počítačových hier s Pygame Zero](https://legacy.gitbook.com/book/bletvaska/tvorba-pocitacovych-hier-s-pygame-zero/details) - poznámky ku tvorivej dielni