Commit 19c1c835 by BellCodeEditor

save project

parent 6512f8bc
Showing with 3 additions and 0 deletions
...@@ -3,6 +3,7 @@ from pygame import locals ...@@ -3,6 +3,7 @@ from pygame import locals
pygame.init() pygame.init()
screen=pygame.display.set_mode((660,480)) screen=pygame.display.set_mode((660,480))
FPECLOCK=pygame.time.Clock() FPECLOCK=pygame.time.Clock()
position=[(180,90),(180,120),(210,120),(x,y)]
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type==locals.QUIT: if event.type==locals.QUIT:
...@@ -10,8 +11,10 @@ while True: ...@@ -10,8 +11,10 @@ while True:
y+=30 y+=30
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(right,(240,120)) screen.blit(right,(240,120))
for i in range(len()-1)
screen.blit(food,(210,120)) screen.blit(food,(210,120))
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(right,(240,120)) screen.blit(right,(240,120))
screen.blit(food,(360,300)) screen.blit(food,(360,300))
pygame.display.updata() pygame.display.updata()
......
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