fixed spacing

This commit is contained in:
Alexey 2025-10-30 00:13:37 +03:00
commit 2b36bf19f9
2 changed files with 4 additions and 2 deletions

View file

@ -65,6 +65,6 @@ function love.draw()
love.graphics.print(string.format("%s, %s", Mouse.point.x, Mouse.point.y), 100, 100) love.graphics.print(string.format("%s, %s", Mouse.point.x, Mouse.point.y), 100, 100)
for _, mech in ipairs(Mechs) do for _, mech in ipairs(Mechs) do
mech:draw() mech:draw()
end end
end end

View file

@ -3,6 +3,8 @@
---@field x integer ---@field x integer
---@field y integer ---@field y integer
---@field point GridPoint ---@field point GridPoint
---@field pressed boolean
---@field lastPressed boolean
Mouse = { Mouse = {
x = 0, x = 0,
y = 0, y = 0,
@ -19,6 +21,6 @@ function Mouse:update()
Mouse.y = Mouse.y - Config.cellSize Mouse.y = Mouse.y - Config.cellSize
Mouse.point = GridPoint.snapCoords( Point:new( Mouse.x, Mouse.y ) ) Mouse.point = GridPoint.snapCoords( Point:new( Mouse.x, Mouse.y ) )
Mouse.pressed = love.mouse.isDown( 1 ) Mouse.pressed = love.mouse.isDown( 1 )
end end