This is just a little tool I've been needing recently. I know there are websites for it but I was having trouble finding them so I thought, hey, I can make this myself and have some fun in PICO8 at the same time.
Go to new list to create a list of items. Go to lists to see all current lists (there is an example list included). From there you have the option to view, sort, edit (add and delete items), or delete a list.
In sort, you are given two random items from the list and are asked to choose your favourite. This continues until all the items have been ranked. You can then view the list in this new order.
The only thing I would have liked to add is the ability to have lists persist between runs. I haven't been able to find how to save a table of tables of strings, or if it's even possible. If anyone knows how to do this please let me know, I would love to add that feature, but if not it's fine as-is.
Let me know if you find any bugs please.
Friend, i think the functions you may be looking for are CSTORE() and RELOAD(). there's a wealth of information online about it, which I'll leave to you to explore further.
I haven't any personal experience with this functionality but from what i read it seems pretty straightforward. Hope this nudges you in the right direction 😉👍
Missed a small error that made the cart unusable lol, fixed now
@r_leclair thank you, I'll have a look at it, it does seem promising.
I like databases, @RyanB_Dev.
Unfortunately I hit an error very early trying to add and recall an item.
@dw817 thanks! Unfortunately I can't replicate the error. If you can do it again, please let me know the exact steps you took.
Nice. It's a bit like a Trello. Interface could be more intuitive? I keep pressing return that brings up Pico-8 menu.
@positivefmonkey I'm not aware of how to turn that off, unfortunately. The same thing happens when you hit p. I thought it would be much more tedious to have to close the menu every single time.
It was pretty simple, @RyanB_Dev. Just add an empty item. Then try to sort it or do something else with it.
You'll either hang the system or get it to crash.
Ah, I see! I should probably make it so you can't enter empty strings lol
@dw817 thanks for the feedback! I've fixed that, as well as some other errors I ran into while testing it.
Apparently undocumented but you can call this every frame to suppresses the next attempt to show menu
if(btn(6)) poke(0x5f30,1) |
source: https://pico-8.fandom.com/wiki/Memory
There seems to be a bug. When I go to make second new menu, it goes to 'enter next item' to list mode instead of asking for the new list's name.
@positivefmonkey thanks so much! With that, I've added the enter key as an option for entering text when making a list or adding items. I've also fixed the bug you reported.
[Please log in to post a comment]