Commit 5584236c by BellCodeEditor

save project

parent 50e8c482
Showing with 3 additions and 3 deletions
import pygame
from pygame import locals
import random
pygame.init() # 初始化
# 创建一个窗口
screen = pygame.display.set_mode((1000, 600))
......@@ -20,8 +20,8 @@ index = 0
y=400
jumpState = "runing"
t=30
object=range.choice([bush,stone,cacti])
rect.x=1000
obstacle = random.choice([bush,stone,cacti])
rect.x=1000
rect.y=500 - rect.height
while True:
for event in pygame.event.get():
......
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