Keen 1: 8x8 font patch

Request patches for Keens 1-3.
Post Reply
User avatar
szemigi
Posts: 482
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Keen 1: 8x8 font patch

Post by szemigi » Mon Nov 13, 2017 9:50 pm

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.

levellass
Posts: 2790
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 1: 8x8 font patch

Post by levellass » Tue Nov 14, 2017 8:16 pm

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.

User avatar
szemigi
Posts: 482
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 1: 8x8 font patch

Post by szemigi » Tue Nov 14, 2017 10:04 pm

But what is the hex offset of these codes?

levellass
Posts: 2790
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 1: 8x8 font patch

Post by levellass » Wed Nov 15, 2017 9:40 pm

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

User avatar
szemigi
Posts: 482
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 1: 8x8 font patch

Post by szemigi » Wed Nov 15, 2017 9:47 pm

Question: How can I save my patchfile for example? Because it is ANSI-coded.

levellass
Posts: 2790
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 1: 8x8 font patch

Post by levellass » Thu Nov 16, 2017 5:32 pm

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.

Post Reply