Quote Originally Posted by Alimonster
Quote Originally Posted by Gadget
I implemented a quick and easy dynamic array using 1 bit for each tile, 0=walk, 1=dont walk. Using a very fast bitmask routine it works perfectly and is very compact
Compare it to TBits for speed, since that does exactly the same thing . Incidentally, I posted code for a bit array in another thread (you might also want to have a ToggleBit function which uses xor), unless you're not talking about the same thing as I am...
It's an array of bits... (sort of) Array [0..999,0..999] of TByte;

Each byte has 8 tile walk / dont walk bits. I use XOR to toggle bits