View Single Post
Super Moderator
x2495iiii's Avatar
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 04-24-2010, 03:39 PM

I was actually talking about infinite loops, not necessarily recursive methods.

The problem is that some program elements require infinite loops. For example, RP has an infinite loop for the zombies' motion. This is because unless the game is paused or if you've won, the zombies have to keep moving. Another example would be collision detection, which has to constantly monitor the distance the moving object is from other objects in order to prevent the moving object from passing through other objects.

True, there are ways to limit the times which loops are used, like only having certain collision methods kick in when the moving object is reasonably close to a certain object, but otherwise certain elements of game-design require infinite loops.

Reply With Quote