# PONG ENTITIES from entities.box import * from entities.wall import * from entities.quad import * from entities.ball import * from entities.paddle import * ############################ # OBJECT AND GAME SETUP ############################ surf = Surface(X_MAX, X_MIN, Y_MAX, Y_MIN) ps = PointStream() ps.setCenter(surf.absCenter['x'], surf.absCenter['y']) ps.flipX = FLIP_X ps.flipY = FLIP_Y ps.showBlanking = False ps.showTracking = False ps.trackingSamplePts = 15 ps.blankingSamplePts = 15 ballRadius = (math.sqrt(surf.getArea()) / 20) * BALL_RADIUS_MULT ball = Ball() ball.setRadius(ballRadius) ball.setPos(0, 0) ball.setColor(0, CMAX, 0) paddles = [] for i in range(2):