TGB/Tutorials and Guides

From TDN


Tutorials and Reference Guides

Here you will find helpful user submitted articles covering everything from in depth game making tutorials to general information on specific TGB functionality.

To find out how to add your own articles to this listing, go here.



Image:HubHeaderLeftA.gif Image:HubHeaderRightA.gif
Image:HubHeaderLeftB.gif

Game Tutorials

Image:HubHeaderRightB.gif

Beginner

Breakout Learn how to program in TorqueScript while creating a Breakout/Arkanoid type game.
Rainy_Day Great tutorial on using particle effects, t2dTrigger objects, and behaviors.
Shooter The basics of the TGB editor are explained while creating a side scrolling shooter.
TicTacToe Create simple complete Tic-tac-toe gameplay.
NetworkTicTacToe Create simple complete Tic-tac-toe gameplay over a network.
Stacker_Clone Aims to take someone from zero knowledge of TGB to a working game.
Match 3 This tutorial demonstrates a very basic match-3 engine.
Rock Paper Scissors Video Tutorial This series contains 5 videos for a full working Rock Paper Scissors game. Complete walkthrough and explained code.
Reflection Grid PDF Guide A very detailed guide covering the creation of a shooter. This guide covers making the level, player controls, lasers, damage, particle effects, and scoring.

Intermediate

Alien Invasion Create a UFO game where you fly around in your UFO as the level changes from day to night.
FishGameBehavior Create the classic TGB Fish Game using behaviors, instead of pure script.
Basic_aStar Easy way to use aStar in you game.

Advanced

Fill Battle Build a board game and learn TorqueScript, C++, and A.I.
The Game of Life Build a C++ cellular automata engine and integrate with TorqueScript
Cellular Automata Laboratory Extend the CA class from the Game of Life to a new class

Genre

Asteroids A large tutorial series covering the creation of a top down shooter.
Platformer Tutorial series that deals with basic platformer mechanics.
Pacman A large tutorial explaining how a pacman clone is implemented (with help from aStar).
Image:HubFooterLeftA.gif Image:HubFooterRightA.gif
Image:HubFooterLeftB.gif Image:HubFooterRightB.gif




Image:HubHeaderLeftA.gif Image:HubHeaderRightA.gif
Image:HubHeaderLeftB.gif

Mini Tutorials

Image:HubHeaderRightB.gif
SplashScreen (TGB 1.7.1) Set up a splash screen using a behavior.
Multiple Splash Screens (TGB 1.7.3) Simple engine that displays 1-x splash screens.
Pause Game (TGB 1.7.3) Pause your game when user navigates away from the game.
TScriptArray Resource (TGB 1.7.4) Basic usage of TScriptArray Resource to write custom operations on a tilelayer.
Changing Levels (TGB 1.7.3) Changing Levels.
Image:HubFooterLeftA.gif Image:HubFooterRightA.gif
Image:HubFooterLeftB.gif Image:HubFooterRightB.gif




Image:HubHeaderLeftA.gif Image:HubHeaderRightA.gif
Image:HubHeaderLeftB.gif

Torque Scripter Articles

Image:HubHeaderRightB.gif
Using the Torque 2D Console Shows how to open the console in Torque 2D, and how to access the console.log file. A simple code example is also included.
Creating New Script Files This article will show you how to create and execute script files using the console and in code. Also discusses re-executing script.
Explaining Main.cs and Game.cs This article will cover the script files include in all new Torque 2D projects. It will go over what is is these files and what code you should add to it.
Naming Objects This article will show you how to name objects and access the object in code.
Classes This article will show you how to set an object's class, create functions for that class, and use callbacks such as onLevelLoaded().
Object References Learn how to access references to call functions.

Videos

Torque Script Video Series (Video 1) This video covers serval features of Torque Script for use with Torque 3D, Torque 2D, and iTorque2D. Using the Console, Mathematical Expressions, Variables, Arrays, and If Statments.
Torque Script Video Series (Video 2) This video covers serval features of Torque Script for use with Torque 3D, Torque 2D, and iTorque2D. Creating a Function, Arguments, Returning Arguments, and Loops.
Torque Script Video Series (Video 3) This video covers serval features of Torque Script for use with Torque 3D, Torque 2D, and iTorque2D. Creating a Game Script and Packages.
Celling Images for Torque 2D In this video I show some tricks for celling images for Torque 2D in photoshop.
Image:HubFooterLeftA.gif Image:HubFooterRightA.gif
Image:HubFooterLeftB.gif Image:HubFooterRightB.gif




Image:HubHeaderLeftA.gif Image:HubHeaderRightA.gif
Image:HubHeaderLeftB.gif

Reference Guides

Image:HubHeaderRightB.gif

Basics

TGB_Units Learn about TGB units and measuring conventions.

Collision Detection

Collision Detection and Response A background article on collision detection and response. (PDF)

Debugging

TGB Debug Banner How to use the TGB debug banner, which provides runtime information such as object counts, fps etc. A visual guide to the debug modes can be found here.

FileIO

FileIO in TGB 1.6 Details the changes to file handling. Applies to all TGB versions after 1.6.

GUI

TGB GUI Reference A reference of the GuiControl classes of TGB.
The GUI Editor A simple tutorial on the GUI Editor. Applies to all TGB versions after 1.5.

Networking

Basics of Networking An introduction to using the built in networking of TGB.

Particle Effects

TGB Particle Engine An easy-to-read explanation of the workings of the (really cool) TGB particle engine.

Scripting

TGB Reference Guide The complete script reference to TGB. Use as a supplement to the reference included in the official documentation.
TorqueScript Overview Based on a preview version of The Game Programmer's Guide to Torque
TorqueScript Quick Reference A synopsis of the TorqueScript language (the scripting language of both TGE and TGB)
TorqueScript Overview Based on a preview version of The Game Programmer's Guide to Torque

Scripting Effects

Making an AfterImage Effect A quick run-through on how to create an after image effect in Torque Game Builder.

Source Code

Setting up Microsoft Visual C++ 2008 Express A guide to setting up MS Visual C++ to compile TGB source code.
Image:HubFooterLeftA.gif Image:HubFooterRightA.gif
Image:HubFooterLeftB.gif Image:HubFooterRightB.gif