Pong Demo
Kivy demo pong app.
- kivy_pong_demo.get_pyinstaller_datas()
Returns the
datas
list required by PyInstaller to be able to packagekivy_pong_demo
in a application.
Pong Demo App
- class kivy_pong_demo.main.PongApp(**kwargs)
Bases:
App
The Pong app.
- build()
Initializes the application; it will be called only once. If this method returns a widget (tree), it will be used as the root widget and added to the window.
- Returns:
None or a root
Widget
instance if no self.root exists.
- clean_up()
Closes resources when the app is done.
Used in testing.
- class kivy_pong_demo.main.PongBall(**kwargs)
Bases:
Widget
The pong ball the moves across the screen.
- class kivy_pong_demo.main.PongGame(**kwargs)
Bases:
Widget
The pong game canvas.
- on_touch_move(touch)
Receive a touch move event. The touch is in parent coordinates.
See
on_touch_down()
for more information.
- class kivy_pong_demo.main.PongPaddle(**kwargs)
Bases:
Widget
The paddle on each side of the screen.
- kivy_pong_demo.main.run()
Runs the pong app.