-import kivy
import pygame
-kivy.require('1.6.0')
+from erdslangetjie.constants import TILE_SIZE
from kivy.app import App
from kivy.uix.widget import Widget
-from kivy.logger import Logger, LoggerHistory
from kivy.uix.relativelayout import RelativeLayout
from kivy.uix.scrollview import ScrollView
from kivy.uix.label import Label
from erdslangetjie.level import LevelList
from erdslangetjie.data import load_image
from erdslangetjie.player import ThePlayer, Nemesis
-from erdslangetjie.constants import TILE_SIZE, QUIET
class GameWindow(RelativeLayout):
def main():
""" Erdslangetjie, a maze game of eluding nemesis
"""
- if QUIET:
- for hdlr in Logger.handlers[:]:
- if not isinstance(hdlr, LoggerHistory):
- Logger.removeHandler(hdlr)
GameApp().run()
-from kivy.utils import platform
-from kivy.config import Config
+import kivy
+
+kivy.require('1.6.0')
+
+from kivy.logger import Logger, LoggerHistory
QUIET = False # kivy logging - change for release
+if QUIET:
+ 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
Config.set('graphics', 'width', '1026')
import sys
import os
-import kivy
-kivy.require('1.6.0')
+from erdslangetjie.constants import TILE_SIZE
from kivy.app import App
-from kivy.logger import Logger, LoggerHistory
from kivy.uix.widget import Widget
from kivy.uix.floatlayout import FloatLayout
from kivy.graphics import Color, Rectangle
from erdslangetjie.data import filepath, load
from erdslangetjie.level import Level
-from erdslangetjie.constants import TILE_SIZE, QUIET
class EditorWindow(FloatLayout):
level = sys.argv[1]
else:
level = 'level1.txt'
- if QUIET:
- for hdlr in Logger.handlers[:]:
- if not isinstance(hdlr, LoggerHistory):
- Logger.removeHandler(hdlr)
EditorApp(level).run()