One Off Grid Editor (Keyboard)

Published 2023-06-12


TO LOAD THIS CART in immediate mode type, load #oneoffgrid
VVhat's new ?
(12-31-21)
✅ changed the edit sprites so they are more visible.
✅ shaved off 5-extra chars through some code rewrite.



OLD BOX-GRID VERSION
TO LOAD THIS CART in immediate mode type, load #oneoffgrid-0

Since the recent additions to Pico-8, you can now use PRINT to draw 1-bit pixeled images in a command set called P8SCII which you can find more information about HERE:

https://www.lexaloffle.com/dl/docs/pico-8_manual.html#One_off_characters

One such way is to use 16-characters of 2-digit hexadecimal to each row in an 8x8 pixel format.

This Tweet² and tool at 441-characters or 225 tokens will let you draw one and then copy it directly to the clipboard so you can in immediate mode in Pico-8, press CTRL+V to see it there or directly in your code. This should make it easier to include 1-color sprites for future Tweet carts at a cost of only 22 normal ASCII characters.

The one I wrote here does not use the mouse. Instead it uses the arrow keys for navigation and 🅾️ to plot/unplot a pixel and ❎ to save to clipboard and continue.

If you want to see your work instantly after saving to clipboard and you are running my program in the Pico-8 system, press the ESC key to exit to immediate mode, then press CTRL+V and ENTER to see what you just drew.

Want to start with an image every time ? Load up the cart, go to the sprites and edit the first sprite #0 there with black 0 and white 7 pixels. Then every time you run that image will appear in the edit frame. Useful if for instance you want to start with all white pixels every time.

I would also like to acknowledge and give credit to @Krystman, @CoffeeBat, and @brettski who went before me exploring this command and concept.

Which grid do you prefer or do you have a suggestion of your own for this tool ?

Any questions or comments, please be sure to enter them below.