nolag update

main
Justus Jan Nico Wolff 2024-05-28 16:57:56 +02:00
parent d4e4b839cc
commit 5eeabda3af
2 changed files with 38 additions and 26 deletions

View File

@ -709,23 +709,29 @@ def run():
obj.code = i
scripts.append(obj)
log("objects transferred!")
gamescript = """
global HASHGAME
import time
while True:
for i in HASHGAME._objects:
i = HASHGAME._objects[i]
HASHGAME.calcphysobj(i)
HASHGAME.render()
"""
gameloopsc = script()
gameloopsc.code = gamescript
maingame.startscript(lambda: gameloopsc.execute(APIGEN(), log))
#gamescript = """
#global HASHGAME
#import time
#while True:
# for i in HASHGAME._objects:
# i = HASHGAME._objects[i]
# HASHGAME.calcphysobj(i)
# HASHGAME.render()
#"""
#gameloopsc = script()
#gameloopsc.code = gamescript
#maingame.startscript(lambda: gameloopsc.execute(APIGEN(), log))
log("game test started!!!")
log("---------------------")
for i in scripts:
maingame.startscript(lambda: i.execute(APIGEN(), log))
window.mainloop()
#window.mainloop()
while True:
for i in maingame._objects:
i = maingame._objects[i]
maingame.calcphysobj(i)
maingame.render()
window.update()
def muladd(target):
for i in range(10):

32
main.py
View File

@ -709,23 +709,29 @@ def run():
obj.code = i
scripts.append(obj)
log("objects transferred!")
gamescript = """
global HASHGAME
import time
while True:
for i in HASHGAME._objects:
i = HASHGAME._objects[i]
HASHGAME.calcphysobj(i)
HASHGAME.render()
"""
gameloopsc = script()
gameloopsc.code = gamescript
maingame.startscript(lambda: gameloopsc.execute(APIGEN(), log))
#gamescript = """
#global HASHGAME
#import time
#while True:
# for i in HASHGAME._objects:
# i = HASHGAME._objects[i]
# HASHGAME.calcphysobj(i)
# HASHGAME.render()
#"""
#gameloopsc = script()
#gameloopsc.code = gamescript
#maingame.startscript(lambda: gameloopsc.execute(APIGEN(), log))
log("game test started!!!")
log("---------------------")
for i in scripts:
maingame.startscript(lambda: i.execute(APIGEN(), log))
window.mainloop()
#window.mainloop()
while True:
for i in maingame._objects:
i = maingame._objects[i]
maingame.calcphysobj(i)
maingame.render()
window.update()
def muladd(target):
for i in range(10):