Game Development Community

dev|Pro Game Development Curriculum

New TGB Tutorial Series - The Breakout Tutorial

by Tetraweb · 03/30/2008 (6:33 am) · 12 comments

Hi, I have a seven part tutorial series on creating a Breakout/Arkanoid type of game. I am almost finished with part seven, so I thought I would begin posting the first parts in the series now.

Overall Goal of the Series
This series began as an experiment a year ago, while I was teaching myself how to program in TorqueScript. I began writing notes for my own use on how to do certain things. These notes kind of spontaneously organized themselves into a tutorial, and I found that I liked writing it. It was also a great way to help solidify things in my mind.

A Few Things to Note

What? No Behaviors?
There are no behaviors whatsoever used in this tutorial. I began writing Part 1 when TGB was at version 1.13, but that's not why I didn't include behaviors. The main thrust of this series is scripting, using TorqueScript to accomplish things; building logical, understandable code to create a game.

Behaviors are a method of abstracting code into a LevelBuilder drop down. They are not always the correct choice. For one thing, they add a certain amount of overhead, both in amount of code and in complexity, which is not always necessary, particular for simple object actions. Also, they may lead to a certain sameness across your games, it's almost too easy to build a game from your set library of behaviors that you always use, perhaps hindering innovation.

Now, I'm not really against behaviors, and may use them in a future tutorial, but I wanted to present a complete game that did not use them.

Breakout? What is this 1987?
I'm a real fan of TGB, I think it has a tremendous amount of potential. When people first begin using it, they almost always begin thinking along the lines of platformer or side scroller, assuming that is its natural strength. I disagree, I think it is perfectly suited for almost every casual game you can think of.

I'm not a huge fan of breakout in particular, but I love all kinds of casual games; matching games, card games, unusual logic games. The BreakoutTutorial started almost randomly, I think, because the last game I had been playing was a wonderful Arkanoid kind of game called BreakQuest. As I played it, I thought "I bet TGB could do this."

A Finished Game
Part of the goal of the series, and one reason it is so long, is that I wanted to have, at the end, a complete and finished game. Sound effects, music, particle effects, game logic, multiple levels, high scores, game state saving (unlocking levels,) etc. I didn't want to create a tutorial that provided a shell of a game, and then tells the user, "OK, now finish it up!"

Intended Audience

The intended audience for this series is everyone. I wrote it with a beginning user in mind, so if you have been using TGB for a while, you may find some step details too obvious. However, I would not hesitate to recommend it to intermediate or even advanced scripters. It's fun, and you may learn some TorqueScript techniques or methods you haven't been using.

I do urge everyone who follows the tutorial to read it completely. Just jumping from code section to code section and copying and pasting will teach you nothing, and you may miss some important information. For very new users, I promise you that if you take it slowly, digesting every part of it and understanding each line of the code you are pasting in, by the end of part seven you will have a pretty firm command of TGB.


Well, that was a longer preamble than I had intended, so here is the link to part 1 of the series.
The Breakout Tutorial - Part 1

I'm putting up parts one, two and three today. Part four should go up tomorrow, and five shortly after that. The final two parts will go up a little bit later as I proof and test them, but I'm hoping it will all be up in the next week or so.

Thanks,
Greg

About the author

Recent Blogs


#1
03/30/2008 (7:08 am)
Thank you! TGB scripting is an area that needed more loving. Plus I just love TGB tutorials! Between this for scripting and Asteroid tut for behaviors, and flowerthingy for level builder TGBers have a good strong starting base. Now if the tutorial pack hinted about last year would get finished we would be tut rich. Well.. we could always use a book on TGB.. hint hint Maurina. :)
#2
03/30/2008 (7:50 am)
Bad...Ass... =)

Awesome work! On top of being valuable information, you've used a really clean and easy-to-use set of instructions.
#3
03/30/2008 (9:36 am)
Looks like a very well written and thought out tutorial, Greg. I can't wait to go through it! (Once I get my sweet platformer project done! Hehehe)

Its been such a long time since I've done any TGB tutorials, I could use a few!
#4
03/30/2008 (11:06 am)
This is fantastic! Thanks from everyone at GarageGames for pulling this together. I'll definitely check it out very soon.
#5
03/30/2008 (11:07 am)
Awesome, these are the types of Tutorials that I am talking about.
Thank you very much.
#6
03/31/2008 (6:47 pm)
Doesn't no one use the ratings system anymore? :-P Anyway, great tute Greg, I'm experienced with torquescript already, but I've been away from it for a bit, so this was a nice refresher for me! Thanks :)
#7
04/04/2008 (12:54 pm)
Very nice indeed. You can see how much effort has gone into it.
#8
09/11/2008 (2:24 am)
Any news for the final 2 chapters? Please 1111
#9
11/17/2008 (1:20 am)
Any updates for when the last two installments will be available mate ?

-Mic
#10
06/17/2009 (9:39 pm)
About a 3rd of the way through the tutorial, and I've already learned many many things. I can tell this tutorial was very very well thought out. This is a great introductory tutorial for me for TGB. Thank you for sharing!
#11
06/23/2009 (4:43 am)
Seems a shame that Parts 6 & 7 have dropped off into the Void.

So far this tutorial has been exceptional, but like a lot of things these days it look as if it will remain uncompleted.
#12
10/25/2010 (8:28 pm)
It would be nice, when the part 6-7 are coming.
This is a great Tutorial!

Why is it canceld ?