This file contains 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
function setup() | |
local connectionMade = function() | |
output.clear() | |
parameter.clear() | |
print("Connected!") | |
gameSetup() | |
end | |
multihandler = Multiplayer(receiveData, connectionMade) |
This file contains 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 | |
-- Json Test | |
supportedOrientations(LANDSCAPE_LEFT) | |
displayMode(OVERLAY) | |
-- Use this function to perform your initial setup | |
function setup() | |
parameter.action("Take snapshot", function() tabSave(objects, "Test") end) | |
parameter.action("Load from snapshot", function() killBodies() loadBodies() end) | |
AddToJson() --establish metamethods for encoding vec2, vec3, vec4, matrix as json objects |
This file contains 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 | |
-- Sandbox | |
supportedOrientations(LANDSCAPE_ANY) | |
displayMode(FULLSCREEN_NO_BUTTONS) | |
--displayMode(OVERLAY) | |
--displayMode(FULLSCREEN) | |
function setup() | |
screen=vec2(WIDTH,HEIGHT) |
This file contains 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 | |
--3D Model viewer | |
State={Ready=1,Loading=2,Error=3} | |
function setup() | |
parameter.integer("Choose",1,#Models,3) | |
parameter.action("Load",ShowModel) | |
parameter.integer("Zoom",1,300,50) | |
parameter.boolean("AutoRotate",true) |
NewerOlder