Add README file

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-25 22:20:33 +07:00
parent 9e1c8d4680
commit c6c95ed54a

View File

@@ -102,14 +102,14 @@ function love.draw()
-- love.graphics.line(0, grid_height * iy, 640, grid_height * iy) -- love.graphics.line(0, grid_height * iy, 640, grid_height * iy)
-- end -- end
local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition()) -- local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition())
love.graphics.setColor(0, 0, 0, 0.8) -- love.graphics.setColor(0, 0, 0, 0.8)
love.graphics.rectangle("fill", 5, 450, 115, 25) -- love.graphics.rectangle("fill", 5, 450, 115, 25)
drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left") -- drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left")
love.graphics.setColor(1, 1, 1, 1) -- love.graphics.setColor(1, 1, 1, 1)
love.graphics.setLineWidth(2) -- love.graphics.setLineWidth(2)
love.graphics.rectangle("line", 0, 0, 640, 480) -- love.graphics.rectangle("line", 0, 0, 640, 480)
love.graphics.pop() love.graphics.pop()
end end