Commodore Amiga 1000 — Commodore Amiga 1000 Hardware Reference Manual PDF Download

HOW COLLISION DETECTION IS CONTROLLED The collision control register, CLXCON, contains the bits that define certain characteristics of collision detection. Its bits are shown in Table 7-4. Table 7-4:

CLXCON Bits Bit Number Name Function 15 ENSP7 Enable sprite 7 (OR with sprite 6) 14 ENSPS Enable sprite 5 (OR with sprite 4) 13 ENSP3 Enable sprite 3 (OR with sprite 2) 12 ENSP1 Enable sprite 1 (OR with sprite 0) 11 ENBP6 Enable bit-plane 6 (match required for collision) 10 ENBPS Enable bit-plane 5 (match required for collision) 9 ENBP4 Enable bit-plane 4 (match required for collision) 8 ENBP3 Enable bit-plane 3 (match required for collision) 7 ENBP2 Enable bit-plane 2 (match required for collision) 6 ENBP1 Enable bit-plane 1 (match required for collision) 5 MVBP6 Match value for bit-plane 6 collision 4 MVBPS Match value for bit-plane 5 collision 3 MVBP4 Match value for bit-plane 4 collision 2 MVBP3 Match value for bit-plane 3 collision 1 MVBP2 Match value for bit-plane 2 collision 0 MVBP1 Match value for bit-plane 1 collision Bits 15-12 let you specify that collisions with a sprite pair are to include the odd- numbered sprite of a pair of sprites.

The even-numbered sprites always are included in the collision detection. Bits 11-6 let you specify whether to include or exclude specific bit- planes from the collision detection. Bits 5-0 let you specify the polarity (true-false condition) of bits that will cause a collision. For example, you may wish to register collisions only when the object collides with "something green2 or "something blue." This feature, along with the collision enable bits, allows you to specify the exact bits, and their polarity, for the collision to be registered. NOTE This register is write-only. If all bit-planes are excluded (disabled), then a bit-plane collision will always be detected.

- System Control Hardware 209 -