当前位置:网站首页>Create a pyGame window with a blue background

Create a pyGame window with a blue background

2022-07-05 04:49:00 Prosperity comes to an end and the city is ruined 891

import pygame
# The import module pygame
pygame.init()
# Call function pygame.init Initialize background settings .
screen = pygame.display.set_mode((800,600))
# Call function pygame.display.set_mode, Enter the pixels that define the width and height of the game window . Assign this to screen.
screen.fill((0,0,255))
# use RGB Value as the fill background color .
pygame.display.flip()
# Make the recently drawn screen visible .

 

 

原网站

版权声明
本文为[Prosperity comes to an end and the city is ruined 891]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140628462765.html