This is a little hack on the #FONT_SNIPPET custom font generator.
It implements automatic width adjustments based on scanning the font pixels, which makes it much easier to make variable-width fonts. I used a little code from the LazyDevs implementation of manual width adjustments.
Characters are given one pixel of space on the right side.
- "But what if I want more?" - Red pixels count for width purposes but cleared before the bitmap is scanned.
- "But what if I want LESS?" - Pink pixels are not counted for width but still show in the font.
EXAMPLE:
|
[32x32] |
Here the space character has been narrowed (by being defined as narrower than the usual full width); the '1' and '!' characters are given a little right padding; the lower-case 'r' is set to draw past its width.

Explore the caves and shoot The Wumpus with your Crooked Arrow.
Notes:
This plays like the 1981 TI-99/4 game written by Kevin Kenney. The original BASIC text game was created Gregory Yob in 1973.
I made this version as an excuse to implement the maze drawing algorithm, which I've always found intriguing. After that I just wanted to pile on cute things to amuse myself.

I can't really think of a use for one-off characters right now, but Lazy Devs floated the idea of making a little editor for them in his recent video and that seemed like a fun short project, and I'd never done anything with GUI elements before.
- Meant to be used offline.
Not all features will work off the BBS but you can use the basic functionality. - Multiple persistent slots for editing.
Really it's just a page of the spritesheet you're editing. - Per character Undo/Redo
This is limited to 32 levels of undo per character but there's no particular reason it should be. Basically like the Pico-8 sprite editor (plus Rotation) though I didn't feel any need to implement the more complex drawing things for the 8x8 monochrome format.






3 comments





