Commit 0a1342f8 by BellCodeEditor

save project

parent f0eb4583
Showing with 1 additions and 1 deletions
...@@ -89,7 +89,7 @@ while True:#重复执行以下代码 ...@@ -89,7 +89,7 @@ while True:#重复执行以下代码
#通过减1来遍历列表中从第1项到倒数第2项所有坐标 #通过减1来遍历列表中从第1项到倒数第2项所有坐标
#绘制分数 #绘制分数
info = 'Score' + str(score) #将要打印的内容 info = 'Score' + ' ' + str(score) #将要打印的内容
text = my_font.render(info,True,(0,0,0)) #以纯黑色渲染,赋值给变量 text = my_font.render(info,True,(0,0,0)) #以纯黑色渲染,赋值给变量
screen.blit(text,(540,10)) #在540,10渲染分数 screen.blit(text,(540,10)) #在540,10渲染分数
#(0,0,0)是色盘,由三个0-255的数表示颜色,(0,0,0)指黑色 #(0,0,0)是色盘,由三个0-255的数表示颜色,(0,0,0)指黑色
......
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