Sat May 6 05:55:00 UTC 2023 inscode

上级 becd727a
print('欢迎来到 InsCode')
\ No newline at end of file
import pygame
pygame.init()
width = 800
height = 600
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption("My Pygame Window")
# 游戏循环
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
# 填充背景色
screen.fill((255, 255, 255))
# 绘制其他内容
pygame.draw.circle(screen, (255, 0, 0), (width//2, height//2), 50)
# 更新窗口
pygame.display.flip()
pygame.quit()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册