Schrijver
| Looking for a free, or cheapo font editor.
|
DemonSeed msx professional Berichten: 1024 | Geplaatst: 15 Juni 2005, 11:47   |
Which can be used in BASIC as well, screen 5.
The best, ofcourse, would be one that simply works with BLOAD,R...
(Where would people like me be without those who actually are technical...  ) |
|
wolf_
 msx legend Berichten: 4777 | Geplaatst: 15 Juni 2005, 11:58   |
euh ... in scr5 it's just a matter of copying images according to the ascii-number of a character .. you can use anything for that, like age, graphsaurus etc.
|
|
DemonSeed msx professional Berichten: 1024 | Geplaatst: 15 Juni 2005, 12:03   |
Really?
How?
You mean, you could either use a file which works with BLOAD,S as well as a COPY "FILE" TO (0,0),0?
How do you do that? |
|
wolf_
 msx legend Berichten: 4777 | Geplaatst: 15 Juni 2005, 12:20   |
10 color,0,0:screen 5:setpage 0,1
20 bload "image.ge5",s:color=restore
30 a$=input$(1)
this loads your image with chars to page 1 ...
usable characters are within ASCIIs 32..126.
If you have the word 'ABC', that's ascii 65, 66 and 67. This means you take offset 33, 34 and 35. Then you convert the offset to screencoords for your font. If your font is 8x8 then you've 2 rows in scr5.
Offset 0 = (0,0)-(7,7)
Offset 31 = (248,0)-(255,7)
Offset 32 = (0,8)-(7,15)
etc.
Naturally, for a 16x16 font it's all a bit different.
Offset 0 = (0,0)-(15,15)
Offset 15 = (240,0,255,15)
Offset 16 = (0,16)-(15,31)
etc.
now you know what to copy from the storage-page to your active page..
|
|
DemonSeed msx professional Berichten: 1024 | Geplaatst: 15 Juni 2005, 12:37   |
Well, that's clear, except for the "Offset" part.
How do you convert that?
|
|
wolf_
 msx legend Berichten: 4777 | Geplaatst: 15 Juni 2005, 12:42   |
just made this example ..
100 COLOR ,0,0
110 SCREEN5:SETPAGE0,1
120 DEFINT A-Z
130 OPEN"grp:" FOR OUTPUT AS #1
140 '
150 '
160 ' make a temp font here
170 '
180 FOR A=32 TO 126
190 PRESET(X*8,Y*8)
200 PRINT#1,CHR$(A)
210 X=X+1
220 IF X>31 THEN X=0:Y=Y+1
230 NEXT
231 SETPAGE 0,0: LINE(32,36)-(224,128),4,BF ' Nice blue block!
240 '
250 ' let's do the printing!
260 '
270 TX$="iNFiNiTe.MSX.NU" ' this'll be the msg we print..
280 FOR T=0 TO LEN(TX$)-1 ' run through all characters
290 C$=MID$(TX$,T+1,1)
300 O=ASC(C$)-32 ' the offset..
310 ' to screencoords for 8x8
320 SX=O MOD 32
330 SY=O / 32
340 FOR D=0 TO 1 ' bit more fatness here, could not work ok with ge5 :)
350 COPY(SX*8,SY*8)-(SX*8+7,SY*8+7),1 TO (D+64+T*8,32),0,OR
360 NEXT D
370 NEXT T
380 A$=INPUT$(1)
|
|
wolf_
 msx legend Berichten: 4777 | Geplaatst: 15 Juni 2005, 12:45   |
oh ps.. for 8x8, for full usuable ascii there's 3 rows  |
|
DemonSeed msx professional Berichten: 1024 | Geplaatst: 15 Juni 2005, 13:07   |
Wolf, great, thanks very much!  |
|
DemonSeed msx professional Berichten: 1024 | Geplaatst: 15 Juni 2005, 17:08   |
PS:
Do you know those files from some Japanese games (from Monkey Do and Sumsoft), I think they always had the extension .OBJ:
They would contain both font and music.
When they where loaded with BLOAD,R, you could do (amongst others I think) the following commands:
_MGSND: TSR activated; After a SCREEN command, you would have a Compile-like font in EVERY screen mode (also in screen 0, but that's not very handy, sizewise)
_PSGINT: Activate music; Some files would have loads of music in it
_PSGINT(1): Play music file#1, etc.
_MGSND(7): Fade sound
Do you know those files? I think Compile used them too.
If there would be a program with which you could make such a file, but only with the font, that would be very, very great.
|
|
BiFi msx guru Berichten: 3142 | Geplaatst: 15 Juni 2005, 17:23   |
I know them... and I think all those other versions were based on Compile's... Randar 1 and Randar 2 uses that system too. They all have PSG, MSX-MUSIC and MSX-AUDIO support. And to play something you need to use _SOUT(number) and _CLRSD stops everything that plays at that moment.
|
|
DemonSeed msx professional Berichten: 1024 | Geplaatst: 15 Juni 2005, 17:26   |
Quote:
| And to play something you need to use _SOUT(number) and _CLRSD stops everything that plays at that moment.
|
You're right. Bad memory...  |
|
BiFi msx guru Berichten: 3142 | Geplaatst: 15 Juni 2005, 19:35   |
I had some fun implementing one of the Randar 2 files in a BASIC game called HAL (Heel Apart Labyrint, which is something like Very Special Maze translated to English) for myself... It added more fun to the game. The got somewhat easier though since the sprite detection got screwed. Bit still, it's a tough one.
|
|
[D-Tail]
 msx guru Berichten: 3019 | Geplaatst: 15 Juni 2005, 20:32   |
** I sense someone making a demo... or am I wrong?  |
|
DemonSeed msx professional Berichten: 1024 | Geplaatst: 16 Juni 2005, 00:17   |
Well, hardly.
I'm making a game.
"Are you crazy?"
Yes, I am...
For once, I want to finish something I'm making.
I'm still looking for graphic designers and dudes to help with the programming.
I'm almost done with the main stuff, so in a few days, I think I can present a playable demo here... |
|
|
|
|