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.
@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.
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)
@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
.
[Please log in to post a comment]