diff --git a/images/player.png b/images/player.png new file mode 100644 index 0000000..8827fa4 Binary files /dev/null and b/images/player.png differ diff --git a/main.py b/main.py index a3abe88..1ac8592 100644 --- a/main.py +++ b/main.py @@ -1,12 +1,22 @@ from kivy.app import App +from kivy.clock import Clock from kivy.uix.label import Label +from kivy.uix.widget import Widget +from kivy.graphics import Rectangle +class GameWidget(Widget): + def __init__(self,**kwargs): + super().__init__(**kwargs) + + with self.canvas: + Rectangle(source="images/player.png", pos=(0,0), size=(100,100)) + class GlobalForest(App): - def build(self): - return Label(text='Hello world') - + #return Label(text='Hello world') + return GameWidget() if __name__ == '__main__': - GlobalForest().run() + app = GlobalForest() + app.run()