Commit 7a56fbee by BellCodeEditor

save project

parent 9cee72f0
Showing with 8 additions and 1 deletions
......@@ -4,20 +4,26 @@ from pygame import locals
pygame.init()
screen = pygame.display.set_mode((660,480))
FPSCLOCK = pygame.time.Clock()
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
x,y = 180,180
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
x += 30
screen.blit(background,(0,0))
screen.blit(right,(180,180))
screen.blit(right,(x,y))
screen.blit(food,(300,300))
screen.blit(body,(150,180))
screen.blit(body,(120,180))
screen.blit(body,(90,180))
pygame.display.update()
FPSCLOCK.tick(3)
\ 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