01-02-2013, 10:55 PM
boriel Wrote:PRINT masking does not allow to shine through only selected parts of the bitmap to make them appear like "sprites" with a border around them. And if I'm low on memory, I replace all prints with a routine based on PutChars because this saves around 800 bytes of memory. Maybe you noticed in source of Yumiko.LCD Wrote:Have a look at PRINT routine. PRINT uses OVER 2 and OVER 3 for masking.britlion Wrote:I'm writing a game that needs a similar pool of light around a point. *Ahem*
Any chance of stealing your light attrib routine as a basis?
Yes. How I can help you in this task? PM me your mail adress and I will send you the source code.
Your project is very ambitious.
BTW: How to extend PutChars to add masking? I want to have some parts of the background shine through the chars by defining bitmap of a mask.
@ Britlion: I modified the program as your said (in my experiment the first three ASM instructions are the same as yours, but then I stuck, I still cannot think correctly, and forgot the possibility of EXX instruction). And it works now fine. Thats great. Exactly what I wanted.
Thank you.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!