Door Games Unlimited

Welcome, Guest.


Subject: Sprites and scrolling and BINs Date: Sat Jan 10 2015 13:14:33
From: MCMLXXIX To: echicken

  Re: Sprites and scrolling and BINs
  By: echicken to Kirkman on Fri Jan 09 2015 17:55:06

 > However in a .bin file, each character is paired with an attribute, and Fram
 > should (arguably) be setting the attribute of each cell to the value read fr
 > the file.  Evidently it doesn't do this, and the default attribute for the
 > frame is being applied (as MCMLXXIX explained.)  This may be by design, perh
 > it's necessary for transparency or helpful in some other situation.

BIN files store a null bit in every spot where there is no character or
attribute. If you use pablodraw to make a BIN, it doesn't fill every space with
data, so these spots show up in the frame with no character or attributes.

It might make more sense to load BIN files into a frame that has no default
attributes at all (just omit the parameter for attr).. this is how transparency
works in frame.js.. 



---
 ■ Synchronet ■ The BRoKEN BuBBLE (bbs.thebrokenbubble.com)

Previous Message       Next Message
In Reply To: Sprites and scrolling and BINs (echicken)