Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson11_diy01

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 2c9e06af authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 00bb2c18 c35860l1462p256a14635/wx880014
Show whitespace changes
Inline Side-by-side
Showing with 6 additions and 2 deletions
  • my_Tetris.py
my_Tetris.py
View file @ 2c9e06af
......@@ -49,6 +49,10 @@ cube_colors = [
center = [2, 8] # 第2行第8列
current_shape = [(0, -1), (0, 0), (0, 1), (-1, 0)]
c = random.choice(cube_colors)
cu = random.choice(shape_list)
current_shape = random.choice(cu)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -67,8 +71,8 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
c = random.choices(cube_colors)
cube = random.choices(shape_list)
# 计算出所有小方块的行、列位置
current_pos = []
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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