在这里详述 Python游戏设计基础/第6讲:Pygame介绍.

pygame概述

pygame是一组用于编写游戏的模块的集合。pygame是构筑在SDL库的基础上的,它使我们能够用Python语言来创建功能完整的游戏和多媒体程序。pygame是高度可移植的,几乎可以在任何平台和操作系统上运行。

pygame是自由、免费的,以LGPL协议发布。你可以用它来创建开源、自由、免费、共享或者商业游戏。

pygame的安装

If you are just getting started with pygame, you should be able to get started fairly quickly. Pygame comes with many tutorials and introductions. There is also full reference documentation for the entire library. Browse the documentation from the documenantation index. docs/index.html.

On the pygame website, there is also an online copy of this documentation. You should know that the online documentation stays up to date with the development version of pygame in cvs. This may be a bit newer than the version of pygame you are using.

Best of all the examples directory has many playable small programs which can get started playing with the code right away.

pygame游戏的编辑和运行

http://www.pygame.org/readme.html

http://www.pygame.org/install.html

http://www.pygame.org/docs/tut/intro/intro.html

http://www.pygame.org/docs/tut/ImportInit.html

ch3n2k.com | Copyright (c) 2004-2020 czk.