Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #:kivy 1.0.9
- <PongBall>:
- size: 50, 5
- canvas:
- Color:
- rgba: 0,1,1,1
- Ellipse:
- pos: self.pos
- size: self.size
- <PongGame>:
- ball: pong_ball
- canvas:
- Color:
- rgba: 0,1,0,0.75
- Rectangle:
- pos: self.center_x, 0
- size: 2, self.height
- Rectangle:
- pos: 0, self.center_y
- size: self.width, 2
- Color:
- rgba: 0,1,0,0.5
- Line:
- circle: self.center_x, self.center_y, 50
- width: 3
- Color:
- rgba: 0,1,0,0.5
- Line:
- circle: self.center_x, self.center_y, 125
- width: 3
- Color:
- rgba: 0,1,0,0.5
- Line:
- circle: self.center_x, self.center_y, 200
- width: 3
- Color:
- rgba: 0,1,0,0.5
- Line:
- circle: self.center_x, self.center_y, 275
- width: 3
- Label:
- color: 0,1,0,1
- font_size: 35
- center_x: root.width / 32 + 5
- top: root.top + 30
- text: "NW"
- Label:
- color: 0,1,0,1
- font_size: 35
- center_x: root.width * 31 / 32
- top: root.top + 30
- text: "NE"
- Label:
- color: 0,1,0,1
- font_size: 35
- center_x: root.width / 32 + 5
- top: root.top - 530
- text: "SW"
- Label:
- color: 0,1,0,1
- font_size: 35
- center_x: root.width * 31 / 32
- top: root.top - 530
- text: "SE"
- PongBall:
- id: pong_ball
- center: self.parent.center
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement