fixed spacing
This commit is contained in:
parent
d5e8a6945e
commit
2b36bf19f9
2 changed files with 4 additions and 2 deletions
2
main.lua
2
main.lua
|
|
@ -65,6 +65,6 @@ function love.draw()
|
|||
love.graphics.print(string.format("%s, %s", Mouse.point.x, Mouse.point.y), 100, 100)
|
||||
|
||||
for _, mech in ipairs(Mechs) do
|
||||
mech:draw()
|
||||
mech:draw()
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
---@field x integer
|
||||
---@field y integer
|
||||
---@field point GridPoint
|
||||
---@field pressed boolean
|
||||
---@field lastPressed boolean
|
||||
Mouse = {
|
||||
x = 0,
|
||||
y = 0,
|
||||
|
|
@ -19,6 +21,6 @@ function Mouse:update()
|
|||
Mouse.y = Mouse.y - Config.cellSize
|
||||
|
||||
Mouse.point = GridPoint.snapCoords( Point:new( Mouse.x, Mouse.y ) )
|
||||
|
||||
|
||||
Mouse.pressed = love.mouse.isDown( 1 )
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue