So, some tips if you are going to leave a game for 18 months and then try to get back into it!
Document stuff - I never do this!
Don't reused the same variable (zp location) for different things in different parts of the code before you run out of ZP!
If you are going to reuse a mechanism to do two different things, don't decide which it is by cmp #&78, at least "define" a variable FOOD_SQUARE = &78!
Try to come up with a better solution than if the tune just finishing was the lost a life tune, you lost a life as other code may have change the tune before it ended, like one monster left!
Basically, don't try to be too clever, especially not cleverer than you in 18 months time who won't have remembered all the unwritten rules!
![Crying or Very sad :cry:]()
Document stuff - I never do this!
Don't reused the same variable (zp location) for different things in different parts of the code before you run out of ZP!
If you are going to reuse a mechanism to do two different things, don't decide which it is by cmp #&78, at least "define" a variable FOOD_SQUARE = &78!
Try to come up with a better solution than if the tune just finishing was the lost a life tune, you lost a life as other code may have change the tune before it ended, like one monster left!
Basically, don't try to be too clever, especially not cleverer than you in 18 months time who won't have remembered all the unwritten rules!

Statistics: Posted by tricky — Sun Dec 22, 2024 7:08 pm