Commit ff13b4e7 by BellCodeEditor

save project

parent c6f2d5ef
Showing with 5 additions and 0 deletions
......@@ -4,9 +4,14 @@ apx=300
apy=300
n1=0
n2=0
score=0
my_font=pygame.font.FONT(neuropol.ttf)
# 初始化pygame,为使用硬件做准备
pygame.init()
from random import *
io=='score:'+str(score)
text=my_font.render(info,True,(0,0,0))
screen.blit(text,(540,10))
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
FPSCLOCK = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
......
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