[Tuxnes-devel] [PATCH] pixels.h sprite right edge
Brought to you by:
tmmm
From: Jim U. <ji...@3e...> - 2001-10-20 01:12:01
|
tuxnes currently cuts off a sprite once its rightmost edge leaves the screen. As an example, load up Super Mario Bros. and notice how the right half of a Goomba disappears when partially offscreen. Tests on a real NES indicate it should not be cut off. Attached patch corrects the problem. It's not an ideal optimized solution, because that'd require quite a bit of work. (I only changed 3 lines, the rest is indentation to compensate for the new "if".) BTW, sprites off the left edge of the screen are cut off too, but this is proper behavior according to the real NES. Makes sense when you think about it. Top edge handling appears to be incorrect as well but I'm still working on this. Haven't looked at bottom yet. -- ji...@3e... / 0x43340710 / 517B C658 D2CB 260D 3E1F 5ED1 6DB3 FBB9 4334 0710 |