Log In  


Cart #todo-0 | 2024-03-18 | Embed ▽ | License: CC4-BY-NC-SA
22

A simple to-do list app for Picotron! Use this to help keep track of what you're working on. :)

22


Pretty neat!
I was looking through the source and I see that sometimes you call stuff with a ?, like in ?(store....)

What does the ? do in your code? I'm unfamiliar with that.


1

@profpatonildo
?from the lua manual: an interrogation mark '?' means that we cannot know how many elements the function pops/pushes by looking only at its arguments.

store is in the API.


1

This was a really nice example on how to make windowed tools! Where did you find the information on how to do this?

Also a little tip to shorten the code for todo/done toggle..
list[i][2] = not list[i][2]

Here's a little caret to the text input as well:
x = print(name[1],6,16,12)
line(x, 16, x, 23, 30)


@farvardin thank you for the explanation!


2

@profpatonildo ? is also a shorthand for the print function in both Pico-8 and Picotron. So instead of typing print("hello, Picotron!") or print(#my_array) to get the length of an array you could just type ?"hello, Picotron!" or ?#my_array.


@phaselock.studio that's a neat trick! Thank you!



[Please log in to post a comment]