Commit 2b95512f by BellCodeEditor

save project

parent eb81724e
Showing with 2 additions and 2 deletions
import pygame
from pygame import locals
import random
pygame.init() # 初始化
score = 0
grid_size = 20 # 格子大小
......@@ -70,7 +70,7 @@ while True:
elif event.key == locals.K_RIGHT: # 向左
if center[1] < 15:
center[1] += 1
elif event.key == locals.K_DOWN: # 向下
if center[0] < 25:
center[0] += 1
......
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