completed set_player

This commit is contained in:
Timothy GFO 2023-10-18 00:52:36 -04:00
parent 45b6344f28
commit 07a393b9b7
5 changed files with 135 additions and 84 deletions

View file

@ -1,6 +1,6 @@
# A Mega Man Maker MMLV Library/Module By Timothy J. (GameFeverOnline, www.youtube.com/@GameFeverOnline)
import mmlv_library as mmlv
import time
"""
_|_ _ __|_o._ _ _ .__ ._ _| _
@ -8,7 +8,7 @@ _|_ _ __|_o._ _ _ .__ ._ _| _
_| _|
"""
mmlv.read_file("4 hour level PyMMLV.mmlv")
mmlv.read_file()
#
# # print(mmlv.get_user())
# #
@ -16,9 +16,22 @@ mmlv.read_file("4 hour level PyMMLV.mmlv")
# # mmlv.set_user("Python")
# # print(count)
# # mmlv.connect_screen("v", 2, 1)
# # mmlv.set_background(0,0, 115)
# # mmlv.set_background(1,mmlv.max_room_y, "cut")
print(mmlv.get_block_contents(1,2))
# #mmlv.write_changes("sample.mmlv")
#print(mmlv.get_block_contents(1,2))
#print(mmlv.is_block_used(1,2))
# n = 1000
# t0 = time.time()
# # for i in range(n): mmlv.get_block_contents(1,2, True)
# for x in range(mmlv.max_x+1):
# for y in range(mmlv.max_y+1):
# if mmlv.is_block_used(x,y):
# print(mmlv.get_block_contents(x, y))
# t1 = time.time()
#
# total_n = t1-t0
# print(total_n)
mmlv.set_player(1,1, player_type="pm")
mmlv.write_changes("sample.mmlv")
#del_tile(1,1)