diff --git a/src/main.lua b/src/main.lua index 26b0ba3..85bb973 100644 --- a/src/main.lua +++ b/src/main.lua @@ -444,7 +444,7 @@ function Game:updateBatting(offenseHandler) if isHomeRun then playdate.timer.new(flyTimeMs, function() -- Verify that the home run wasn't intercepted - if utils.within(1, ball.x, ballDest.x) and utils.within(1, ball.y, ballDest.y) then + if utils.distanceBetweenPoints(ball, ballDest) < 2 then self.announcer:say("HOME RUN!") self.state.offenseState = C.Offense.homeRun -- Linger on the home-run ball for a moment, before panning to the bases.