![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pygame
Dilly__dally
这个作者很懒,什么都没留下…
展开
-
pygame项目一 物体移动
import pygame import sys from pygame.locals import * #导入所有的pygame变量,即不必再通过pygame.来调用 # 初始化pygame pygame.init() clock = pygame.time.Clock() size = width,height = 600,400 #相当于元组 speed = [-2,1] #水平和...原创 2018-07-25 14:39:44 · 3417 阅读 · 0 评论 -
pygame项目二黑客帝国
import pygame import sys #初始化pygame pygame.init() size = width,height =600,400 screen = pygame.display.set_mode(size) pygame.display.set_caption("la la la") bg = (0,0,0) #黑色 font = pygame.font.Font...原创 2018-07-27 01:28:12 · 401 阅读 · 0 评论