![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Pygame
冥想10分钟大师
持续的坚持学习才是真
展开
-
Pygame学习笔记之一:飞船左右移动射击
参数 set.py class Settings(): """存储《外星人入侵》的基本参数""" def __init__(self): """初始化游戏的设置""" #屏幕参数,背景颜色,移动速度 self.screen_width = 1200 self.screen_height = 700 se...原创 2019-03-21 13:10:53 · 991 阅读 · 0 评论 -
Pygame学习笔记之二:火箭上下移动射击
参数 class Canshu(): def __init__(self): self.screen_width = 1200 self.screen_height = 800 self.bg_color = (250,250,250) self.rocket_speed = 2 self.zidan_s...原创 2019-03-23 11:23:21 · 2960 阅读 · 0 评论 -
Pygame学习笔记之三:飞船大战外星人
参数 settings.py class Settings(): """存储《外星人入侵》的基本参数""" def __init__(self): """初始化游戏的设置""" #屏幕设置 self.screen_width = 1200 self.screen_height = 700 self.bg...原创 2019-03-23 11:37:56 · 1051 阅读 · 0 评论