Commit 03b9a13c by BellCodeEditor

save project

parent 8ce43219
Showing with 3 additions and 3 deletions
import pygame import pygame
from pygame import locals from pygame import locals
import random
pygame.init() # 初始化 pygame.init() # 初始化
...@@ -22,7 +23,7 @@ index = 0 ...@@ -22,7 +23,7 @@ index = 0
jumpState = "runing" jumpState = "runing"
y = 400 y = 400
t = 30 t = 30
stone_x =
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -58,4 +59,4 @@ while True: ...@@ -58,4 +59,4 @@ while True:
screen.blit(wukong, (150, y)) screen.blit(wukong, (150, y))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(30)
\ 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