Skip to content

Commit

Permalink
Count gaps within the sphere group as zero width
Browse files Browse the repository at this point in the history
Allows max gap score if the gap shot came from double tapping

Addresses CosmicCrash/ZumaBlitzRemake#3
  • Loading branch information
bchantech committed May 8, 2023
1 parent f085d6e commit cff0625
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,10 @@ function Path:getGapSize(offset)
if sphereGroup.nextGroup and sphereGroup.nextGroup:getBackPos() > offset and sphereGroup:getFrontPos() < offset then
return sphereGroup.nextGroup:getBackPos() - sphereGroup:getFrontPos(), sphereGroup
end
-- If the ball passes through the sphere group, return 1. Should only occur if it passed through a ghost sphere.
if sphereGroup:getFrontPos() > offset and sphereGroup:getBackPos() < offset then
return 1, sphereGroup
end
end
end
end
Expand Down

0 comments on commit cff0625

Please sign in to comment.