Esempio n. 1
0
 def __init__(self, name, folder):
     self.name = name
     self.folder = folder
     self.populated = None
     self.heightmap = None
     self.terrainmap = None
     self.tileset = None
     self.tile_width = game.settings.get('levels')["default_tile_width"]
     self.terrains = []
     self.settings = read_dict_from_file(folder + "/settings.dict")
Esempio n. 2
0
    def __init__(self, name, folder):
        self.name = name
        self.folder = folder
        self.representation = None
        self.settings = read_dict_from_file(folder + "/settings.dict")
        self.charset_list = None
        self.charset_lib = {}
        self.charset = {}
        self.input = None

        self.slice_charset()
        self.spawn()
Esempio n. 3
0
    def __init__(self, name, folder):
        self.name = name
        self.folder = folder
        self.representation = None
        self.settings = read_dict_from_file(folder + "/settings.dict")
        self.charset_list = None
        self.charset_lib = {}
        self.charset = {}
        self.input = None

        self.slice_charset()
        self.spawn()
Esempio n. 4
0
 def load_set(self, name):
     action_set = read_dict_from_file('./settings/' + name + '.dict')
     self.action_sets[action_set['name']] = action_set
     self.current_set = self.action_sets[action_set['name']]