Commit c9c833da by BellCodeEditor

save project

parent 246dd926
Showing with 3 additions and 1 deletions
import pygame
import random
from pygame import locals
pygame.init() # 初始化
......@@ -15,8 +16,9 @@ hero = [pygame.image.load('hero1.png'),pygame.image.load('hero2.png'),pygame.ima
index = 0
jump='runing'
y=400
rect=xuanze.get_rect()
t=30
xuanze=random.choice([cacti,stone,apple])
rect=xuanze.get_rect()
rect.x=1000
rect.y=500-rect.height
while True:
......
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