Subj : Sprites and scrolling and BINs
To   : All
From : Kirkman
Date : Fri Jan 09 2015 03:00 pm

So I've been doing more experiments with sprites and scrolling and stuff.

I've made some progress, but I've also run into some issues.

First, echicken or MCMLXXIX or whoever, I have written a little function which
can be added to frame.js, called scrollCircular(x,y). All it does is either
pop or shift the frame data the create a constantly-looping scroll effect. I
can post the code before too long if you're interested.

But I keep running into trouble with BINs. Using techniques we talked about a
few months ago, I make sprites and then mask their background to become
transparent, so they can walk in front of things. This works.

But I still don't understand the color values stored by frame.data[x][y].attr.
In my case, I'm using green as the mask. What I have found is that if I load
an ANSI image into the frame, the .attr for green characters is usually "2".
But if I load the same image in BIN format, suddenly the green characters are
"514." Why should these numbers be different? I don't get it.

I also am not having much luck with my .BIN files. This is a multi-tiered
problem, because I'm using a Mac. The newest versions of PabloDraw (which have
Mac and Linux versions) have issues with loading/saving BINs. So I run the
classic version of PabloDraw in WINE, and use it to convert ANS files to BIN.

I find that no matter how hard I try, the BBS simply will not display the BIN
properly. On the latest sprite I've been working on, the problem seems to come
in the black characters. Not sure why. I posted some examples and some files
on the Synchronet Facebook page if you're interested in looking:

https://www.facebook.com/groups/448979361874853/636759266430194/

I really want to get BINs to work because I want to use the sprite library.
But for now I've had to make do simulating that library and just using frames
with ANS data loaded.

Here's an example of what I'm trying to do:

https://vimeo.com/116376889

////--------------------------------------------------
BiC -=- http://breakintochat.com -=- bbs wiki and blog

---
� Synchronet