Cleanup and added plan in comments

This commit is contained in:
Timothy GFO 2023-08-30 16:08:11 -04:00
parent 462f483c04
commit 39afe2f6eb

View file

@ -1,8 +1,9 @@
# A Mega Man Maker MMLV Library/Module By Timothy J. (GameFeverOnline, www.youtube.com/@GameFeverOnline) # A Mega Man Maker MMLV Library/Module By Timothy J. (GameFeverOnline, www.youtube.com/@GameFeverOnline)
### """
The goal is to create a library that reads a mmlv file, and then creates variables for each object, tile, background, etc... So that you could on another program import this as a module The goal is to create a library that reads a mmlv file, and then creates variables for each object, tile, background, etc... So that you could on another program import this as a module
and just give it for example, mm1iceman = [1, 2, 3] , the 1 meaning that it's active and the 2 and 3 it's position in space. In the future there will be more inputs for settings of objects. and just give it for example, mm1iceman = [1, 2, 3] , the 1 meaning that it's active and the 2 and 3 it's position in space. In the future there will be more inputs for settings of objects.
It could also work by calling a function, say place_tile(tilename, x, y) and then do that for every tile placement call. That would separate the placing of tiles from the placing of objects and more. It could also work by calling a function, say place_tile(tilename, x, y) and then do that for every tile placement call. That would separate the placing of tiles from the placing of objects and more.
"""
import configparser, os import configparser, os
def conv_coordinates(x16, y16): def conv_coordinates(x16, y16):
@ -19,11 +20,15 @@ def conv_coordinates_x16(x, y):
y16 = y * 16 y16 = y * 16
return [x16, y16] return [x16, y16]
#def read_level(filename) """"
config = configparser.ConfigParser() def set_tile
def read_tile
config.read("mmlv.mmlv") def set_name
print(config.options("Level")) def set_setting
#print(level) def set_background
def set_active
"""