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
jumpState = "runing"
y = 400
t = 30
nmsl=random.randint(8,41)
fuck=[bitch,shit,cat]
ohhh=random.choice(fuck)
rice=ohhh.get_rect()
rice.x=1000
rice.y=500-rice.height
pop=rit.get_rect()
pop.x=0
pop.y=500
rit_x=0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -54,13 +53,16 @@ while True:
index = 0
screen.blit(background, (0, 0))
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:
ohhh=random.choice(fuck)
rice=ohhh.get_rect()
rice.x=1000
rice.y=500-rice.height
screen.blit(ohhh,(rice.x,rice.y))
screen.blit(rit,(pop.x,pop.y))
pygame.display.update()
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