Commit 0bae3088 by BellCodeEditor

save project

parent deea461b
Showing with 8 additions and 3 deletions
......@@ -52,11 +52,16 @@ while True:
x-=30
else :
x+=30
if apple_x and y == apple_x:
apple_x = random.randint(0,660)
apple_y = random.randint(0,480)
SHENTI.append((x,y))
if apple_x == x and apple_y == y:
mun1 = random.randint(1,22)
mun2 = random.randint(1,16)
apple_x = mun1*30-30
apple_y = mun2*30-30
else:
SHENTI.pop(0)
# SHENTI.append((x,y))
# 接收到退出事件后退出程序
# 将背景图画上去
......
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