Game Development Community

Match 3 code available as resource

by Isaac Barbosa · in Torque Game Builder · 08/17/2008 (12:28 pm) · 58 replies

Hello,

I have programmed a prototype (only one level of match 3 recognition) of a 8 x 8 grid match 3 game. I'm wondering if

1. May I be able to upload a TGB project as resource including source code? -question to GG staff-
2. Is somebody interested in getting this file?

Let me know to upload it.

PS. The only negative point is that the code is almost not commented since I still have the da habit of not comment my scripts.
Page «Previous 1 2 3 Last »
#1
08/17/2008 (10:18 pm)
I'd be glad to take a look at it, so please upload it... or if its not too much to ask, send it to my email add.
#2
08/18/2008 (8:59 pm)
I'm not staff but I'm 100% certain you can upload it. It's no different than any other resource, that uses TorqueScript. There was just recently a full shoot em up game posted. So don't be scared, upload it if you can :)
#3
08/19/2008 (8:34 am)
@ Joe,

Project file is bigger than allowed size (1.2MB). So I can't upload.

I mut say that this is not a complete game and it must be improved in several ways and functions to achieve some objectives. But it is a good start for a match 3 game that:
1. creates an 8 x 8 objects grid.
2. compares if there are matches and delete them before beginning.
3. creates new objects when player matches 3, 4 or 5 same color objects.
4. Poorly commented due to my bad habit of not comment code. english and spanish comments and variables naming.

If enough people ask for it I will invest time to comment and translate it.

If somebody wants the project as it is, please drop a line at ibarbosar@hotmail (dot) com
#4
08/19/2008 (9:07 am)
Is it too big to load onto TDN?
#5
08/19/2008 (9:24 am)
@david,

I've tried into resources and the maximun allowed size is 200000 kb.

TDN allows 20 MB :)

I will upload there
#7
08/19/2008 (1:09 pm)
Hey that's pretty cool :) I was wondering how this would work in TGB. I can see some small programming choices that could've been easier in other ways, like all those if (%color $= "0") checks in could be changed to switch statements and lower the lines of code a bit. But hey, it works :) Thanks for this.
#8
08/19/2008 (3:28 pm)
@Joe,

Glad to hear that code will be useful.

As I've said, the code needs to be polished and improved since I'm not the best programmer. But it will be a great help for those that are trying to do a match 3 game. This is a code I did in two days and believe me: I don't use switch in my projects. Anyway, this is a way to say thanks for all the help I have received in this forums. And it is nice to see that a match 3 works nice in TGB.

Isaac
#9
08/20/2008 (2:57 pm)
I know they may be several approaches to achieve this goal. So if somebody else is willing to share a better solution, that will be great. BUt for now, I think that it will be hard to do an attractive match 3 game for the distribution portals and I'm focusing myself in other genres.
#10
12/04/2008 (9:39 am)
Isaac thank you for uploading that!
#11
12/04/2008 (11:17 am)
He's pretty much made of awesome.
#12
12/04/2008 (12:17 pm)
@Tom,
I hope this little project will help you to learn more TGB. I'm not a pro yet, but now I can do better stuff. I have been very busy working in another game so my match-3 game is waiting on the line. Once I'm able, I will do a better one.

@David,

Thanks!

Isaac
#13
09/26/2009 (11:50 am)
Well Isaac, hope you are not surprised that I am responding more than a year later.

I recently chanced on your Match-3 topic only 2 weeks ago. What I did was I took your code and did a big shake-up of it to make it more readable and compact. The end result is that I reduced your original source code of 99.4 kB (gameScripts folder) to a more compact 14.3 kB with tons of corrected English comments. If you don't mind, I was thinking that this material belongs in the TDN as a genre tutorial.

So, would it be ok to share your graphics and my reworkings of your code in TDN as a Match-3 Genre tutorial?

PS. And boy, did I learn a lot from this little fun exercise.
#14
09/26/2009 (6:45 pm)
@ Gavin,

Hi,
It is indeed a surprise man!
Glad you did that! Please upload and let me know to download and see the changes... I´m sure i will learn a lot too ;)

And thanks

Isaac
#15
09/26/2009 (8:41 pm)
Thanks. I shall set off to it and will post you a link during the work in progress.

Real soon.

Rgds,
Gavin
#16
09/26/2009 (9:27 pm)
Can't get it from the wiki, it won't download the rar instead it gives me some goofy unreadable text when i click the link, all binary converted to ascii.
#17
09/27/2009 (6:36 am)
@Jonathan: I see you are having many download problems. You might have an issue with modem/router/firewall software/antivirus or something like that.

Try "Download link as" or something on whatever you are trying to download, especially if you insist on IE. Some Windows browsers insert newlines into binaries that it suddenly decides to display as text, and pollute the cache so that you have to restart the browser before it can be downloaded safely again.

Alternatively, just use a dedicated downloader program :)
#18
09/27/2009 (7:48 am)
OK, I placed the tutorial in TDN... but I need to write to Michael Perry for permission to upload some graphics. The link to the tutorial is over here: http://tdn.garagegames.com/wiki/TGB/Tutorials/Match_3

Tell me what you think.

I'll be back after dinner to follow up on this and any feedback you may have.

Thanks and rgds,
Gavin
#19
09/27/2009 (1:23 pm)
Good to see people adding more to TDN. It's much more clear to me than the original code. I'm going to make a new project and try this out now :)

Only thing is, the TDN link to the art is broken.
#20
09/27/2009 (1:51 pm)
@Gavin,
That´s a very cool update from my original project :)
Now I understand stuff that I didn´t well in the past.
Thanks!
Isaac
Page «Previous 1 2 3 Last »