Game Development Community

Torque X game Grid Fill

by Tom Biagioni · in Technical Issues · 11/06/2008 (12:53 pm) · 2 replies

Hi guys, i apologize if ithis is the wrong forum. We are making a puzzle game and that involves colored spheres at the top of the page. Now what i am trying to do is make it so when the level loads, the game fills the grid randonly with the colored spheres. Im not asking for anyone to write out code for me, i just wanted too see how you guys think this could be implimented.

I was thinking maybe i could create a matrix or an array that represents the grid at the top of the screen, and then have a method that loads random spheres into it. Would that work?

Thanks!

#1
11/24/2008 (6:55 pm)
I believe an array would be the easiest to implement if it is a 2D grid that doesn't vary in size.
#2
12/04/2008 (9:30 am)
Thanks David