pygame.draw.rect(screen,color,rect) :在屏幕上使用color来填充rect指定尺寸的地方
screen.blit(image,rect):在屏幕上指定的rect位置,绘制image。
这篇博客介绍了Pygame库中的两个关键函数:pygame.draw.rect()用于在屏幕上填充指定矩形区域,而pygame.blit()则用于在特定位置绘制图像。通过这两个函数,开发者可以轻松地在Pygame窗口上创建和展示丰富的图形内容。
pygame.draw.rect(screen,color,rect) :在屏幕上使用color来填充rect指定尺寸的地方
screen.blit(image,rect):在屏幕上指定的rect位置,绘制image。
7990
8263
832

被折叠的 条评论
为什么被折叠?
