projects
/
erdslangetjie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Load correct images for gate and buttons
[erdslangetjie.git]
/
erdslangetjie
/
constants.py
diff --git
a/erdslangetjie/constants.py
b/erdslangetjie/constants.py
index 85041cf7819e50249e7a2052c3fe17d4d762ecdf..c9f16e6b4c2a949efbc28fcd1274b48c8ee54f14 100644
(file)
--- a/
erdslangetjie/constants.py
+++ b/
erdslangetjie/constants.py
@@
-7,17
+7,21
@@
from kivy.logger import Logger, LoggerHistory
QUIET = False # kivy logging - change for release
if QUIET:
QUIET = False # kivy logging - change for release
if QUIET:
- for hdlr in Logger.handlers[:]:
- if not isinstance(hdlr, LoggerHistory):
- Logger.removeHandler(hdlr)
+
for hdlr in Logger.handlers[:]:
+
if not isinstance(hdlr, LoggerHistory):
+
Logger.removeHandler(hdlr)
from kivy.utils import platform
from kivy.config import Config
if platform() != 'android':
TILE_SIZE = 38
from kivy.utils import platform
from kivy.config import Config
if platform() != 'android':
TILE_SIZE = 38
- Config.set('graphics', 'width', '1026')
- Config.set('graphics', 'height', '760')
else:
TILE_SIZE = 64
Config.set('graphics', 'fullscreen', 'auto')
else:
TILE_SIZE = 64
Config.set('graphics', 'fullscreen', 'auto')
+
+# Change here to tweak keyboard controls
+LEFT = ('a', 'left')
+RIGHT = ('d', 'right')
+UP = ('w', 'up')
+DOWN = ('s', 'down')