|
Post by pachic on Aug 29, 2022 15:05:18 GMT
Hi, I dont like xor logic when 2 or more object merge in the screen I checked that print routine and I dont know if somebody check it maybe we can create an sprite that stay always in front using last event or something somebody check this theme? I test changing xor by or and creating a new routing for print and another for delete but the resutl is not good
; Line drawn, now work out next target address.
dline ld a,(de) ; graphic data.
and c ; mask away what's not needed.
xor (hl) ; XOR with what's there.
ld (hl),a ; bung it in.
inc l ; next screen address.
inc l ; next screen address.
ld a,(de) ; fetch data.
and b ; mask away unwanted bits.
xor (hl) ; XOR with what's there.
ld (hl),a ; bung it in.
inc de ; next graphic.
dec l ; one character cell to the left.
ld a,(de) ; second bit of data.
xor (hl) ; XOR with what's there.
ld (hl),a ; bung it in.
inc de ; point to next line of data.
dec l ; another char left.
|
|
|
Post by pachic on Sept 2, 2022 20:56:29 GMT
Ok, understood the "and B" and "and C" is for delete the shift sprite and only show the sprite move our sprite move every 2 bits each animation, and mix with the background, with the XOR, its complicated create mask
|
|
|
Post by pachic on Sept 7, 2022 3:29:25 GMT
Ok, It´s complicated put mask because 1 use a lot of memory 2 have to change a lot of the engine 3 lose performance
Then Iam modifying the engine for my new and free game PAC - HIC REHAB
|
|