Commit 8aba0701 by BellCodeEditor

save project

parent 14add809
Showing with 17 additions and 2 deletions
......@@ -4,4 +4,20 @@ import pygame
pygame.init()
# 创建一个窗口
scree = pygame.display.set_mode((660,480),0,32)
\ No newline at end of file
scree = pygame.display.set_mode((660,480),0,32)
backgroud = pygame.image.loak('bg.png')
right = pygame.image.loak('right.png')
food = pygame.image.loak('apple.png')
body = pygame.image.loak('body.png')
while True:
for event in pygam.event.get():
if event.type == locals.QUIT
exit()
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(boby,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
screen.blit(food,(360,300))
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