home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12348 < prev    next >
Encoding:
Text File  |  1992-08-15  |  1.7 KB  |  43 lines

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