This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- 0 UI | |
| -- Use this function to perform your initial setup | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| local p1 = UI.Pad({0,100,200,200}) | |
| local p2 = UI.Pad({550,100,200,200}) | |
| local shipPos = UI.Item({500,500,scale=0.1}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- 0 UI | |
| -- Use this function to perform your initial setup | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| scene = Item({0,0}, | |
| Button{100,300,180,60,text="Hello"}, | |
| Button{400,300,100,40,text="Ping"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- Formation | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| physics.gravity(0,0) | |
| touches = {} | |
| items = {} | |
| ships = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 4 play | |
| -- Use this function to perform your initial setup | |
| function setup() | |
| displayMode(FULLSCREEN) | |
| createPitchTable() | |
| parameter.integer("X", 1,10,1,play) | |
| song = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# Main | |
| -- 2 Face | |
| function parseObjFormat(data) | |
| local avs, ans, auvs = {},{},{} | |
| local f = "%s(\-?%d*[\.]%d+)" | |
| for x,y,z in string.gmatch(data, "v" .. f .. f .. f) do | |
| table.insert(avs, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --# UI | |
| UI = {} | |
| function UI.C(code) | |
| return loadstring("return " .. code) | |
| end | |
| UI.Item = class() | |
| UI.Item.defaults = { |
NewerOlder