Commit a87878f0 by BellCodeEditor

save project

parent 6a680805
Showing with 8 additions and 1 deletions
import pygame
from pygame import locals
import random
from random import*
pygame.init() # 初始化
# 创建一个窗口
......@@ -67,6 +67,13 @@ while True:
if lu_x <-1000:
lu_x=0
xz.x -= 8
if xz.x < 0-xz.width:
xz = zg.get_rect()
zg = choice([bush,cacti,stone])
xz.x = 1000
xz.x = 500 - xz.height
# 刷新画面
pygame.display.update()
......
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