The sketch code has been re-written with ellipseMode(RADIUS) and rectMode(RADIUS)
Platform is correctly located. Circle bounces on platform.
Note that pw is half the platform width and ph is half the platform height.