Commit 2e4625fa by BellCodeEditor

save project

parent 715fb445
Showing with 7 additions and 0 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:
......
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