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

Administrator / pygame_lesson12_diy2

  • 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 c69a6e39 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 29f63f17
Show whitespace changes
Inline Side-by-side
Showing with 8 additions and 0 deletions
  • my_Tetris.py
my_Tetris.py
View file @ c69a6e39
......@@ -136,6 +136,14 @@ for i, row in zip (range(1,26), num_list):
if gameover == True:
text = font_restart.render("游戏失败,按任意键开始",True,(0,0,0))
screen.blit(text,(20,250))
score = 0
num_list = []
for i in range(25):
num_list.append([0] * 15)
# 得分
text_surface = font.render(str(score), True, (0, 0, 0))
......
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