版本3和5间的区别 (跳过第2版)
于2006-09-01 12:58:41修订的的版本3
大小: 2050
编辑: czk
备注:
于2006-09-02 11:53:55修订的的版本5
大小: 2216
编辑: czk
备注:
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
在这里详述 Python游戏设计基础/第6讲:Pygame介绍. [[TableOfContents]]
行号 5: 行号 5:
pygame是一组用于编写游戏的模块的集合。pygame是构筑在SDL库基础上的,它使我们能够用Python语言来创建功能完整的游戏和多媒体程序。pygame是高度可移植的,几乎可以在任何平台和操作系统上运行。 pygame是主要构筑在SDL库基础上的一组Python模块的集合,它使我们能够用Python语言来创建功能完整的游戏和多媒体程序。pygame是高度括平台可移植的,几乎可以在任何平台和操作系统上运行。
行号 7: 行号 7:
pygame是自由、免费的,以LGPL协议发布。你可以用它来创建开源、自由、免费、共享或者商业游戏。 pygame是自由、免费的,以GNU LGPL 2.1协议发布,完整的协议可以在 http://www.gnu.org/copyleft/lesser.html 找到。这协议基本上就让你可以在你的任何项目中使用pygame。你可以用它来创建开源、自由、免费、共享或者商业游戏。但是如果你要增加和改变pygame本身的功能,你必须以一种LGPL兼容的协议来发布这种修改。

而examples子目录中的程序属于公共域软件。
行号 11: 行号 14:
    You should definitely begin by installing a binary package for your system. The binary packages usually come with or give the information needed for dependencies. Choose an appropriate installer for your system and version of python from the pygame downloads page. http://www.pygame.org/download.shtml pygame安装的简单方法是下载对应于你的系统的二进制pygame安装包。二进制安装包通常包括了依赖信息。从 http://www.pygame.org/download.shtml 可以找到你的系统和python版本对应的pygame安装包。
行号 13: 行号 16:
    Installing from source is fairly automated. The most work will involve compiling and installing all the pygame dependencies. Once that is done run the "setup.py" script which will attempt to auto-configure, build, and install pygame. 从源代码安装pygame也是相当自动的过程。主要的工作就是要安装pygame所依赖的软件包。一旦它所依赖的东西就绪,那么只要简单的运行setup.py就可以完成pygame的自动配置、编译和安装。
行号 15: 行号 18:
    Much more information about installing and compiling is available in the install.html file. pygame非常强的依赖于SDL和Pygame。同时它也连接或者嵌入了几个其他的小程序库。font模块依赖于SDL_tff(它又依赖于freetype),mixer和mixer.music模块依赖于SDL_mixer,imag模块依赖于SDL_image(它又依赖于libjpeg和libpng),transform模块为了rotozoom函数而内嵌了SDL_rotozoom,surfarray模块需要python的Numeric包来提供多维数组。
行号 17: 行号 20:
在 http://www.pygame.org/install.html 有更多关于安装的信息。
行号 18: 行号 22:
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. = pygame起步 =
行号 20: 行号 24:
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. 作为起步,pygame有很多tutorial和介绍文章。然后在examples目录中,有很多可以运行的小程序,可以从这些程序的代码开始动手。
行号 22: 行号 26:
Best of all the examples directory has many playable small programs which can get started playing with the code right away.

= pygame游戏的编辑和运行 =
而完整的pygame参考手册在 http://www.pygame.org/install.html 可以找到。

TableOfContents

pygame概述

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

pygame是自由、免费的,以GNU LGPL 2.1协议发布,完整的协议可以在 http://www.gnu.org/copyleft/lesser.html 找到。这协议基本上就让你可以在你的任何项目中使用pygame。你可以用它来创建开源、自由、免费、共享或者商业游戏。但是如果你要增加和改变pygame本身的功能,你必须以一种LGPL兼容的协议来发布这种修改。

而examples子目录中的程序属于公共域软件。

pygame的安装

pygame安装的简单方法是下载对应于你的系统的二进制pygame安装包。二进制安装包通常包括了依赖信息。从 http://www.pygame.org/download.shtml 可以找到你的系统和python版本对应的pygame安装包。

从源代码安装pygame也是相当自动的过程。主要的工作就是要安装pygame所依赖的软件包。一旦它所依赖的东西就绪,那么只要简单的运行setup.py就可以完成pygame的自动配置、编译和安装。

pygame非常强的依赖于SDL和Pygame。同时它也连接或者嵌入了几个其他的小程序库。font模块依赖于SDL_tff(它又依赖于freetype),mixer和mixer.music模块依赖于SDL_mixer,imag模块依赖于SDL_image(它又依赖于libjpeg和libpng),transform模块为了rotozoom函数而内嵌了SDL_rotozoom,surfarray模块需要python的Numeric包来提供多维数组。

http://www.pygame.org/install.html 有更多关于安装的信息。

pygame起步

作为起步,pygame有很多tutorial和介绍文章。然后在examples目录中,有很多可以运行的小程序,可以从这些程序的代码开始动手。

而完整的pygame参考手册在 http://www.pygame.org/install.html 可以找到。

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

Pygame起步 (2010-01-29 16:48:28由s235-200编辑)

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