Andy J Design Game Development and Design

5Jan/102

Common Pitfalls in Your Game Loop

Putting actor logic in your game loop

It's important to remember that we put things into objects for a reason.  One of the greatest reasons is to keep the logic in our code cleanly separated.  If you want the enemies to act one way, you change the code in the enemy object.  At a later point if you change your mind you simply pop some new logic into the object.