#:kivy 1.0.9 : # This needs to be up top, otherwise the properties are not defined. ball: pong_ball player_one: player_left player_two: player_right canvas: Rectangle: pos: self.center_x - 5, 0 size: 10, self.height Label: font_size: 70 center_x: root.width / 4 top: root.top - 50 text: "0" Label: font_size: 70 center_x: root.width * 3 / 4 top: root.top - 50 text: "0" PongBall: id: pong_ball center: self.parent.center PongPaddle: id: player_left x: root.x center_y: root.center_y PongPaddle: id: player_right x: root.width-self.width center_y: root.center_y : size: 50, 50 canvas: Ellipse: pos: self.pos size: self.size : size: 25, 200 canvas: Rectangle: pos:self.pos size:self.size