diff --git a/mmlv_library.py b/mmlv_library.py index 7771d2f..7308b7b 100644 --- a/mmlv_library.py +++ b/mmlv_library.py @@ -6,6 +6,10 @@ It could also work by calling a function, say place_tile(tilename, x, y) and the """ import configparser, os +config = configparser.ConfigParser() +def filename(filename): + config.read(filename) + def conv_coordinates(x16, y16): if x16 < 1 or y16 < 1: x = x16 / 16 @@ -20,7 +24,7 @@ def conv_coordinates_x16(x, y): y16 = y * 16 return [x16, y16] -"""" +""" def set_tile def read_tile def set_name @@ -29,6 +33,9 @@ def set_background def set_active """ +def get_options(): + filename("mmlv.mmlv") + options = config.options("Level") + return options - - +print(get_options())