Log In  

Played around with YellowAfterLife's char-functions, and ended up creating a C64-sprite-font at the same time...

I guess this has already been done a thousand times here, probably much better than this... but I just had to do my own version.

Any help with minimizing/optimizing this further would be cool.
Thanks also to Lumiette for the inspiration. :)

/ Pingo

Cart #50143 | 2018-03-09 | Code ▽ | Embed ▽ | No License
1

P#50142 2018-03-09 10:44 ( Edited 2018-03-09 20:23)

A minor side note:

If you're not going to use the full ascii charset, but rather a short subset ordered to your own tastes, it can be useful to put the numbers right before the letters, e.g.:

chars="0123456789abcdefghijklmnopqrstuvwxyz."

That way you can grab the hex digit for a value 0-15 by sub(chars,value+1,value+1).

Otherwise, seems pretty reasonable to me. Very C64. ;)

P#50149 2018-03-09 13:01 ( Edited 2018-03-09 18:02)

Thanks for that tip, Felice! Will do in the future.

I KNEW there was something I missed. :)

/ Pingo

P#50151 2018-03-09 15:23 ( Edited 2018-03-09 20:23)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 13:02:37 | 0.011s | Q:13