Apr-05-2021, 06:27 PM
(This post was last modified: Apr-05-2021, 06:27 PM by DreamingInsanity.)
Ok, I think I fixed it. I missed a
The map now actually loads in the map editor. which is good. It doesn't look how I expected it to but I don't think its an issue with the code.
Edit: Found the reason. I deleted a bit of code that multiplied the room size by 8 because I didn't know why it was doing that. Turns out it's because the game "builds" in pixels, not blocks, and a block is 8x8 pixels so to make a room 10x10 it needs to actually be 80x80.
break
in a for loop so it was calling the write function more times that it needed to.The map now actually loads in the map editor. which is good. It doesn't look how I expected it to but I don't think its an issue with the code.
Edit: Found the reason. I deleted a bit of code that multiplied the room size by 8 because I didn't know why it was doing that. Turns out it's because the game "builds" in pixels, not blocks, and a block is 8x8 pixels so to make a room 10x10 it needs to actually be 80x80.