re #16, I have yet to make an UML (which should go first I know), but I removed the mainblock. So now I create a grid and choose a coordinate which acts like the shape, this way I never have a mainblock and a block script on the same object.
I also updated the grid class like the feedback said and I updated the shapecode so that it works with diagonal blocks (blocks positioned diagonally from the mainblock), the only problem is that is looks like some pretty bad code since it has 8 for-loops, but I do not yet see a way to shorten it.
re #16, I have yet to make an UML (which should go first I know), but I removed the mainblock. So now I create a grid and choose a coordinate which acts like the shape, this way I never have a mainblock and a block script on the same object.
I also updated the grid class like the feedback said and I updated the shapecode so that it works with diagonal blocks (blocks positioned diagonally from the mainblock), the only problem is that is looks like some pretty bad code since it has 8 for-loops, but I do not yet see a way to shorten it.