I will upload my chunk editor soon so you could check how I did that(Right now it has map scrolling, big map handler, autotile and use one background layer because of memory issues). Also, I can upload the uncompiled files so you could see each module