Why a main game loop is necessary for developing a game?

Posted by Tattat on Stack Overflow See other posts from Stack Overflow or by Tattat
Published on 2010-04-02T08:12:23Z Indexed on 2010/04/02 8:23 UTC
Read the original article Hit count: 263

I find that many game development requires a main game loop, but I don't know why it is necessary. Can't we implement an event listener, and response to every user actions. Also, the animation can be played when a event occurs.
What is the purpose for making a main game loop.

© Stack Overflow or respective owner

Related posts about game-development

Related posts about functional-programming