Scaling drawing
This commit is contained in:
parent
d4c4c7bfd0
commit
293f529613
6 changed files with 30 additions and 12 deletions
4
line.lua
4
line.lua
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue