Re: a good ASCII Character map?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 13 Jan 2001, at 15:21, LEVIATHAN wrote:

> Heya all!
>
> Unfortunatly, all the ASCII character maps I see are all the standard
> ASCII-127 maps (Which Windows decides to use) and in these I
> can't seem to find what character EOF is... (My dad said it was FF,
> but that didn't come out true... might've been in ASCII-255...)
>
> So, if I can't use the EOF character, how would I stick EOF at a
> certain part of the file?

I'm not sure what you are trying to do, cause if you put in a DOS EOF, dos
may not read the entire file. But if you are using one file to hold many
bitmaps, and defining your own eof, here's several options:

1) make all the bitmaps the same size, by padding them out, and then
each bitmap will begin at multiples of size and end at multiples of size.
This will make replacing, deleting, or rearranging bitmaps a lot easier too.

2) when you save the files, make sure there is no byte 255 (for example),
then you can use a 255 as your terminator. Or use any byte you wish that
will not appear in your bitmaps.

3) don't save all the bitmaps as one file, use as many files as you want on
the harddrive. When the program starts, read them all in, each as a
subsequence in your main bitmap sequence. That way, you can organise
them when you read them in, they are all in memory, and the difference in
size is not a factor. So the road texture is MainSeq[Road][Texture], road
edging is MainSeq[Road][Edge], and the lawn is MainSeq[Lawn], etc..

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu