摘要:
import sys,mathimport pygame#使用pygame之前必须初始化pygame.init()#设置主屏窗口screen = pygame.display.set_mode((800,600))#设置窗口标题pygame.display.set_caption('')# sour 阅读全文
posted @ 2022-04-30 18:19
记录——去繁就简
阅读(119)
评论(0)
推荐(0)
摘要:
import sys,mathimport pygame#使用pygame之前必须初始化pygame.init()#设置主屏窗口screen = pygame.display.set_mode((800,600))#设置窗口标题pygame.display.set_caption('')# sour 阅读全文
posted @ 2022-04-30 16:47
记录——去繁就简
阅读(431)
评论(0)
推荐(0)
摘要:
x0, y0 = 250, 250x1, y1 = 200, 200x2, y2 = 350, 200x3, y3 = 150, 300x4, y4 = 300, 300 d = True if y1 > 300: d = Falseelif y1 < 200: d = Trueif d == Fa 阅读全文
posted @ 2022-04-30 16:29
记录——去繁就简
阅读(121)
评论(0)
推荐(0)
摘要:
无约束:x1, y1, x2, y2, x3, y3, x4, y4 = 135, 135, 64, 135, 64, 64, 135, 64 x0,y0 = 100,100 y1 -= 10y2 -= 10y3 += 10y4 += 10 y1 += 10y2 += 10y3 -= 10y4 -= 阅读全文
posted @ 2022-04-30 13:31
记录——去繁就简
阅读(65)
评论(0)
推荐(0)
摘要:
点旋转:def count(angle,length): # y = y2-y1 y = math.sin(math.pi * (angle / 180)) * length y2 = int(y + y1) # x = x2-x1 x = math.cos(math.pi * (angle / 1 阅读全文
posted @ 2022-04-30 10:48
记录——去繁就简
阅读(317)
评论(0)
推荐(0)
摘要:
def count(angle): # y = y2-y1 y = math.sin(math.pi * (angle / 180)) * 50 y2 = int(y + y1) # x = x2-x1 x = math.cos(math.pi * (angle / 180)) * 50 x2 = 阅读全文
posted @ 2022-04-30 09:26
记录——去繁就简
阅读(140)
评论(0)
推荐(0)

浙公网安备 33010602011771号