Posted Wed Feb 6, 2019 6:43 AM
Posted Wed Feb 6, 2019 8:23 AM
idk, but WIP looks cool
Posted Wed Feb 6, 2019 8:24 AM
You'd have to OR the data of both bitmaps into a single character cell. This would mean dynamically changing the character set using spare characters specifically devoted to 'cross-overs'.
Edited by flashjazzcat, Wed Feb 6, 2019 8:25 AM.
Posted Wed Feb 6, 2019 9:16 AM
Posted Wed Feb 6, 2019 9:50 AM
Basically, yes. I'm not sure how damaging the CPU overhead would be or whether all possible combinations of superimposed bitmap could be pre-computed (this would require a lot of spare characters).
I'm no game programmer, unfortunately, so am not well placed to point out any tutorials, but at the very least you'd require a background mask for the image in front. Bits in the background would be ANDed with the background mask to clear a silhouette of the image in front, and then the foreground bits are ORed in.
Posted Wed Feb 6, 2019 2:21 PM
Posted Wed Feb 6, 2019 4:22 PM
Zone Ranger is one example that uses XOR but to perfectly mask, especially on a character that stays in focus like this, you would want to pre-render or use an AND and then an OR. The explanation that resonated most for me was in the "Image Masks" section of this article:
https://en.wikipedia...ask_(computing)
I know Popmilo has done a lot of work in this area. See this thread as well which discusses performance and other concerns:
http://atariage.com/...=+soft +sprites
Posted Thu Feb 7, 2019 12:32 AM
Thanks Schlortt!!
Posted Thu Feb 7, 2019 2:25 AM
Gremlins / Conan / Hard Hat Mack / Droll etc use XOR sprites...
gets messy with background but its easy to use and easy to erase
Posted Thu Feb 7, 2019 3:54 AM
Posted Thu Feb 7, 2019 5:23 AM
Gremlins / Conan / Hard Hat Mack / Droll etc use XOR sprites...
gets messy with background but its easy to use and easy to erase
i must say that conan has a very poor performance. the characters are flickering , the movement is not smooth and very slow.
in gremlins the background is mostly black so not many overlaps between characters
hard at mac is faster than conan, but still flickery and the XOR looks not so good.
Posted Thu Feb 7, 2019 5:27 AM
XOR = low mem usage, faster (PANG - title screen, MARIO BROS.)
pang does an excellent work with blending the software sprites (chars) with the background. not sure it is XOR though,i think AND and then OR was used.
in mario, the chars flicker and the XOR looks not so good
Posted Thu Feb 7, 2019 6:53 AM
pang does an excellent work with blending the software sprites (chars) with the background. not sure it is XOR though,i think AND and then OR was used.
Posted Fri Feb 8, 2019 2:30 AM
0 members, 0 guests, 0 anonymous users