mirror of
https://gitlab.com/GameFeverOnline/py-mmlv.git
synced 2025-12-17 17:27:42 -04:00
36 lines
915 B
Python
36 lines
915 B
Python
# A Mega Man Maker MMLV Library/Module By Timothy J. (GameFeverOnline, www.youtube.com/@GameFeverOnline)
|
|
import mmlv_library as mmlv
|
|
import time
|
|
|
|
"""
|
|
_|_ _ __|_o._ _ _ .__ ._ _| _
|
|
|_(/__> |_|| |(_| (_||(_)|_|| |(_|_>
|
|
_| _|
|
|
"""
|
|
|
|
mmlv.read_file("sample.mmlv")
|
|
#
|
|
# # print(mmlv.get_user())
|
|
# #
|
|
# # mmlv.set_level_name("sample")
|
|
# # mmlv.set_user("Python")
|
|
# # print(count)
|
|
# # mmlv.connect_screen("v", 2, 1)
|
|
# # mmlv.set_background(1,mmlv.max_room_y, "cut")
|
|
#print(mmlv.get_block_contents(1,2))
|
|
#print(mmlv.is_block_used(1,2))
|
|
|
|
# repeat = 0
|
|
for x in range(mmlv.max_x+1):
|
|
for y in range(mmlv.max_y+1):
|
|
#if mmlv.is_block_used(x,y):
|
|
# repeat = repeat + 1
|
|
# print(x,y)
|
|
mmlv.set_tile(x, y)
|
|
#print(mmlv.get_block_contents(x, y))
|
|
|
|
# print(repeat)
|
|
#mmlv.is_block_used(0,0,details=False,alt_algorithm=True)
|
|
mmlv.write_changes("sample.mmlv")
|
|
#del_tile(1,1)
|
|
|