per-polygon icons
[?]
Jun 15, 2022, 8:24 PM
DR5XD5JQ7RICJ7HX3W3BYXO2V2KYLJVLIKJRCEYUXBO4Q2NL54QQCDependencies
- [2]
4MXCZQ6Enew icon for polygons - [3]
DDXXXXBRnew mode for polygons - [4]
WTDKUACNrectangle and square shapes - [5]
VHQCNMARseveral more modules - [*]
BLWAYPKVextract a module
Change contents
- replacement in icons.lua at line 36
love.graphics.line(x+10,y+2, x+18,y+10)love.graphics.line(x+18,y+10, x+16,y+18)love.graphics.line(x+16,y+18, x+4,y+18)love.graphics.line(x+4,y+18, x+2,y+10)love.graphics.line(x+2,y+10, x+10,y+2)local offsetsif Current_drawing_submode == 3 thenoffsets = {{10,4}, {4,16}, {16,16}}elseif Current_drawing_submode == 4 thenoffsets = {{4,4}, {4,16}, {16,16}, {16,4}}elseif Current_drawing_submode == 5 thenoffsets = {{10,2}, {18,10}, {16,18}, {4,18}, {2,10}}elseif Current_drawing_submode == 6 thenoffsets = {{7,4}, {13,4}, {16,10}, {13,16}, {7,16}, {4,10}}elseif Current_drawing_submode == 7 then-- not quite rightoffsets = {{7,4}, {12,5}, {15,11}, {12,15}, {6,17}, {4,12}, {4,8}}elseif Current_drawing_submode == 8 thenoffsets = {{4,4}, {2,10}, {4,16}, {10,18}, {16,16}, {18,10}, {16,4}, {10,2}}elseif Current_drawing_submode == 9 then-- not quite rightoffsets = {{10,4}, {6,8}, {5,12}, {4,16}, {8,18}, {12,18}, {16,16}, {15,11}, {14,8}}elseprint(Current_drawing_submode)assert(false)endfor i=1,#offsets-1 dolove.graphics.line(x+offsets[i][1],y+offsets[i][2], x+offsets[i+1][1],y+offsets[i+1][2])endlove.graphics.line(x+offsets[#offsets][1],y+offsets[#offsets][2], x+offsets[1][1],y+offsets[1][2]) - edit in drawing.lua at line 198
--? print(prevx-cx,prevy-cy)