Log In  
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#] | Code | 2018-03-09 | No License | Embed
1

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

:: Felice

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)
:: pingo

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]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-04-23 18:44 | 0.013s | 4194k | Q:21