Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 25 Mar 2003
Offline Last Active Sep 22 2013 03:12 AM

Posts I've Made

In Topic: Need advice to create a grid that follow a terrain

30 August 2013 - 08:22 PM

I can think of several ways to do this all depending on the amount and sizes of the maps:


The grid is most likely "fixed" meaning that the center of the grid is always at 0,0,0 in world space


- manual: simplest, make an editor where you can "mark" cells to be usable in the game


- semi/manual: make an editor where you mark areas (similar to collision/nav meshes) that can be used in the game, then the editor will figure out which cells fully fit inside those meshes. You could do this by checking for every cell if all 6 points are inside.


- automatic: the editor figures out what areas of of the visual meshes are around a certain height and then figures out which cells fully fit in there


Last 2 could be combined with the first to correct miscalculations by hand.

In Topic: Do I need to prevent deadlock for a game like this?

03 October 2012 - 09:59 PM


Sorry I was assuming the workings of this game was clear. With this game you can only connect blocks if they:

A: have the same image


B: there is a unobstructed line possible between them with a maximum of 2 turns in it.

I know for a fact this kind of game never gets deadlocked (my fiancee plays it very often and says it never gets stuck, which I believe)