commiting in case the kivy trial fails
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
from kivy.app import App
|
||||
from kivy.uix.widget import Widget
|
||||
|
||||
|
||||
class PongGame(Widget):
|
||||
pass
|
||||
|
||||
|
||||
class PongApp(App):
|
||||
def build(self):
|
||||
return PongGame()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
PongApp().run()
|
||||
@@ -0,0 +1,21 @@
|
||||
#:kivy 1.0.9
|
||||
|
||||
<PongGame>:
|
||||
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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user