Commit 2e4625fa by BellCodeEditor

save project

parent 715fb445
Showing with 8 additions and 2 deletions
......@@ -21,6 +21,13 @@ hero=[pygame.image.load('hero1.png'),
pygame.image.load('hero5.png')]
y=400
t=20
cacti=pygame.image.load("cacti.png")
rect=cacti.get_rect()
print(rect)
print(rect.x)
print(rect.y)
print(rect.width)
print(rect.height)
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -54,4 +61,4 @@ while True:
screen.blit(wukong, (150, y))
# 刷新画面
pygame.display.update()
FPS.tick(100)
\ No newline at end of file
FPS.tick(100)
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