【飞机大战项目学习笔记day02】项目实战 —— 飞机大战+目标+实战步骤+确认模块 —— pygame+安装 pygame+验证安装

源代码见github地址:https://github.com/w1449550206/airplane

项目实战 —— 飞机大战

目标

  • 强化 面向对象 程序设计
  • 体验使用 pygame 模块进行 游戏开发

实战步骤

  1. pygame 快速体验
  2. 飞机大战 实战

确认模块 —— pygame

  • pygame 就是一个 Python 模块,专为电子游戏设计
  • 官方网站:https://www.pygame.org/
    • 提示:要学习第三方模块,通常最好的参考资料就在官方网站
网站栏目 内容
GettingStarted 在各平台安装模块的说明
Docs pygame 模块所有 子类 的参考手册

安装 pygame

$ sudo pip3 install pygame

验证安装

$ python3 -m pygame.examples.aliens

注意:豆瓣源下载真的很快

pip  install  -i  https://pypi.doubanio.com/simple/  --trusted-host py
pi.doubanio.com pygame

在这里插入图片描述

发布了99 篇原创文章 · 获赞 19 · 访问量 3477

猜你喜欢

转载自blog.csdn.net/qq_35456045/article/details/104065456