zoukankan      html  css  js  c++  java
  • 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/

  • 相关阅读:
    docker基本命令
    服务器端使用DeferredResult异步推送技术
    单链表输出倒数第k个结点值(栈实现)
    fork炸弹
    BlockingQueue实现阻塞队列
    C#工作笔记
    实现一个简单的Log框架
    (转载)在spring的bean中注入内部类
    Spring整合Hessian
    spring整合axis2(最小配置化)的示例
  • 原文地址:https://www.cnblogs.com/liuzhi/p/3975645.html
Copyright © 2011-2022 走看看