Game Development Community

Game and render loop

by Ivo Bronsveld · in Torque Game Engine · 03/09/2002 (8:03 am) · 1 replies

Hi...

I've got a simple question (I think). I'm not completely new to (3d) programming, but there's something I just don't seem to understand with the TGE.

With engines I used before you had to do something like this (in pseudo-code)

do

HandleInput
UpdateAI_PlayersLocations

// Do all kinds of things on data or whatever

UpdateCamera

Render

loop

How do you do things like this in the TGE? Is there some kind of a loop in the scripts or is it in the C++ code?

I'm just trying to understand what's going on. For instance, the camera gets moved around based on the users input. Where is this input handled? I really can't seem to find this (vital) piece of information.

That brings up another question. Let's assume (that's probably the situation anyway ;) ) that the entire game and render loop is C++ code. Can I modify, create and update objects, players and especially AI players with console functions and have the changes rendered instantly?

Btw, I'm sorry if this post is just a little bit too long... ;)

Thanks!

About the author

Recent Threads

  • Torque Game Studio

  • #1
    03/11/2002 (2:09 pm)
    Possibly this will help: www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3333

    There's also this thread where we talked about move processing among other things: www.garagegames.com/index.php?sec=mg&mod=forums&page=result.thread&qt=3617 ... but I'm not sure that will be very helpful for getting a general overview. Might have a useful concept or two in it, if you dig.