pygame 贪吃蛇
import pygame, sysimport randomfrom pygame.math import Vector2pygame.init()class SNAKE: def __init__(self): self.body = [Vector2(5,10),Vector2(4,10),Vector2(3,10)] self.direction = Vector2(1,0) self.new_block = False d
原创
2021-01-28 08:59:18 ·
231 阅读 ·
0 评论