upscaled sprites, some readjustments
This commit is contained in:
parent
5c7ce2620d
commit
d614114baf
52 changed files with 9 additions and 10 deletions
|
@ -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')
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue