home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mcsun!sunic!lth.se!newsuser
- From: d91pt@efd.lth.se (Peter Tufvesson)
- Subject: Amiga collision register ($dff098)
- Message-ID: <1992Aug15.182019.25818@lth.se>
- Keywords: collision
- Sender: newsuser@lth.se (LTH network news server)
- Organization: Lund Institute of Technology, Sweden
- Date: Sat, 15 Aug 1992 18:20:19 GMT
- Lines: 31
-
- I've experienced some troubles with the most useful register inside the Amiga,
- the register which contain some bits concerning graphic collisions.
- I have read a few books covering these register, and I have tried to test it
- without any great results...
- I now hope that someone can help me with my problem...
- My main source of information has been the book "Amiga system programmer's
- guide" distributed by Abacus.
- Under the headline "Collision between graphic elements" on page 138 (In my
- book) there is a thorough description of the CLXDAT ($00e) and the CLXCON
- ($098) registers.
-
- This is how I _THINK_ it's build up.
- If I want a collision between sprite 0 and bitplane 1, I just set (In CLXCON)
- bit 0 and 6, and then just test bit 1 in CLXDAT. Right??
-
- Well, that is not my problem... It's a little worse...
- Let's say I enable both bitplane 1 and 2 for collision, that is setting bits
- 0,1,6,7 in CLXCON.
-
- CAN I THEN CHECK WHETHER SPRITE 0 HIT Bpl1 OR Bpl2 OR NONE using bits 1 and 5 in CLXDAT?????????
-
-
- I've tested the above, but it somehow does'nt work (Couldn't test against both
- bitplanes)... Have I misinterpreted the information, or is it not possible
- to do it?
-
- I'm grateful for all info concerning these registers - examples - ideas - tips
-
- Please answer by E-mail to me: d91pt@lth.lu.se as fast as possible!
- /Peter Tufvesson - CandyMan of Paradise
-
-