Community Curator/Source/TSWRes ObjectsSackboy

function GT.ResetCostume PlayCostume = { ["Material"] = "Brown Knit", ["Eyes"] = "Button Eyes", ["Glasses"] = "Nil", ["Hair"] = "Nil", ["Head"] = "Nil", ["Mouth"] = "Nil", ["Mustache"] = "Nil", ["Feet"] = "Nil", ["Hands"] = "Nil", ["Legs"] = "Nil", ["Neck"] = "Nil", ["Torso"] = "Nil", ["Waist"] = "Nil" } end

function ObjRes.SackboyHead(BellyCol, X, Y, Size, RotRad, Mat, k, black) draw.fillrect(X-(12*Size), Y - (37.98*Size), X+(11*Size), Y-(1*Size), BellyCol) draw.fillrect(X+(16*Size), Y - (8*Size), X+(20*Size), Y-(4*Size), BellyCol) draw.fillcircle(X-(7.81*Size), Y-(14*Size), (16*Size), BellyCol) draw.fillcircle(X+(3.1*Size), Y-(16.99*Size), (19.7*Size), BellyCol) ObjRes.Custom(SbHead, X-(24*Size), Y-(40*Size), (48*Size), 0, BellyCol) draw.line(X-(12*Size), Y-(8*Size), X+(12*Size), Y-(8*Size), black) -- Eyes draw.fillcircle(X-(11*Size), Y-(27*Size), (5*Size), black) draw.fillcircle(X+(11*Size), Y-(27*Size), (5*Size), black) end

function ObjRes.SackboyBelly(BellyCol, X, Y, Size, RotRad, Mat, k, white) draw.fillrect(X-(8*Size), Y-(10*Size),X+(8*Size), Y+(20*Size), BellyCol) draw.fillcircle(X+(.3*Size), Y+(18*Size), (5*Size), BellyCol) ObjRes.Custom(SbBelly, X-(8*Size), Y, (24*Size), 0, BellyCol) -- Zipper draw.line(X, Y+(4*Size), X, Y + (24*Size), white) draw.rect(X-(4*Size), Y+(4*Size), X+(4*Size), Y+(8*Size), white) draw.fillrect(X-(3*Size), Y+(8*Size), X+(3*Size), Y+(12*Size), white) draw.rect(X-(3*Size), Y+(8*Size), X+(3*Size), Y+(20*Size), white) end

function ObjRes.Sackboy(CorTab, X, Y, Size, RotRad, Mat, k)  Size = Size / 32 --draw.rect(X-20, Y-40, X+20, Y, draw.black) local BellyCol, black, white = SackboyMaterials[SackMat] or draw.brown, draw.black, draw.white -- Belly ObjRes.SackboyBelly(BellyCol, X, Y, Size, RotRad, Mat, k, white) -- Head ObjRes.SackboyHead(BellyCol, X, Y, Size, RotRad, Mat, k, black) if ObjSelected == k then

end end local Col255 = Draw.Col255

GT.ResetCostume

SackMat = PlayCostume["Materials"]

SackboyMaterials = { ["Brown Knit"] = draw.brown, ["Cheese"] = draw.yellow, ["Blue Denim"] = draw.blue }

SbHead = { {.15, .05*.9}, {.5, 0*.9}, {.823, .08*.9} --Top Right Corner, {.95, .28*.9}, {1, .72*.9}, {.89, .9*.9}, -- Lower Right Corner {.69, .97*.9}, --{.6, .97*.9}, {.4, 1*.9},  {.15, .95*.9}, {.02, .8*.9}, --{.03, .75*.9}, {0, .52*.9} } SbBelly = { {.09*.66, 0}, {.93*.66, 0}, {.93*.66, .08}, {1.*.66, .48}, {1*.66, .75}, {.75*.66, .95}, {.5*.66, 1}, {.25*.66, .95}, {0, .56} } SbLArm = {} SbRArm = {} SbLLeg = {} SbRLeg = {}

return