May-06-2021, 10:52 AM
For some reason it freezes on Windows, I'll check on linux later, but it worked once I used a while loop instead of iterator and added event check. It's a simple letter puzzle game for assembling words, kind of like 2D rubik's cube.
count = 0 while count < 100: for event in pygame.event.get(): if event.type == pygame.QUIT: run = False if count % 2 == 0: anim_move_right(randint(0, ltr_range - 1)) else: anim_move_up(randint(0, ltr_range - 1)) count += 1 pygame.quit()Thanks for checking!