Commit fa9303fb by BellCodeEditor

save project

parent 51c3580b
Showing with 4 additions and 3 deletions
import pygame
from pygame import locals
import random
pygame.init() # 初始化
score = 0
......@@ -45,9 +46,9 @@ cube_colors = [
(153, 0, 51), (204, 255, 102), (255, 153, 0)]
center = [2, 8] # 第2行第8列
randen_shape = shape_list[randen.randint(0,len(shape_list)-1)]
current_shape = randen_shape[randen.randint(0,len(randen_shape)-1)]
color = cube_colors[randen.randint(0,len(cube_colors)-1)]
random_shape = shape_list[random.randint(0,len(shape_list)-1)]
current_shape = random_shape[random.randint(0,len(random_shape)-1)]
color = cube_colors[random.randint(0,len(cube_colors)-1)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
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