标签: python pygame pygame-surface
为我的游戏一遍又一遍地输入screen.blit(surface,(posx,posy))非常烦人。有更快的方法吗?!
screen.blit(surface,(posx,posy))
答案 0 :(得分:0)
例如,使用功能可以使功能更短
def blit(img,x,y): screen.blit(img, (round(x),round(y)))
要调用它,您将使用类似: blit(mypicture,324,532)
blit(mypicture,324,532)