Fix ordering bug
authorNeil <neil@dip.sun.ac.za>
Tue, 16 Apr 2013 15:06:08 +0000 (17:06 +0200)
committerNeil <neil@dip.sun.ac.za>
Tue, 16 Apr 2013 15:06:08 +0000 (17:06 +0200)
erdslangetjie/__main__.py

index 3234d1b2dab8242b954c5517729ccbcc83762797..6ab5b18caddac77ce1b956694de5757c19c8c687 100644 (file)
@@ -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)