well, fucking escuse me.
you're displaying ansi graphics and i suggest a method of displaying ansigraphics to pull off what you want. how stupid of me. guess i've
been doing it wrong for the past 22 years.
whats your bbs url and how long have you ran a bbs?
that is correct, but you could apply a filter for a specific color (or specific set of attributes) to your graphic after you load it into a frame by iterating the contents as a 2D array and comparing the .attr property to whatever color you'd like to filter, and just set it to undefined if it matches.
Also, on a related note, where can I find what the numeric values in .attr correspond to? it seems that 7 is black, but some other numbers also seemed like they might be black as well.
But I did run into a roadblock with sprites. I have a profile sprite that changes depending on whether it is facing left or right. Using the code abov the mask doesn't change when the sprite changes orientation, so basically th wrong characters are being masked.
What should I do differently to make sure each orientation has its own mask?
Also, on a related note, where can I find what the numeric values in .attr correspond to? it seems that 7 is black, but some other numbers also seemed like they might be black as well.
solution 2: iterate frame.data (this returns the entire graphic you loaded in) once, outside of the user input loop. you can do this once, immediately after loding the graphic in, so you arent doing it every single time it
runs through your loop.
So, the second solution definitely sounds better, since I only need to do it once. I wrote up some code, but the results I'm getting are the same as before. The sprite looks great in it's initial orientation, but when I move a different direction, the mask doesn't match the new orientation.
Using a little debugger function, I see that the maskFrame function is indee iterating over all the characters in the entire sprite. So I'm not sure why this isn't working.
your code looks fine to me, so I'll have to see if I can get it working on my end. If you don't mind giving me a day or two to do find time to do that I'll get back to you.
your code looks fine to me, so I'll have to see if I can get it working o my end. If you don't mind giving me a day or two to do find time to do th I'll get back to you.
Sure, that would be awesome. Thanks again for all your help.
ok. should be all set now if you update frame.js from cvs.synchro.net
you found a bug. I have squashed it.
should be ok without any code changes.
Wow, how about that. I'll update as soon as I get home tonight. Thanks again for taking a look and helping learn how to do this.
I don't recall helping you much. You figured out a great deal of this on your own, apparently. Good luck with your game, I'd like to see it when it's done.
E-peen comparison in 2014? Sheesh..
Well, fucking excuuuuuuuuuuuuuuuuuuse ME! My BBS dong is bigger than your BBS dong.
Can you type with it?
echicken wrote to Poindexter Fortran <=-
Can you type with it?
Sure, albeit slowly. It's kind of a hunt-and-pecker.
Sure, albeit slowly. It's kind of a hunt-and-pecker.
That man can sling the puns with the best of them...
well, fucking escuse me.
you're displaying ansi graphics and i suggest a method of displaying ansigraphics to pull off what you want. how stupid of me. guess i've been doing it wrong for the past 22 years.
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 02:01:43 |
Calls: | 335 |
Messages: | 113,420 |