Game Development Community

Dave Calabrese's Resources

Pausing Background Music on iPhone

The functionality the pause music on the iPhone is already available in iTGB, however it is not exposed to the engine or script. This resource shows how to quickly and easily expose it!

Author Dave Calabrese Date 07/31/2009 (8:39 pm) Comment 1 comments

GuiTimerCtrl - Render Based, Not Time Based

After reviewing some of the existing ways of handling a timer control in Torque, I found I kept running into walls. Much of this seemed to be due to the fact that these timers relied on the system time - so I wrote a new one, based on the existing timers, which is not time based. Instead, it's render-based. So every time we render the control, we update the time. This removed pretty much every problem I was running into.

Author Dave Calabrese Date 07/30/2009 (1:29 am) Comment 2 comments

Multitouch for Objects in iTGB v1.2

Need to extend the multitouch capabilities of iTGB v1.2 so you can cleanly have multiple on-screen touches at once effecting different objects? Then this resource is for you... read on!!

Author Dave Calabrese Date 05/13/2009 (7:12 pm) Comment 20 comments

Good Vibrations - Making your iTGB Game Vibrate

Want the device to vibrate when the player takes damage or dies? It's actually quite simple - although limited. Read on!

Author Dave Calabrese Date 05/08/2009 (7:07 am) Comment 4 comments

Loading and Saving Game Data on the iPhone / iPod Touch

Want to save data to the iPhone/iPod Touch? There are a few ways to do that - one is to store game state data in the NSUserDefaults. This resource explains how to do exactly that!

Author Dave Calabrese Date 05/05/2009 (9:54 pm) Comment 8 comments

Functions for Large Number Math (No Scientific Notation)

Console functions to work around TorqueScripts' converting large numbers of Scientific Notation. No longer will you get a number like "0.75898+e006" when trying to display your score!

Author Dave Calabrese Date 04/24/2009 (11:30 pm) Comment 3 comments

Adding Dynamic TorqueScript Variables to CustomMaterials

Ever wanted to have some logic-driven control over your shaders? Maybe you wanted a glow shader that glows brighter with the characters health. Or maybe you'd like to change the color of something on the fly, in real time, with a simple script variable. With this resource, you can do all that and much, much more.

Author Dave Calabrese Date 08/07/2008 (6:17 pm) Comment 1 comments

T2D: How to load your fxImageMapDatablock2D

Simple code snippet to avoid having gigantic fxImageMapDatablock2D definition files.

Author Dave Calabrese Date 03/25/2005 (9:18 pm) Comment 3 comments