Game Development Community

Tiles For Dummies (me)

by Paul Z · in Torque Game Builder · 08/03/2005 (2:43 pm) · 4 replies

Folks,
My daughter and I set out to buid a basic checkers game in T2D, no AI, etc, just two players take turns moving pieces. As we got into implementing the game in T2D we realized that we are missing some fundamental understanding of how tiles work in general. Can someone point me to a good book or online resource that describes tiles?
So far, we created a 8x8 grid, created two tile images, and loaded them onto a grid. What we are stuck on are the following questions:
1. For game pieces, do I create another layer on top of the first one, and place my pieces in appropriate cells, or
2. Create additional two different tile image ( board tile with a black/white piece sitting on top), and during the game just replace the board tile map with those as appropriate?
3. Any particular way to implement it in T2D?
As I said, we are missing some fundamental principles fo tile-based games, so I'd appreciate linsk/pointers to this topic, or your suggestions.
Thanks, Paul Z.

#1
08/03/2005 (3:07 pm)
You can do either 1 or 2. I would suggest 1, but 2 isn't that much harder to implement.
#2
08/03/2005 (3:57 pm)
Torque 2D Tile-layers explained. Might help you out.
#3
08/04/2005 (8:39 am)
I'd just make the peices out of sprites. I think this would be much easier. Show us the code you use to make the tile map and we could give you little more specific suggestions.

-Peter
#4
08/04/2005 (9:25 am)
I'd use option 1 as well. By having your pieces as seperate sprites, you can also slide them from one board square to another which will make it much easier for people to follow the action rather than having the pieces jump from square to sqaure.