• pygame系列_pygame的各模块叙述


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

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

     1 #pygame modules
     2 
     3 __author__ = {'name' : 'Hongten',
     4               'mail' : 'hongtenzone@foxmail.com',
     5               'blog' : 'http://www.cnblogs.com/hongten',
     6               'QQ'   : '648719819',
     7               'Version' : '1.0'}
     8 
     9 __modules__ ='''
    10     pygame.cdrom    访问光驱
    11     pygame.color        颜色
    12     pygame.cursors    加载光标
    13     pygame.display    访问显示设备
    14     pygame.draw            绘制形状、线和点
    15     pygame.event    管理事件
    16     pygame.examples     不同的例子
    17     pygame.font            使用字体
    18     pygame.image    加载和存储图片
    19     pygame.gfxdraw      Anti-aliasing draw functions
    20     pygame.locals       常量
    21     pygame.joystick    使用游戏手柄或者 类似的东西
    22     pygame.key            读取键盘按键
    23     pygame.mixer    声音
    24     pygame.mouse    鼠标
    25     pygame.movie    播放视频
    26     pygame.music    播放音频
    27     pygame.overlay    访问高级视频叠加
    28     pygame            就是我们在学的这个东西了……
    29     pygame.rect            管理矩形区域
    30     pygame.scrap        本地剪贴板访问
    31     pygame.sndarray    操作声音数据
    32     pygame.sprite    操作移动图像
    33     pygame.surface    管理图像和屏幕
    34     pygame.surfarray    管理点阵图像数据
    35     pygame.tests        测试例子
    36     pygame.time            管理时间和帧信息
    37     pygame.transform    缩放和移动图像
    38 '''
    39 
    40 print(__modules__)

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

    ========================================================

    More reading,and english is important.

    I'm Hongten

     

    大哥哥大姐姐,觉得有用打赏点哦!多多少少没关系,一分也是对我的支持和鼓励。谢谢。
    Hongten博客排名在100名以内。粉丝过千。
    Hongten出品,必是精品。

    E | hongtenzone@foxmail.com  B | http://www.cnblogs.com/hongten

    ========================================================

  • 相关阅读:
    java中获取服务器的IP和端口
    springboot项目 配置https
    vue+element+upload实现头像上传
    js指定日期时间加一天 ,判断指定时间是否为周末
    在内网中 vue项目添加ECharts图表插件
    vue+element树组件 实现树懒加载
    iview 表格随着更改刷新
    vue设置input不可编辑切换
    .Net程序员学用Oracle系列(3):数据库编程规范
    .Net程序员学用Oracle系列(2):准备测试环境
  • 原文地址:https://www.cnblogs.com/hongten/p/hongten_pygame_modules.html
Copyright © 2020-2023  润新知