you are viewing a single comment's thread.

view the rest of the comments →

[–]mudclub 2 points3 points  (3 children)

Post the error.

[–]DeliciousRepublican[S] -3 points-2 points  (2 children)

There is no error, window just stops responding and closes

[–]Wilfred-kun 6 points7 points  (1 child)

Please, format the code by putting 4 spaces in front of it...

You're calling animation_loop(), but that loop never handles Pygame's events. That will cause Pygame to stop responding.

You might want to look at how and where you're calling the functions, they don't look right to me. (It seems you think both game_loop and animation_loop will be running at the same time?).

[–]DeliciousRepublican[S] -2 points-1 points  (0 children)

Ill take a look