Textcharacters screen5

Page 1/2
| 2

By Wolverine_nl

Paragon (1160)

Wolverine_nl's picture

14-03-2012, 20:09

Hi all,
I was recapturing some basic code to change the look of textcharacters in several screenmodes. But when I try this method on graphical screens (2,5) then i probably need to access the sprite patterntable, or not, i tried several scenarios, but no luck.

this is the code (without open:grp etc) I came up with to start the search (here there is no need to adress patternadresses), all other tryouts failed:

10 REM chr A
11 DATA 01110000
12 DATA 10011000
13 DATA 10011000
14 DATA 11111000
15 DATA 10011000
16 DATA 10011000
17 DATA 10011000
18 DATA 00000000
20 '
30 SCREEN 1
40 FORD=0TO7:READI$:VPOKE ASC("A")*8+D,VAL("&B"+I$):NEXTD
50 PRINT"A"

Login or register to post comments

By Edwin

Paragon (1182)

Edwin's picture

14-03-2012, 20:49

Screen 5 doesn't have patterns to change, so this won't ever work. What happens in sc5 when printing from basic is that it draws characters from ROM.

In sc2 changing patterns works fine. The problem is that actual "print"ing does something much like what happens in sc5. But if you change PRINT "A" in vpoke 6144,65, then it'll show.

By Wolverine_nl

Paragon (1160)

Wolverine_nl's picture

14-03-2012, 22:00

I see now that sc5 only has spritepatterntables, so my best option is using bitmapfont or spritefonts?

By Lord_Zett

Paladin (807)

Lord_Zett's picture

14-03-2012, 22:06

no, draw a font and than copy it to screen from the other page.

By Wolverine_nl

Paragon (1160)

Wolverine_nl's picture

14-03-2012, 22:13

Yes, you mean load ge5 file in setpage1 and then copy coordinates to page0, but how do i link scorecount with that?

By Manuel

Ascended (19273)

Manuel's picture

14-03-2012, 22:18

What do you mean? You'll just have to write a routine to 'print'. It will have to copy the proper part of teh other page for each character you want to 'print'.

By Wolverine_nl

Paragon (1160)

Wolverine_nl's picture

14-03-2012, 22:30

Ml routine, i dont see how to do it in basic.
I got a binairy file which contains a font which can be activated with call mgsnd, it works in all screens but i wanted my own solution, not a prefab one Wink 

By Manuel

Ascended (19273)

Manuel's picture

14-03-2012, 22:53

This can also be done in basic, no problem... What's the problem of doing this in basic?

By Wolverine_nl

Paragon (1160)

Wolverine_nl's picture

14-03-2012, 22:59

If you say it is possible, i believe you 100%
then i need a goodnitesleep and figure it out tomorrow Wink

By Lord_Zett

Paladin (807)

Lord_Zett's picture

15-03-2012, 00:07

its not that diffucult. most look the routine up i used in bouncemania. i have a 16X16 tile set used for it inc backspace.

By Wolverine_nl

Paragon (1160)

Wolverine_nl's picture

15-03-2012, 10:48

"most" are people who have your game ;-)

Page 1/2
| 2