Masking (hidding) priority sprites, how?
Posted: Wed May 01, 2013 11:21 pm
Returning to old good times with some questions:
I read on "Sega Genesis VDP documentation" by Charles MacDonald that you can hide (or mask) sprites putting one of them on x=0, then all the horizontal lines witch the sprite resides are masked and no other further sprite will be drawn on those lines.
The problem is that this doesn't work on several emulators (Regen,Gens,Fusion), or may be I'm doing something wrong.
So I planned to use W to show player info, but I can't use planes A,B or W because I'm on high-priority (and high-light) mode. As now I'm using sprites, but I would like to know if the other solution is possible.
Changing the subject, one of the big steeps I done in my on going development is using some basic scripting, it transformed the code from a bunch of functions with lots of "if"s to some structured and easy to read/modify piece of little code. Is there any example of scripting on MD? or any study of a commercial game with scripting? An by scripting I mean something very basic, but functional (MD is 2MIPS, mostly used by the game!).
And finally a curiosity, anyone know why Outrun works at 15fps? when there are similar games on NES which run at 30 or 60fps.
(by fps I mean changing the contents of the screen)
Thanks for your help.
I read on "Sega Genesis VDP documentation" by Charles MacDonald that you can hide (or mask) sprites putting one of them on x=0, then all the horizontal lines witch the sprite resides are masked and no other further sprite will be drawn on those lines.
The problem is that this doesn't work on several emulators (Regen,Gens,Fusion), or may be I'm doing something wrong.
So I planned to use W to show player info, but I can't use planes A,B or W because I'm on high-priority (and high-light) mode. As now I'm using sprites, but I would like to know if the other solution is possible.
Changing the subject, one of the big steeps I done in my on going development is using some basic scripting, it transformed the code from a bunch of functions with lots of "if"s to some structured and easy to read/modify piece of little code. Is there any example of scripting on MD? or any study of a commercial game with scripting? An by scripting I mean something very basic, but functional (MD is 2MIPS, mostly used by the game!).
And finally a curiosity, anyone know why Outrun works at 15fps? when there are similar games on NES which run at 30 or 60fps.
(by fps I mean changing the contents of the screen)
Thanks for your help.