diff --git a/my_game.py b/my_game.py index 900b0dd..1da9e48 100644 --- a/my_game.py +++ b/my_game.py @@ -24,7 +24,7 @@ t=30 obstacle=random.choice([bush,stone,cacti]) rect=obstacle.get_rect() rect.x=1000 -rect_y=500-rect.height +rect.y=500-rect.height while True: for event in pygame.event.get(): if event.type == locals.QUIT: