Game results screen
Saturday, August 26th, 2006I’ve started working on the game results screen, which shows player scores and other statistics.
One idea I had for this screen was to include a chat window. That way players can discuss game results after the game is over. I’m surprised so few RTSs have a chat feature here. After all, nearly every first-person shooter game allows chat when a game/round ends. Torque, included. And since Torque already has this feature, including it into my results screen is easy.
One thing I’m finding not-so-easy though is programmatically creating the results screen from C++ code. Torque’s GUI controls are really designed to be instantiated from TorqueScript - and from TorqueScript only. I haven’t seen a single GUI control class that has a convenient C++ constructor. I.e., a constructor that takes traditional arguments like position, text, parent window, etc. In fact, most control classes don’t even have C++ accessor and mutator methods! You have to set all control attributes TorqueScript-style. What a nuisance.
That’s one of the problems in general I’ve found with Torque; some functionality is accessible from TorqueScript only, while other functionality is accessible from C++ only.
In other news: do you recognize these two fugitives?
Catch them in action in a re-release of this gaming classic.








