Page 1 of 1

bit vectors/arrays?

PostPosted: Feb 28, 2005 @ 7:43pm
by dan.p
I have collision detection on my map, but it's just lame rectangle detection (32x32 areas). I was thinking of making it insanely accurate by overlaying a bit vector, so I can mark each individual pixel collidable or not.

However, I'm not seeing any C++ keyword for bit, and the closest thing I can come across is unsigned char (which BOOL is typedef'd as). This or int would typically be acceptable, but I'm considering the size of my saved map files. Obviously bits would be ideal, but I'm afraid ints could produce quite large file sizes.

Anyone have suggestions? Thanks in advance.

PostPosted: Feb 28, 2005 @ 8:01pm
by torus

PostPosted: Feb 28, 2005 @ 8:06pm
by Structure

PostPosted: Mar 1, 2005 @ 3:38am
by Andy