upscaled sprites, some readjustments

This commit is contained in:
jill 2021-03-27 19:48:01 +03:00
parent 5c7ce2620d
commit d614114baf
Signed by: oat
GPG key ID: DD83A9617A252385
52 changed files with 9 additions and 10 deletions

View file

@ -139,7 +139,7 @@ function self.update(dt)
local hovered = mouseOverBox(x * size, y * size, sprites['header/buttonbg']:getWidth() * size, sprites['header/buttonbg']:getHeight() * size)
if btn.open and hovered and not paused then
setCursor(cursors.hover)
setCursor('hover')
end
local incr = 69 -- its like button positions but forcefully shoved into a recursive function :D
@ -152,7 +152,7 @@ function self.update(dt)
local size = love.graphics.getWidth() / 640
local hovered = mouseOverBox(love.graphics.getWidth() - 115 * size, size * (HEADER_HEIGHT - 65), s:getWidth() * size, s:getHeight() * size)
if hovered and not paused then
setCursor(cursors.hover)
setCursor('hover')
end
bench.stopBenchmark('update_buttons')

View file

@ -19,7 +19,7 @@ return function(money, dt, sheets)
local dist = math.abs(love.mouse.getX() - f.x * love.graphics.getWidth()) + math.abs(love.mouse.getY() - f.y * love.graphics.getHeight())
if dist < sheets.coin1.width/2 and not f.collected then
setCursor(cursors.hover)
setCursor('hover')
end
end
end