pygame各个模块概述

在pygame中,有很多模块,每个模块对应着不同的功能,如果我们知道这些模块是做什么的,那么,对我们的游戏开发会起到关键性的作用。

我们就说说pygame中的各个模块吧!!!

#pygame modules

__author__ = {'name' : 'Hongten',
              'mail' : 'hongtenzone@foxmail.com',
              'blog' : 'http://www.cnblogs.com/hongten',
              'QQ'   : '648719819',
              'Version' : '1.0'}

__modules__ ='''
    pygame.cdrom    访问光驱
    pygame.color        颜色
    pygame.cursors    加载光标
    pygame.display    访问显示设备
    pygame.draw            绘制形状、线和点
    pygame.event    管理事件
    pygame.examples     不同的例子
    pygame.font            使用字体
    pygame.image    加载和存储图片
    pygame.gfxdraw      Anti-aliasing draw functions
    pygame.locals       常量
    pygame.joystick    使用游戏手柄或者 类似的东西
    pygame.key            读取键盘按键
    pygame.mixer    声音
    pygame.mouse    鼠标
    pygame.movie    播放视频
    pygame.music    播放音频
    pygame.overlay    访问高级视频叠加
    pygame            就是我们在学的这个东西了……
    pygame.rect            管理矩形区域
    pygame.scrap        本地剪贴板访问
    pygame.sndarray    操作声音数据
    pygame.sprite    操作移动图像
    pygame.surface    管理图像和屏幕
    pygame.surfarray    管理点阵图像数据
    pygame.tests        测试例子
    pygame.time            管理时间和帧信息
    pygame.transform    缩放和移动图像
'''

print(__modules__)

官方文档:http://www.pygame.org/docs/

posted @ 2014-09-16 19:05  修行,波动线  阅读(772)  评论(0编辑  收藏  举报