from kivy.graphics import Color, Rectangle
from kivy.utils import platform
from kivy.clock import Clock
+from kivy.config import Config
from erdslangetjie.level import LevelList
from erdslangetjie.data import load_image
from erdslangetjie.player import ThePlayer, Nemesis
+if platform() != 'android':
+ Config.set('graphics', 'width', '1026')
+ Config.set('graphics', 'height', '760')
+
+
class GameWindow(RelativeLayout):
def __init__(self, level_list, app):
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')
from kivy.uix.widget import Widget
from kivy.uix.floatlayout import FloatLayout
from kivy.graphics import Color, Rectangle
+from kivy.utils import platform
+from kivy.config import Config
from erdslangetjie.data import filepath, load
from erdslangetjie.level import Level
+if platform() != 'android':
+ Config.set('graphics', 'width', '1326')
+ Config.set('graphics', 'height', '760')
+
+
class EditorWindow(FloatLayout):
def __init__(self, level):
- super(EditorWindow, self).__init__(size=(800, 600))
+ super(EditorWindow, self).__init__(size=(1326, 760))
if os.path.exists(filepath(level)):
level_data = load(level)
self.level = level