|
|
"Samuel B." <stb### [at] hotmailcom> wrote:
> Hi Norbert,
>
> I'm not sure I ever posted the thing I'm doing here. Attached is a 'cheat sheet'
> showing how I figure out which tiles get used. There are 6 basic tiles: solid,
> empty, outside corner, inside corner, wall, and 'bridge' which is two outside or
> inside corners. I test four cells of a pattern to determine which tile gets
> used. The cells are evaluated and counted starting from the bottom left. The
> counting algorithm is 1*SW + 2*SE + 4*NW + 8*NE to obtain a decimal number from
> the four 2 bit cells. Then I use that number to access objects created with the
> cheat sheet in mind. For instance, number 1 is an outside corner facing the
> upper right.
>
> Sorry if that's confusing at all :P At any rate, I can provide the source if you
> want.
>
> Sam
I've a clear impression of the algorithm now, but of course I want the source!
Norbert
Post a reply to this message
|
|