From 2b36bf19f9a4666044005b950dbde51accf5fd15 Mon Sep 17 00:00:00 2001 From: 2ndbeam <2ndbeam@disroot.org> Date: Thu, 30 Oct 2025 00:13:37 +0300 Subject: [PATCH] fixed spacing --- main.lua | 2 +- mouse.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 59a66a6..6e60897 100644 --- a/main.lua +++ b/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 diff --git a/mouse.lua b/mouse.lua index aefa285..bf35911 100644 --- a/mouse.lua +++ b/mouse.lua @@ -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