安装pygame
首先尝试:
pip install pygame -i http:// pypi.douban.com/simple
如果出错,尝试
pip install pygame -i http:// pypi.douban.com/simple --trusted-host http:// pypi.douban.com
开始玩游戏!
https://www.pygame.org/
python3 -m pygame.examples.aliens
想要学习更多东西?
Below are unofficial tutorials and guides. Anything with wrong install instructions is not allowed.
General Tutorials
- Tutorials by DR0ID
- PyGame object oriented tutorials by przemo_li
- Thepythongamebook tutorial about Pygame
Pygame Tutorials on Specific Topics
- Screencasts and tutorials at Scriptedfun, making an arkanoid type game
- A tutorial on making a top-down tile-based game
- PyGame Physics Youtube Tutorials by maaack
- YouTube series creating a top down racing game with Python 3