Commit 57f1cb63 by BellCodeEditor

save project

parent 74db5c0c
Showing with 3 additions and 1 deletions
...@@ -19,6 +19,8 @@ x=360 ...@@ -19,6 +19,8 @@ x=360
y=300 y=300
pos=[(300,270),(330,300),(360,300),(x,y)] pos=[(300,270),(330,300),(360,300),(x,y)]
heah='right' heah='right'
a_x=360
a_y=300
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:
...@@ -50,7 +52,7 @@ while True: ...@@ -50,7 +52,7 @@ while True:
a_x=random.randint.randint(0,22)*30 a_x=random.randint.randint(0,22)*30
a_y=random.randint.randint(0,16)*30 a_y=random.randint.randint(0,16)*30
screen.blit(bg,(0,0)) screen.blit(bg,(0,0))
screen.blit(apple,(120,150)) screen.blit(apple,(a_x,a_y))
screen.blit(tou,(x,y)) screen.blit(tou,(x,y))
for i in range(len(pos)-1): for i in range(len(pos)-1):
screen.blit(body,pos[i]) screen.blit(body,pos[i])
......
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