Commit ef9dab9b by BellCodeEditor

save project

parent 6234aec4
Showing with 2 additions and 5 deletions
...@@ -2,8 +2,6 @@ import pygame ...@@ -2,8 +2,6 @@ import pygame
from pygame import locals from pygame import locals
import random import random
pygame.init() # 初始化 pygame.init() # 初始化
score = 0 score = 0
grid_size = 20 # 格子大小 grid_size = 20 # 格子大小
...@@ -52,7 +50,6 @@ cube_colors = [ ...@@ -52,7 +50,6 @@ cube_colors = [
center = [2, 8] # 第2行第8列 center = [2, 8] # 第2行第8列
current_shape = [(0, -1), (0, 0), (0, 1), (1, 0)] current_shape = [(0, -1), (0, 0), (0, 1), (1, 0)]
color = random.choice(cube_colors) color = random.choice(cube_colors)
...@@ -90,5 +87,4 @@ while True: ...@@ -90,5 +87,4 @@ while True:
screen.blit(text_surface, (350,70)) screen.blit(text_surface, (350,70))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
clock.tick(FPS) clock.tick(FPS)
\ 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