mirror of
https://gitlab.com/GameFeverOnline/py-mmlv.git
synced 2025-12-19 02:08:04 -04:00
first commit - early incomplete version
This commit is contained in:
parent
ef46105e30
commit
462f483c04
2 changed files with 83 additions and 0 deletions
54
mmlv.mmlv
Normal file
54
mmlv.mmlv
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
[Level]
|
||||||
|
o12784,4464="9999.000"
|
||||||
|
e12784,4464="113.000"
|
||||||
|
d12784,4464="6.000"
|
||||||
|
a12784,4464="1.000"
|
||||||
|
o256,0="9999.000"
|
||||||
|
e256,0="113.000"
|
||||||
|
d256,0="6.000"
|
||||||
|
a256,0="1.000"
|
||||||
|
2a12544,4256="1.000"
|
||||||
|
2a256,0="1.000"
|
||||||
|
2b0,4256="0.000"
|
||||||
|
2b0,4032="0.000"
|
||||||
|
2b0,3808="0.000"
|
||||||
|
2b0,3584="0.000"
|
||||||
|
2b0,3360="0.000"
|
||||||
|
2b0,3136="0.000"
|
||||||
|
2b0,2912="0.000"
|
||||||
|
2b0,2688="0.000"
|
||||||
|
2b0,2464="0.000"
|
||||||
|
2b0,2240="0.000"
|
||||||
|
2b0,2016="0.000"
|
||||||
|
2b0,1792="0.000"
|
||||||
|
2b0,1568="0.000"
|
||||||
|
2b0,1344="0.000"
|
||||||
|
2b0,1120="0.000"
|
||||||
|
2b0,896="0.000"
|
||||||
|
2b0,672="0.000"
|
||||||
|
2b0,448="0.000"
|
||||||
|
2b0,224="0.000"
|
||||||
|
2b0,0="0.000"
|
||||||
|
1s="4464.000"
|
||||||
|
1r="0.000"
|
||||||
|
1q="12784.000"
|
||||||
|
1p="0.000"
|
||||||
|
1m="3.000"
|
||||||
|
1l="10.000"
|
||||||
|
1k0="0.000"
|
||||||
|
1bc="0.000"
|
||||||
|
1f="-1.000"
|
||||||
|
1e="29.000"
|
||||||
|
1d="6.000"
|
||||||
|
1cc="1.000"
|
||||||
|
1cb="1.000"
|
||||||
|
1bb="0.000"
|
||||||
|
1ca="0.000"
|
||||||
|
1ba="0.000"
|
||||||
|
1c="1.000"
|
||||||
|
1b="1.000"
|
||||||
|
4b="75.000"
|
||||||
|
4a="game fever online yt"
|
||||||
|
1a="MmLV-PARSER-Test1Default"
|
||||||
|
0v="1.8.4.1"
|
||||||
|
0a="386743.000"
|
||||||
29
mmlv_library.py
Normal file
29
mmlv_library.py
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# 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
|
||||||
|
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.
|
||||||
|
import configparser, os
|
||||||
|
|
||||||
|
def conv_coordinates(x16, y16):
|
||||||
|
if x16 < 1 or y16 < 1:
|
||||||
|
x = x16 / 16
|
||||||
|
y = y16 / 16
|
||||||
|
else:
|
||||||
|
x = 0
|
||||||
|
y = 0
|
||||||
|
return [x, y]
|
||||||
|
|
||||||
|
def conv_coordinates_x16(x, y):
|
||||||
|
x16 = x * 16
|
||||||
|
y16 = y * 16
|
||||||
|
return [x16, y16]
|
||||||
|
|
||||||
|
#def read_level(filename)
|
||||||
|
config = configparser.ConfigParser()
|
||||||
|
|
||||||
|
config.read("mmlv.mmlv")
|
||||||
|
print(config.options("Level"))
|
||||||
|
#print(level)
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue