experiment: use digits to draw regular polygons

[?]
Jun 15, 2022, 3:25 PM
OLZRJ4AXIXZHJSCTMH365Z6HPE26UAVSXPSFAPASZPPHT44VYL4AC

Dependencies

Change contents

  • replacement in help.lua at line 33
    [3.8005][3.6042:6125]()
    love.graphics.print("* Press 'ctrl+g' to switch to drawing polygons", 16+30,y)
    [3.8005]
    [3.6125]
    love.graphics.print("* Press 'ctrl+<digit>' to switch to drawing regular polygons", 16+30,y)
  • edit in help.lua at line 40
    [3.592][3.592:635](),[3.635][3.6260:6366](),[3.728][3.8115:8121](),[3.6366][3.8115:8121](),[3.8115][3.8115:8121]()
    if Current_drawing_mode ~= 'square' then
    love.graphics.print("* Press 'ctrl+s' to switch to drawing squares", 16+30,y)
    y = y + Line_height
    end
  • replacement in help.lua at line 71
    [3.9744][3.7419:7615]()
    love.graphics.print('* Release the mouse button to finish drawing the polygon', 16+30,y)
    y = y + Line_height
    love.graphics.print("* Press 'p' to add a vertex to the polygon", 16+30,y)
    [3.9744]
    [3.7615]
    love.graphics.print('* Release the mouse button to finish drawing the regular polygon', 16+30,y)
  • edit in help.lua at line 89
    [3.10604][3.10604:10648](),[3.10648][3.8118:8220](),[3.1306][3.745:751](),[3.8220][3.745:751](),[3.745][3.745:751]()
    if Current_drawing_mode ~= 'polygon' then
    love.graphics.print("* Press 'g' to switch to drawing polygons", 16+30,y)
    y = y + Line_height
    end
  • edit in help.lua at line 93
    [3.910][3.910:953](),[3.953][2.93:170](),[2.170][3.8403:8427](),[3.8403][3.8403:8427](),[3.1372][3.10753:10759](),[3.8427][3.10753:10759](),[3.10753][3.10753:10759]()
    if Current_drawing_mode ~= 'square' then
    love.graphics.print("* Press 's' to switch to drawing squares", 16+30,y)
    y = y + Line_height
    end