Page 1 of 1

Keen 1: 8x8 font patch

Posted: Mon Nov 13, 2017 9:50 pm
by szemigi
In the Keen 1 font bmp file what are the patch codes for each 8x8 graphics? Because I saw that there are unused stuff in the font file.

Re: Keen 1: 8x8 font patch

Posted: Tue Nov 14, 2017 8:16 pm
by levellass
Didn't I already post this? The first square is $00, then $01, then $02...

The second row is $10, $11, $12...

And so on. So '!' is the 2nd thing in the 3rd row, it's patch code is $21. 'at' is the 1st thing in the 5th row, it's code is $40. The top of the pizza is $80, the red square $9F and so on.

Re: Keen 1: 8x8 font patch

Posted: Tue Nov 14, 2017 10:04 pm
by szemigi
But what is the hex offset of these codes?

Re: Keen 1: 8x8 font patch

Posted: Wed Nov 15, 2017 9:40 pm
by levellass
There is no offset, they're part of regular text patches. For example, let's say I want to change one of the Yorp messages. I want to change 'Gaaarg!' to 'Colaaaaa!' and have a little cola can in it. The original text is:

Code: Select all

#Garg text
%patch $1532A " GAAARRRRRGG!       " $0A $00

Now the tiny cola can is the 13th square in the 10th row, so its code is $9C. I put this at the end of my cola text.

Code: Select all

#Cola text
%patch $1532A " COLAAAAAAAA! " $9C $0A $00
Or maybe I want it at the START of my text?

Code: Select all

#Cola text -start
%patch $1532A $9C " COLAAAAAAAA!" $0A $00
Or even in the middle:

Code: Select all

#Cola text - middle
%patch $1532A " COOOL-" $9C "-AAAA! " $0A $00

OR, since $9C is 'œ' on the ASCI table I can actually type it into things without having to use the code:

Code: Select all

#Cola text
%patch $1532A " COLAAAAAAAA! œ" $0A $00

#Cola text -start
%patch $1532A "œ COLAAAAAAAA!" $0A $00

#Cola text - middle
%patch $1532A " COOOL-œ-AAAA! " $0A $00

Re: Keen 1: 8x8 font patch

Posted: Wed Nov 15, 2017 9:47 pm
by szemigi
Question: How can I save my patchfile for example? Because it is ANSI-coded.

Re: Keen 1: 8x8 font patch

Posted: Thu Nov 16, 2017 5:32 pm
by levellass
I'm not sure what that means, but the first example with the code $9C should save in nay format, the second should be alright too, but if it doesn't work the first can be relied on.