Keen 1: 8x8 font patch

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

Keen 1: 8x8 font patch

Post 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.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 1: 8x8 font patch

Post 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.
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 1: 8x8 font patch

Post by szemigi »

But what is the hex offset of these codes?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 1: 8x8 font patch

Post 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
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Keen 1: 8x8 font patch

Post by szemigi »

Question: How can I save my patchfile for example? Because it is ANSI-coded.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Keen 1: 8x8 font patch

Post 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.
Post Reply