Game Development Community

Difficulty understanding code

by Ironbelly Studios · in Torque Game Engine · 02/11/2005 (2:02 am) · 1 replies

I have read the script code of chapter 4. This
consists of the bare minimum required to get start. I did not undertsand it completely but got the overall picture of what was been done. Then I started reading the scripts of chapter 5. At the beginning it said that this chapter would add some game play features to the game developed in chapter 4. But the problem is that
code has completely change. What I mean by that is one assumes that more functions are
objects would be added without much change
to the pre - written code but the code is completely changed. And it is very difficult for
me to understand why it is being done.
Also common folder scripts are not explained.

Any one could please help as to what should
I do.

#1
02/11/2005 (6:42 am)
Chapter 4 & 5 deal with making a "base" game. The problem is that this game isn't actually a game, it's just a foundation with no gameplay functionality. What you are actually doing is setting Torque to work.

To do this, you must initiate the client-server framework and other stuff. Those commands aren't really easy to understand. They are mostly part of the common folder scripts.

So my best advice would be copying the scripts and follow whatever the book tells you to do and BELEIVE that it should work. Continue with the other chapters and you'll find info on gameplay and creating things like weapons, ammo & vehicles.

You'll find out that you may create a game even though you won't understand how the engine works in all aspects.

For me, even after an year of Torqueing, various aspects of the engine are still clouded.