【发布时间】:2017-03-12 03:42:21
【问题描述】:
我想替换这个绘制矩形函数,而是让它生成一个图像。
矩形函数:
pygame.draw.rect(pygame.display.set_mode((800,600)), black, [0,0, 100, 100])
正在寻找这样的东西:
pygame.draw.image(**coordinatesX**, **coordinatesY**, **imagefile.jpg**)
【问题讨论】:
-
此链接可能会有所帮助:stackoverflow.com/questions/8873219/…
标签: python python-2.7 pygame pygame-surface