Skip to content

Instantly share code, notes, and snippets.

@funrep
Created April 16, 2014 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funrep/10902904 to your computer and use it in GitHub Desktop.
Save funrep/10902904 to your computer and use it in GitHub Desktop.
<Player>:
canvas:
Rectangle:
pos: root.center
size: 40, 40
<Screen>:
Player
from kivy.app import App
from kivy.core.window import Window
from kivy.uix.widget import Widget
from kivy.properties import ListProperty
class Player(Widget):
pass
class Screen(Widget):
pass
class GameApp(App):
def build(self):
return Screen()
if __name__ == '__main__':
GameApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment