用户:罗文浩GGFh查看:0 回复:0 评论:0 创建时间:2022-10-07T17:19:21
【作品展示】

【作品介绍】
vgfvdff
【作品源代码】
import pygame
from pygame.locals import*
x = 210
y = 520
speedx = 1
speedy = 1
pygame.init()
screen=pygame.display.set_mode((480,600))
bg=pygame.image.load('img/img_bg.jpg')
bk=pygame.image.load('img/img_plane.png')
running=True
while running:
screen.blit(bg,(0,0))
screen.blit(bk,(215,510))
pygame.display.flip()
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
running = False
pygame.quit()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn