Commit 5a039b60 by BellCodeEditor

save project

parent 683e8593
Showing with 8 additions and 7 deletions
import pygame,random import pygame,random
...@@ -18,14 +18,13 @@ index = 0 ...@@ -18,14 +18,13 @@ index = 0
jumpState = "runing" jumpState = "runing"
y = 400 y = 400
t = 30 t = 30
nmsl=random.randint(8,41)
fuck=[bitch,shit,cat] fuck=[bitch,shit,cat]
ohhh=random.choice(fuck) ohhh=random.choice(fuck)
rice=ohhh.get_rect() rice=ohhh.get_rect()
rice.x=1000 rice.x=1000
rice.y=500-rice.height rice.y=500-rice.height
pop=rit.get_rect() rit_x=0
pop.x=0
pop.y=500
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:
...@@ -54,13 +53,16 @@ while True: ...@@ -54,13 +53,16 @@ while True:
index = 0 index = 0
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
screen.blit(wukong, (150, y)) screen.blit(wukong, (150, y))
rice.x-=random.randint(8,41) rit_x-=nmsl
if rit_x<=-1000:
rit_x=0
screen.blit(rit,(rit_x,500))
rice.x-=nmsl
if rice.x<0-rice.width: if rice.x<0-rice.width:
ohhh=random.choice(fuck) ohhh=random.choice(fuck)
rice=ohhh.get_rect() rice=ohhh.get_rect()
rice.x=1000 rice.x=1000
rice.y=500-rice.height rice.y=500-rice.height
screen.blit(ohhh,(rice.x,rice.y)) screen.blit(ohhh,(rice.x,rice.y))
screen.blit(rit,(pop.x,pop.y))
pygame.display.update() pygame.display.update()
FPS.tick(30) 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