This site is no longer active and is available for archival purposes only. Registration and login is disabled.

bit vectors/arrays?


bit vectors/arrays?

Postby dan.p » Feb 28, 2005 @ 7:43pm

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.
dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby torus » Feb 28, 2005 @ 8:01pm

User avatar
torus
pm Member
 
Posts: 58
Joined: Oct 24, 2003 @ 10:11am
Location: Germany


Postby Structure » Feb 28, 2005 @ 8:06pm

A float, A float, My kingdom for a float
User avatar
Structure
pm Member
 
Posts: 147
Joined: Sep 17, 2004 @ 8:28pm
Location: UK


Postby Andy » Mar 1, 2005 @ 3:38am

Andy
<font color=red size=3>Troll++</font>
 
Posts: 1288
Joined: Nov 1, 2003 @ 7:36am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum