Log In  

hi,

is it possible to get, read... peek() the Pico8 system font?

i like to print zoomed text.

any ideas?

(my actual idea: print char somewhere.. maybe offscreen and read it from there)

greeetings,
Svnt

P#25941 2016-07-26 19:04 ( Edited 2016-07-27 09:03)

Here we go https://www.lexaloffle.com/bbs/?tid=3606 found 5 pages ago

P#25945 2016-07-26 19:44 ( Edited 2016-07-26 23:44)

i know this cart. i need something different.

it cls()..prints...read...cls() the screen.

the goal is a zoomed text without clearing screen while print text or put other pixels.

print at offscreen like 'print("b",-10,-10)' want work.

maybe clip [x y w h] would help out?

S.

P#25946 2016-07-26 20:20 ( Edited 2016-07-27 00:20)

I don't think you can clip outside the physical bounds of the screen.

One thing you could do is to save (memcpy) the first five lines of the screen to an offscreen buffer, clear the same area, render one line of text to it, and then copy the same area to sprite ram and put the original screen mem back.

We're only talking about 64 bytes per line, so 320 bytes total. Last time I checked, memcpy ran at 7 cycles per 4 bytes, so the three copies would only take 3320B 7C/4B = 1,680 cycles, which is pretty minimal when you get 140,000 cycles per 30th of a second.

If you do all your text renders before other things, such that you only need to memcpy to sprite ram and not save+restore the screen mem, then that's only 560 cycles per line of text, or less if you don't copy the whole width of the screen.

P#25965 2016-07-27 05:03 ( Edited 2016-07-27 09:04)

[Please log in to post a comment]