Commit 4f3f01c3 by BellCodeEditor

auto save

parent b9747c66
Showing with 5 additions and 2 deletions
...@@ -2,6 +2,8 @@ import pygame ...@@ -2,6 +2,8 @@ import pygame
from pygame import locals from pygame import locals
import random import random
kik=input("速度")
# 初始化pygame,为使用硬件做准备 # 初始化pygame,为使用硬件做准备
pygame.init() pygame.init()
...@@ -99,4 +101,5 @@ while True: ...@@ -99,4 +101,5 @@ while True:
screen.blit(text,(540,10)) screen.blit(text,(540,10))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(5) FPSCLOCK.tick(str(kik))
\ No newline at end of file
\ No newline at end of file
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