Skip to content

Commit

Permalink
Fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
GuglioIsStupid committed Aug 31, 2024
1 parent 5abd2c5 commit fe6993d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/love/modules/xml/Sprite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@ Sprite.play = Sprite.animate -- Incase users wan't to use a function more haxefl
function Sprite:screenCenter(ax)
if ax == nil then ax = "xy" end
if ax:find("x") then
self.x = (love.graphics.getWidth() - self.width) / 2
self.x = (1280 - self.width) / 2
end
if ax:find("y") then
self.y = (love.graphics.getHeight() - self.height) / 2
self.y = (720 - self.height) / 2
end
return self
end
Expand Down

0 comments on commit fe6993d

Please sign in to comment.