I spent an hour this morning on my commute tidying up my games code, I've managed to reduce it from around 1150 rows to 1040 rows of code. I've also improved the comments so I will remember what everything does in future and other people can read it easier.
I'll admit it was boring, and every time I moved a block of code, or wrote a new sub to replace multiple blocks of code I was worried it would break everything.
But it feels good now I've done it, and it's now easier for me to take blocks of it to use in other games!!!
I'll admit it was boring, and every time I moved a block of code, or wrote a new sub to replace multiple blocks of code I was worried it would break everything.
But it feels good now I've done it, and it's now easier for me to take blocks of it to use in other games!!!