Pygame中鼠标点击之后,物体逐渐移动到鼠标点击坐标的方法
先上代码
import pygame
from pygame.locals import *
from pygame.math import *
import sys
pygame.init()
size = width, height = 1600, 900
screen = pygame.display.set_mode(size)
color = (0, 0, 0) # 设...
原创
2020-01-08 16:49:25 ·
1862 阅读 ·
0 评论