This commit is contained in:
2026-05-05 20:05:46 -04:00
parent 4f34b6f6fd
commit d8e3330e5e
2 changed files with 8 additions and 6 deletions

View File

@@ -86,8 +86,8 @@ local BOWL_SLOPE = math.pi / 9 -- 20 degrees
-- Pocket well is deeper — steeper slope
local POCKET_SLOPE = math.pi / 5 -- 36 degrees
-- Restitution on bowl surface normal bounce
local RESTITUTION_WALL = 0.55
local RESTITUTION_POCKET = 0.38
local RESTITUTION_WALL = 0.82
local RESTITUTION_POCKET = 0.68
-- Rolling friction: velocity multiplier per second on the bowl surface
local FRICTION_ROLL = 0.988 -- per frame on track
local FRICTION_POCKET = 0.970 -- per frame in pocket
@@ -252,7 +252,9 @@ local function bgAt(bx, by)
end
local function eraseBall()
px_circle(ballX, ballY, BALL_RADIUS + 2, bgAt(ballX, ballY))
-- Shadow is drawn at +2,+2 with full BALL_RADIUS, so the total footprint
-- extends BALL_RADIUS+2 from centre in x/y. Add 3px margin to be safe.
px_circle(ballX, ballY, BALL_RADIUS + 5, bgAt(ballX, ballY))
end
local function drawBall(bx, by)