Log In  

Cart #oneoffgrid-1 | 2021-12-31 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

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.


Cart #oneoffgrid-0 | 2021-12-31 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6


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.

P#103933 2021-12-31 18:39 ( Edited 2022-01-01 06:15)

I like the no mouse approach

P#103938 2021-12-31 19:01

Thanks, @brettski ! My hands aren't very agile with a mouse unless I go very slowly at it. Keyboard has never been a problem.

I was really hoping to make this a tweet at just 280-characters but I just don't have the skill to do so. Maybe someone else can take a crack at it. Would love to see it. And - I'm going to expand upon this I think.

P#103940 2021-12-31 19:09

@dw817, I have been working on import from clipboard. It seemed like a logical addition. I could see it being useful here as well.

P#103941 2021-12-31 19:13

Clipboard is a good idea. I might write a fat monster clipboard program in the future though and I'm wondering how much can be transferred to the clipboard via Pico-8 and will I run into a problem with it being too big ...

P#103943 2021-12-31 19:44 ( Edited 2021-12-31 19:45)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 19:39:28 | 0.045s | Q:27