Hi MSX-Fans,
how do I program in MSX1 BASIC text in different colors for SCREEN1?
Hope you can help
Frank
Login or register to post comments
Hi MSX-Fans,
how do I program in MSX1 BASIC text in different colors for SCREEN1?
Hope you can help
Frank
Define multiple copies of the characters in different color ranges.
No other way, sorry
If the word isn't very long, say 8 character of 8x8... you could of course 'plot' the word using inverted black sprites, then you can have any background you want.
But hey... ^_^
Thank you all very much!
I will better use SCREEN2 instead of SCREEN1.
Happy new year with a lot of MSX fun.
Frank
If you use MSXBAS2ROM compiler you can write a program just like that to do it:
10 SCREEN 1
20 PRINT "CHANGING THE LETTER A"
30 SET TILE PATTERN 65, (,,,,,,,255)
40 A$ = INPUT$(1)
50 SET TILE COLOR 65, 4, 8
60 A$ = INPUT$(1)
70 SCREEN 0
Line 30 modify the pixels of the 8th line of the character 65 (draw a line below it), and line 50 modify the fore/back colors of the characters around 65.
If you change the line 10 to "SCREEN 2 : SET TILE ON", the fore/back colors will affect only the character specified.
There is a problem now: After my BASIC-Prg was finished and saved on a virtual disc image in openMSX and I load it again, half of the code at the end was missed. I wrote it again save and load and it was the same... I used another disc image and a other virtual MSX in OpenMSX - same. I make an upgrade from 16 to openMSX17, but the same... What can this be? I use openMSX in Manjaro.
Frank
Don't you have an account yet? Become an MSX-friend and register an account!