pygame 贪吃蛇
import pygame, sys
import random
from pygame.math import Vector2
pygame.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 ·
187 阅读 ·
0 评论