Commit 95bd07a5 by BellCodeEditor

save project

parent 9763c7cc
Showing with 2 additions and 2 deletions
import pygame import pygame
from pygame import locals from pygame import locals
import random import random
#
pygame.init() # 初始化 pygame.init() # 初始化
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((1000, 600)) screen = pygame.display.set_mode((1000, 600))
...@@ -33,7 +33,7 @@ while True: ...@@ -33,7 +33,7 @@ while True:
exit() exit()
if jumpState == "runing": if jumpState == "runing":
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_ww: if event.key == locals.K_w:
jumpState = "up" jumpState = "up"
if jumpState == "up": # 起跳 if jumpState == "up": # 起跳
if t>0: if t>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