Less buggy Kivy 1.7 hackery
[erdslangetjie.git] / erdslangetjie / constants.py
index fb9336b1daed87abda270852e0d1edcdd8856e6c..35c2e888e6ef4112f08661e9de9e0dd0ded328af 100644 (file)
@@ -1,12 +1,26 @@
-from kivy.utils import platform
+import kivy
+
+kivy.require('1.6.0')
+
+from kivy.logger import Logger, LoggerHistory
 from kivy.config import Config
 
 QUIET = False  # kivy logging - change for release
 
+if QUIET:
+    Config.set('kivy', 'log_enable', 0)
+    Config.set('kivy', 'log_level', 'critical')
+
+from kivy.utils import platform
+
 if platform() != 'android':
     TILE_SIZE = 38
-    Config.set('graphics', 'width', '1026')
-    Config.set('graphics', 'height', '760')
 else:
     TILE_SIZE = 64
-    Config.set('graphics', 'fullscreen', 'True')
+    Config.set('graphics', 'fullscreen', 'auto')
+
+# Change here to tweak keyboard controls
+LEFT = ('a', 'left')
+RIGHT = ('d', 'right')
+UP = ('w', 'up')
+DOWN = ('s', 'down')