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/

  • 相关阅读:
    Spring中@Autowired注解与自动装配
    Nginx教程(一)-全面认知
    hadoop-mapreduce 详解
    python with hadoop
    大数据架构与技术选型
    hadoop-集群搭建
    虚拟机Vmware-网络配置
    linux 忘记密码
    高效编程之 小技巧归纳
    kafka 教程(四)-原理进阶
  • 原文地址:https://www.cnblogs.com/liuzhi/p/3975645.html
Copyright © 2011-2022 走看看