# j20vsf22 **Repository Path**: openjack/j20vsf22 ## Basic Information - **Project Name**: j20vsf22 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-12 - **Last Updated**: 2021-11-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # J20vsF22 介绍 这是一款基于 Pygame模块的 Python游戏小项目,类似于小时候玩的打飞机小游戏。 首先安装 Pygame 模块 ```python pip install pygame ``` 导入模块: ```python import pygame ``` 在 Pygame 中,原点(0,0)位于屏幕左上角,右下角(x,y)为屏幕坐标最大值,没有负值。 ``` centerx 1 2 (0,0) +————+————+———→(0,x)(top,width,w) (left)| |(right) 1 + |centery | | 2 + | (y,0) ↓—————————————+ (bottom,height,h) ``` 根据面向对象的思想设计模块: 门的开关,不是人去操作门,而是门本身有开关的属性,人只是触发了这个属性。 配置信息 显示活动窗口 监视 I/O活动 战机功能 敌人功能 子弹功能