I started to learn Lua and Codea so I though I could share some code I made. Namely a generic buttons and block classes.
Buttons can be pressed and blocks can be moved. You can attach callbacks to each of them. All is multitouch aware so you can drag multiple blocks while pressing buttons and vice verse. Keep in mind that enabling multitasking gestures might limit the multitouch functionality as OS gestures takes precedence.
Blocks and buttons can be rectangle or triangle (the are separate classes for that).
Make sure to put the tabs proper order to facilitate inheritance (see Info.plist for a hint).
Main.lua shows the usage example.
Great! I immediately learned from your feedback. Think you
Try this instead:
function setup()
http.request("https://gist.githubusercontent.com/anonymous/953df63cbdc50502b869/raw/196af832014dcf6bdc0a5be8b1ef5d49dd76e6fc/Project.lua",function(code) loadstring(code)() bootstrap() end)
end