Will publish tonight,before midnight my time. Hope this is fine. Went through lot of issues related to RAM usage. Now they are fixed but… The game lags. The snake eating its own tail haha.
One random optimization tip: in loops, avoid indirect references. Instead cache data to local variables.
E.g. before loop set objx = obj.rect.x and use objx inside the loop, if that is constant inside the loop. The same can be used for function names, e.g. blit = sprite.blit. Python is slow if it needs to do many reference lookups on each loop operation.
So after cursing Python, web browser and the world, Legend of Lanea is finally here!
I used the word ‘cursing’ but it was more like a love-hate relationship More seriously using the tool has been great, the workflow is good, super direct. It allowed me to iterate much quicker. And coding + editing maps in the same web page, that was super great! So yeah thanks a lot for pulling this tool out guys/girls.
Looking back I do believe I took some wrong design decision for the coding. This is what mostly led me to having RAM issues, which I had to solve by putting dirty tricks in the code. So yeah it’s not as clean as it initially was, but it works I do plan on trying to clean up and rewrite it in a more efficient way, maybe.
All in all it has been a great ride and I can’t wait to play all the entries, after a long rest…