Commit 2bb607a7 by BellCodeEditor

save project

parent c6188a1e
Showing with 33 additions and 4 deletions
import pygame
from pygame import locals
pygame.init()
a=pygame.display.set_mode((640,480))
background=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
a.blit(background,(0,0))
a.blit(apple,(0,0))
a.blit(apple,(610,0))
a.blit(apple,(0,450))
a.blit(apple,(610grhtu3hfuiwyhf wdjq2va ORFB CXZ,LFHGBCX N,450))
pygame.display.update()
\ No newline at end of file
import pygame import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备 # 初始化pygame,为使用pygame做准备
pygame.init() pygame.init()
background=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
right=pygame.image.load("right.png")
body=pygame.image.load("body.png")
# 创建一个窗口 # 创建一个窗口
?? a=pygame.display.set_mode((660,480))
\ No newline at end of file while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
a.blit(background,(0,0))
a.blit(apple,(240,120))
a.blit(right,(360,120))
a.blit(body,(330,120))
a.blit(body,(300,120))
pygame.display.update()
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