daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #:kivy 1.0.9
  2.  
  3. <PongBall>:
  4.     size: 50, 5
  5.     canvas:
  6.         Color:
  7.             rgba: 0,1,1,1
  8.         Ellipse:
  9.             pos: self.pos
  10.             size: self.size          
  11.  
  12. <PongGame>:
  13.     ball: pong_ball
  14.    
  15.     canvas:
  16.  
  17.         Color:
  18.             rgba: 0,1,0,0.75
  19.         Rectangle:
  20.             pos: self.center_x, 0
  21.             size: 2, self.height
  22.  
  23.         Rectangle:
  24.             pos: 0, self.center_y
  25.             size: self.width, 2
  26.  
  27.         Color:
  28.             rgba: 0,1,0,0.5
  29.         Line:
  30.             circle: self.center_x, self.center_y, 50
  31.             width: 3
  32.  
  33.         Color:
  34.             rgba: 0,1,0,0.5
  35.         Line:
  36.             circle: self.center_x, self.center_y, 125
  37.             width: 3
  38.  
  39.         Color:
  40.             rgba: 0,1,0,0.5
  41.         Line:
  42.             circle: self.center_x, self.center_y, 200
  43.             width: 3
  44.  
  45.         Color:
  46.             rgba: 0,1,0,0.5
  47.         Line:
  48.             circle: self.center_x, self.center_y, 275
  49.             width: 3
  50.  
  51.  
  52.     Label:
  53.         color: 0,1,0,1
  54.         font_size: 35
  55.         center_x: root.width / 32 + 5
  56.         top: root.top + 30
  57.         text: "NW"
  58.        
  59.     Label:
  60.         color: 0,1,0,1
  61.         font_size: 35
  62.         center_x: root.width * 31 / 32
  63.         top: root.top + 30
  64.         text: "NE"
  65.  
  66.     Label:
  67.         color: 0,1,0,1
  68.         font_size: 35
  69.         center_x: root.width / 32 + 5
  70.         top: root.top - 530
  71.         text: "SW"
  72.  
  73.     Label:
  74.         color: 0,1,0,1
  75.         font_size: 35
  76.         center_x: root.width * 31 / 32
  77.         top: root.top - 530
  78.         text: "SE"
  79.  
  80.     PongBall:
  81.         id: pong_ball
  82.         center: self.parent.center
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top