From: Neil Date: Tue, 16 Apr 2013 15:06:08 +0000 (+0200) Subject: Fix ordering bug X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=ca4652137b5f185a079f73e818ee371cab698715;p=erdslangetjie.git Fix ordering bug --- diff --git a/erdslangetjie/__main__.py b/erdslangetjie/__main__.py index 3234d1b..6ab5b18 100644 --- a/erdslangetjie/__main__.py +++ b/erdslangetjie/__main__.py @@ -15,7 +15,7 @@ from kivy.utils import platform from erdslangetjie.level import LevelList from erdslangetjie.player import ThePlayer, Nemesis -TILE_SIZE = 40 +TILE_SIZE = 48 class GameWindow(RelativeLayout): @@ -27,7 +27,7 @@ class GameWindow(RelativeLayout): self.tiles = {} self.view = view - rows, cols = self.level_obj.get_size() + cols, rows = self.level_obj.get_size() super(GameWindow, self).__init__( size=(cols*TILE_SIZE, rows*TILE_SIZE), @@ -200,7 +200,7 @@ class GameApp(App): super(GameApp, self).__init__() def build(self): - root = ScrollView(size=(640, 480), size_hint=(None, None)) + root = ScrollView(size=(960, 640), size_hint=(None, None)) game = GameWindow(self.levels, root) game.build() root.add_widget(game)