My first computer (Fujitsu FM-7, in the early 80s) had a BASIC command called 'symbol()', which allowed drawing text as graphics instead of print() to character RAM. It was incredibly slow (I could watch it draw from the top to the bottom) and could only do integer ratio zoom, but we absolutely loved the command...
This small snippet is my attempt to revive it in PICO-8.
EDIT: I've added 'scale_x' and 'scale_y' parameters. When given negative values, the text is flipped.
My two-week trip is coming to an end. While I was in my hotel room, I worked on this small puzzle game. There are still many things to do (including adding more girls, of course. It will allow for about 4 - 5 additional images).
Hi,
Further enhancements to the compression format (10-20% smaller, especially in photos), and about 2x faster image rendering.
I made the repositories public, pls give them a try :)
The encoder: https://github.com/afunai/pen_encoder
The decoder: https://github.com/afunai/pen_decoder
The slideshow: https://github.com/afunai/pen_decoder/tree/slideshow
I've decided to use chroma.js (https://gka.github.io/chroma.js/) to obtain palette colors that are closer to what the human eye perceives. This greatly improves the accuracy of the original colors. Now my photo of supper looks delicious...
So far so good. Better virtual colors, fetching transparency info (alpha) from original images, clipping, and locating.
Performance is still poor (drawing two 128x500px images at once cause some frame drops, and (sometimes) outOfMemory).
Wrote logic for encoding custom draw palettes, and additional 48 color virtual palette (by tiling) for my little encoder.
The tiling needs a lot of fine-tuning per an image, but I begin to know how...
Before I make anything fun, I need an image format (and encoder/decoder) which works on PICO-8.
And yeah, I LOVE reinventing THE WHEEL...
It's the result of my first day with PICO-8. I wrote the encoder in Javascript, which I wlll release somewhere.