Game Development Community

Wrapping my head around the game loop.

by Storm Kiernan · in Torque 3D Professional · 03/22/2011 (9:33 pm) · 2 replies

I am not seeing any game loop; at least not in scripts. I've read that they don't exist in scripts and am wondering how to get things going. I am coming from an XNA and Unity3D background so not having an Update function is new. Are there resources explaining the engines flow and how to work with it?

#1
03/22/2011 (9:53 pm)
There is no game loop because there is no need for a game loop normally. Instead things which need frequent updates have an onUpdate() method in their class script, or preferably, only respond when certain things happen. In other words, everything is event-driven.

I recommend Steve's Simple FPS Tutorial for a great overview of how a simple shooter is structured.
#2
03/22/2011 (10:09 pm)
Thank you for the link, I will check it out.