Scaling drawing

This commit is contained in:
Alexey 2025-07-03 15:11:46 +03:00
commit 293f529613
6 changed files with 30 additions and 12 deletions

View file

@ -51,9 +51,9 @@ function Line:draw()
love.graphics.setColor( self.color )
-- Draw start and end points (should look like rings)
local sx, sy = self.startpoint:globalCoords()
love.graphics.circle( "fill", sx, sy, Config.linePointRadius )
love.graphics.circle( "fill", sx, sy, Config.cellSize * Config.linePointRadius )
local ex, ey = self.endpoint:globalCoords()
love.graphics.circle( "fill", ex, ey, Config.linePointRadius )
love.graphics.circle( "fill", ex, ey, Config.cellSize * Config.linePointRadius )
if #self.points <= 1 then
love.graphics.setColor( Color.white )
return