Commit 343c3360 by BellCodeEditor

auto save

parent 97a25203
Showing with 11 additions and 5 deletions
from pygame import locals
import pygame
j=pygame.image.load('bg.png')
k=pygame.image.load('right.png')
l=pygame.image.load('apple.png')
# 初始化pygame,为使用pygame做准备
pygame.init()
......@@ -7,7 +10,10 @@ pygame.init()
a=pygame.display.set_mode((600,300))
while True:
for abc in pygmae.event.get():
if abc.type== locals().QUIT:
for event in pygame.event.get():
if event.type== locals.QUIT:
exit()
screen.blit()
\ No newline at end of file
a.blit(j,(0,0))
a.blit(k,(0,0))
a.blit(l,(30,30))
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