def game_loop(): global fish_number in_game = True while in_game: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() quit() screen.fill(white) #Here is the function I call on next line fish_display_start(random.randrange(0,100,1)*displ ay_width/100, #def fish_display_start(fish_startx,fish_starty): random.randrange(0,100,1)*display_height/100) # global fish_number # for fish in range(fish_number): # screen.blit(fishImg,(fish_startx,fish_starty)) pygame.display.update() clock.tick(1)
when I run it, it says "expected an indented block". Mistake here but I can't find it.

More...