Community Curator/Source/TSWRes Game2

function CRec(X1,Y1,X2,Y2,X3,Y3,X4,Y4,XVol,YVol) --print("CRec"..X1,Y1,X2,Y2,X3,Y3,X4,Y4) local L, R, U, D = 0,0,0,0 local Col = false local ColX, ColY if X3.2 then R = 1 ColX=true end if X4>X2 and XVol<-.2 then L = 1 ColX=true end if Y3>Y1 and YVol>.2 then D = 1 ColY=true end if Y4<Y2 and YVol<-.2 then U = 1 ColY=true end if ColX and ColY then Col = true end --print("Col",Col, L, R, U, D)  return Col, L, R, U, D end

function GT.PodMenu

end

function GT.LoadProfile if not FS.exists("LBPProfileSave.JSON") then return true, "No file found" end local FileHandle = io.open("LBPProfileSave.JSON") if not FileHandle then return false, "Profile is unreadable" end return true end

function GT.SaveProfile local SaveTable = {} SaveTable["PlayCol1"] = PlayCol1 SaveTable["PlayCol2"] = PlayCol2 SaveTable["PlayCol3"] = PlayCol3 SaveTable["PlayCostume"] = PlayCostume local STString = JSON.EncodeJSON(SaveTable) local FileHandle = io.open("LBPProfileSave.JSON", "w") FileHandle:write(STString) FileHandle:close return true end

return