Game Development Community

Ideas for using a non-rectangular board

by Vijay · in Torque Game Builder · 11/27/2009 (9:09 pm) · 2 replies

Hi, are there any tricks or facilities to use non-rectangular boards? Preferably with tilemap but that's not a huge requirement. The idea is sort of like a chess game where players can move pieces but with a layout of the board that is not exactly rectangular. In this case, is it simply better to do all the "location" calculations myself or are there any builtin features that could be of help? Below is crude sample of the layout I'm looking for:

S-S-S
SS-S-S
SSS-S-S
SSSS-S-S

The "-" indicates "squares" where the user can move pieces to. Sorry if the picture is confusing. The post doesn't seem to handle special characters very well.

#1
11/29/2009 (9:15 pm)
If your pieces align with ANY arrangement that could be drawn on square graph paper, then you can use the built-in tile map. But if your drawn example is, say, a pyramid that is set a half-square off from the next row, you cannot use the tile map.

If your game has very few tiles to render (say, a thousand), you can calculate the locations yourself.
#2
12/01/2009 (2:42 am)
Thanks William! Unfortunately my squares do not align with such arrangement. But it's alright. I'm actually experimenting with triggers to act as locations where pieces can be dropped. It seems to work pretty good even though I'm a bit concerned with performance.