def initPlayer(data): w, h = data.width, data.height # 2 player controlled circles data.player1 = GameObject.Player( ("Left", "Right"), data.ui.playerAMaxRadius, data.ui.ballAColor, 1, w, h) data.player2 = GameObject.Player(("Up", "Down"), data.ui.playerBMaxRadius, data.ui.ballBColor, 2, w, h) # Player background data.player1Pad = GameObject.DirectionPad(data.ui.ballBgColor, data.ui.ballBgRadius + 2, 1, w, h) data.player2Pad = GameObject.DirectionPad(data.ui.ballBgColor, data.ui.ballBgRadius + 2, 2, w, h) getPlayerControlDirections(data)