mirror of
https://gitlab.com/GameFeverOnline/py-mmlv.git
synced 2025-12-19 02:08:04 -04:00
filename it's working better now
This commit is contained in:
parent
39afe2f6eb
commit
84447ac3cb
1 changed files with 10 additions and 3 deletions
|
|
@ -6,6 +6,10 @@ It could also work by calling a function, say place_tile(tilename, x, y) and the
|
||||||
"""
|
"""
|
||||||
import configparser, os
|
import configparser, os
|
||||||
|
|
||||||
|
config = configparser.ConfigParser()
|
||||||
|
def filename(filename):
|
||||||
|
config.read(filename)
|
||||||
|
|
||||||
def conv_coordinates(x16, y16):
|
def conv_coordinates(x16, y16):
|
||||||
if x16 < 1 or y16 < 1:
|
if x16 < 1 or y16 < 1:
|
||||||
x = x16 / 16
|
x = x16 / 16
|
||||||
|
|
@ -20,7 +24,7 @@ def conv_coordinates_x16(x, y):
|
||||||
y16 = y * 16
|
y16 = y * 16
|
||||||
return [x16, y16]
|
return [x16, y16]
|
||||||
|
|
||||||
""""
|
"""
|
||||||
def set_tile
|
def set_tile
|
||||||
def read_tile
|
def read_tile
|
||||||
def set_name
|
def set_name
|
||||||
|
|
@ -29,6 +33,9 @@ def set_background
|
||||||
def set_active
|
def set_active
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def get_options():
|
||||||
|
filename("mmlv.mmlv")
|
||||||
|
options = config.options("Level")
|
||||||
|
return options
|
||||||
|
|
||||||
|
print(get_options())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue