Commit 64ff7fe7 by BellCodeEditor

save project

parent 8ca3486b
Showing with 0 additions and 13 deletions
import pygame
from pygame import locals
# 初始化pygame,为使用pygame做准备
......@@ -6,18 +5,7 @@ pygame.init()
# 创建一个窗口
screen=pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
sbody=pygame.image.load("body.png")
shead=pygame.image.load("right.png")
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
\ No newline at end of file
screen.blit(background,(0,0))
screen.blit(apple,(240,120))
screen.blit(shead,(120,150))
screen.blit(sbody,(90,150))
screen.blit(sbody,(60,150))
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