Commit dc7abc61 by BellCodeEditor

save project

parent a295ac62
Showing with 15 additions and 0 deletions
......@@ -2,7 +2,21 @@ import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((660,480))
bg=pygame.image.load('bg.png')
fd=pygame.image.load('apple.png')
sr=pygame.image.load('right.png')
su=pygame.image.load('up.png')
sd=pygame.image.load('down.png')
sl=pygame.image.load('left.png')
bd=pygame.image.load('body.png')
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(fd,(300,270))
screen.blit(sr,(240,120))
screen.blit(bd,(210,120))
screen.blit(bd,(210,90))
screen.blit(bd,(210,60))
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