Path: chuka.playstation.co.uk!news From: "Scott Ward" Newsgroups: scee.yaroze.beginners Subject: Re: Collision Detection!.....(Joy) Date: Thu, 24 Jun 1999 00:35:42 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 30 Message-ID: <7kruf5$qpv9@chuka.playstation.co.uk> References: <7kdntq$4fj13@chuka.playstation.co.uk> <376d3500.12938268@www.netyaroze-europe.com> <7kqf2d$qpv1@chuka.playstation.co.uk> NNTP-Posting-Host: p21-crow-gui.tch.virgin.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 I'd just like to say to say thanks for you boys who've answered this query so far. However, a couple of things still have me puzzled. Like I mentioned before, people keep mentioning 2-bit images but I don't understand why. The way people keep writing about this collision detection method wouldn't you be able to use 1-bit masks? (1 bit represents 1 pixel) Please let me know if I have the wrong idea about what 1-bit, 2-bit, etc means. Moving away from this subject slightly maybe somebody could explain this to me: >maskPointer |= !!(imageData & 0x0f) << maskBit; >maskPointer |= !!(imageData & 0xf0) << (maskBit+1); Rob Swan wrote this, can someone please tell me what the '!!' part means? For now, I'm going to have a go at writing some code to achieve the desired collision detection but it's doubtful whether I'll pull it off (:o.) so further help will be much appreciated or perhaps some sample code for me to look at. Cheers fella's! Scott Ward.