Commit a1fe1e33 by BellCodeEditor

save project

parent 73708388
Showing with 13 additions and 5 deletions
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
screen=pygame.display.set_mode((800,480))
a=pygame.image.load('bg.png')
b=pygame.image.load('right.png')
c=pygame.image.load('apple.png')
while True:
for event in pygame.event.get():
if event.type==locals.QUIT
exit()
screen.blit(a,(0,0))
screen.blit(b,(290,120))
screen.blit(c,(360,300))
pygame.display.update()
# 创建一个窗口
??
\ No newline at end of file
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