![]() |
Cooming 2013: "Yumiko in the haunted Mansion" - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Gallery (https://www.boriel.com/forum/forumdisplay.php?fid=18) +---- Thread: Cooming 2013: "Yumiko in the haunted Mansion" (/showthread.php?tid=503) |
Re: Cooming 2013: "Yumiko in the haunted Mansion" - LCD - 10-30-2012 JBGV Wrote:Well, the effect of lightning is awesome.Thank you very much. There is still much to do before I can say, it is finished. Re: Cooming 2013: "Yumiko in the haunted Mansion" - compiuter - 11-05-2012 I´ll take a look for it. Thank you. ![]() Re: Cooming 2013: "Yumiko in the haunted Mansion" - LCD - 12-01-2012 Finished!!! Download the Standard Edition from my webpage. The archive contains TAP, TZX (with counter-Custom loader), MGT and TRD versions. This was a fight for every free byte, only 274 bytes free left!!! The Collectors Edition will follow later on Tape or as digital download. Must order some C-15 tapes for it, and finish the intro. Instruction follows later. I'm tired now! Download available from: <!-- m --><a class="postlink" href="http://members.inode.at/838331/index.html">http://members.inode.at/838331/index.html</a><!-- m --> I will upload the game also on Worldofspectrum.org. The screenshots on previous page are updated now. Re: Cooming 2013: "Yumiko in the haunted Mansion" - LCD - 12-03-2012 Id someone downloaded before yesterday 5 PM, please redownload. The new version has a company logo at start and some bugs are fixed now. Re: Cooming 2013: "Yumiko in the haunted Mansion" - JBGV - 12-03-2012 LCD, I think it's one of the best games I've seen this year !! It's really good, graphics, music, addictive ... One of my votes in WOS will be for this game. Congratulations !! Re: Cooming 2013: "Yumiko in the haunted Mansion" - LCD - 12-04-2012 JBGV Wrote:LCD, I think it's one of the best games I've seen this year !! Thank you. You are welcome to do so. Re: Cooming 2013: "Yumiko in the haunted Mansion" - britlion - 01-01-2013 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? Re: Cooming 2013: "Yumiko in the haunted Mansion" - LCD - 01-02-2013 britlion Wrote:I'm writing a game that needs a similar pool of light around a point. *Ahem* 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. Re: Cooming 2013: "Yumiko in the haunted Mansion" - britlion - 01-02-2013 >> 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. Ooh. Tricky. If the data was stored Bitmap/Mask/Bitmap/Mask, it might not be too bad - could get the bitmap, inc de and get the mask, then mask out screen, then or in the bitmap. Edit: since we use the mask first, might make even more sense to be mask/bitmap/mask...etc. Re: Cooming 2013: "Yumiko in the haunted Mansion" - LCD - 01-02-2013 britlion Wrote:>> 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. I think the same and I know that I need to modify these: Code: ld a,(DE) ;' First Row Re: Cooming 2013: "Yumiko in the haunted Mansion" - britlion - 01-02-2013 I'm playing with it too. Probably do a rewrite that will drive you crazy, like move to zig-zag data ![]() Re: Cooming 2013: "Yumiko in the haunted Mansion" - britlion - 01-02-2013 Without changing the data format - except to add a mask byte before each data byte I think something like: Code: ; gets screen address in HL, AND bytes address in DE. Copies the 8 bytes TO the screen Would do it - though it corrupts the C register. Code: ; gets screen address in HL, AND bytes address in DE. Copies the 8 bytes TO the screen May work - and doesn't use any other registers. ALso takes 42 T states as well. sadly they both triple the time this block takes to run over the original without masking. Re: Cooming 2013: "Yumiko in the haunted Mansion" - boriel - 01-02-2013 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* ![]() Re: Cooming 2013: "Yumiko in the haunted Mansion" - LCD - 01-02-2013 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* @ 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. Re: Cooming 2013: "Yumiko in the haunted Mansion" - boriel - 01-03-2013 LCD Wrote: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. ![]() 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.[/quote]. That's right. PRINT is a very generic routine (as BASIC requires). Usually you need OVER 2 + OVER 3 (OVER 2 + OVER 1 will also work) to do masking, but you will need to precalculate the inverted mask in advance. I haven't read your code entirely, BTW, but if you managed to get a routine that calculates some masks automatically (this is usually not possible, I guess) and invert them (e.g. at the beginning of each game level, or whatever) you will save a lot of memory. I've always wanted something like this :roll: Quote:I modified the program as your said (the first three instructions are the same as yours, but then I stuck). And it works fine. Thats great. Exactly what I wanted. Thank you.:?: :? Sorry, I wasn't questioning your code; just suggesting you can get some ideas from the default PRINT routine (as I do from many places, the ROM included). |