Commit 79a89adc by BellCodeEditor

save project

parent c6188a1e
OIP-C.jpg

8.9 KB

aaa.jpg

12.8 KB

import pygame import pygame
from pygame import locals
background=pygame.image.load('aaa.jpg')
a=pygame.image.load('apple.png')
b=pygame.image.load('right.png')
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
?? screen=pygame.display.set_mode((414,234))
\ No newline at end of file while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(a,(240,120))
screen.blit(b,(360,300))
pygame.display.update()
th.jpg

11.8 KB

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment