# python-pygame-飞机大战 **Repository Path**: kuolemax/python_class_setting ## Basic Information - **Project Name**: python-pygame-飞机大战 - **Description**: 用pygame做课设 - **Primary Language**: Python - **License**: CC-BY-SA-4.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2019-12-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python程序设计 ## pygame学习 ### 主模块 pygame #### 子模块 pygame.font + pygame.font.get_fonts() -- 获取系统中的所有字体 + pygame.font.SysFont('fontName', fontSize) -- 设置系统字体,字号 + pygame.render(text, antialias, color, background=None) -- 显示text + pygame.display + pygame.display.set_mode -- 设置窗口大小 + pygame.display.set_caption -- 设置窗口标题 + pygame.display.set_icon -- 设置窗口图标 + pygame.display.flip() -- 让画面立即显示 + pygame.image + pygame.event + pygame.drwa - pygame.draw.circle - pygame.draw.rect + #### 类的定义 + pygame.Rect -- 矩形对象 - a.move_ip + a.h, a.w, a.x, a.y + pygame.Surface - pygame.Surface.get_rect -- 获取对象的矩形参数 + a.h #### 函数 + pygame.init -- 初始化pygame #### 常量