Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cooming 2013: "Yumiko in the haunted Mansion"
#29
boriel Wrote:
LCD Wrote:
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.
Have a look at PRINT routine. PRINT uses OVER 2 and OVER 3 for masking. Wink
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.

@ 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!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)