Esempio n. 1
0
INFOFILE = SRC_DIR + "info.xml"
#SETTINGSPATH					= "P:\\snake\\"
#SETTINGSFILE					= "settings.xml"

SPECIAL_PROFILE_DIR = xbmc.translatePath("special://profile/")
SPECIAL_SCRIPT_DATA = os.path.join(SPECIAL_PROFILE_DIR, "addon_data",
                                   __addonID__)
if not os.path.isdir(SPECIAL_SCRIPT_DATA): os.makedirs(SPECIAL_SCRIPT_DATA)
SNAKE_SETTINGS = os.path.join(SPECIAL_SCRIPT_DATA, "settings.xml")

sys.path.append(LIB_DIR)
import lang
import level
import onlinehighscores

ONLINEHIGHSCORE = onlinehighscores.highscore()

######### KEY - FUNCTIONS ################
ACTION_DPAD_LEFT = 1
ACTION_DPAD_RIGHT = 2
ACTION_DPAD_UP = 3
ACTION_DPAD_DOWN = 4
ACTION_SELECT_ITEM = 7
ACTION_PARENT_DIR = 9
ACTION_YBUTTON = 34
ACTION_PREVIOUS_MENU = 10
ACTION_INFO_BUTTON = 11
ACTION_SELDIR = 117
ACTION_RT = 112  # Right Trigger
ACTION_LT = 111  # Left Trigger
Esempio n. 2
0
 def __init__(self):
     self.ohs = onlinehighscores.highscore()
Esempio n. 3
0
	def __init__(self):
		self.ohs = onlinehighscores.highscore()
Esempio n. 4
0
INFOFILE						= SRC_DIR+"info.xml"
#SETTINGSPATH					= "P:\\snake\\"
#SETTINGSFILE					= "settings.xml"

SPECIAL_PROFILE_DIR = xbmc.translatePath( "special://profile/" )
SPECIAL_SCRIPT_DATA = os.path.join( SPECIAL_PROFILE_DIR, "addon_data", __addonID__ )
if not os.path.isdir( SPECIAL_SCRIPT_DATA ): os.makedirs( SPECIAL_SCRIPT_DATA )
SNAKE_SETTINGS = os.path.join( SPECIAL_SCRIPT_DATA, "settings.xml" )


sys.path.append(LIB_DIR)
import lang
import level
import onlinehighscores

ONLINEHIGHSCORE=onlinehighscores.highscore()

######### KEY - FUNCTIONS ################
ACTION_DPAD_LEFT				= 1
ACTION_DPAD_RIGHT				= 2
ACTION_DPAD_UP					= 3
ACTION_DPAD_DOWN				= 4
ACTION_SELECT_ITEM				= 7
ACTION_PARENT_DIR				= 9
ACTION_YBUTTON					= 34
ACTION_PREVIOUS_MENU			= 10
ACTION_INFO_BUTTON				= 11
ACTION_SELDIR					= 117
ACTION_RT						= 112 # Right Trigger
ACTION_LT						= 111 # Left Trigger