1. Indentation like heiner55 said !
2. no loops in main loop. it just make him do all his moves in 1 turn.
4. suggestion pygame.time.Clock() should be a variable outside the loop
5. never use python time.sleep() it stop the world.
2. no loops in main loop. it just make him do all his moves in 1 turn.
for coords in path:3. pygame.display.set_caption should not be in loop
4. suggestion pygame.time.Clock() should be a variable outside the loop
5. never use python time.sleep() it stop the world.
99 percent of computer problems exists between chair and keyboard.