Why are so many coordinates

Yes, please do keep asking questions if you want to know/learn something. Other people might have the same questions as you, and they’ll very likely benefit from your questions and the answers. :slight_smile:


Realm Rush appears to be complex but, actually, it is fairly straightforward. Just the pathfinding algorithm is a bit more complex.

If you ignore the code and Unity for a moment and just think about how you would define the rules and concepts with pen and paper, you’ll very likely come up with a similar logic flow as Gary. And if you read his code again, you will notice that most if not all your ideas are reflected by his code.

If you write your own code based on your concept on paper, it might be that it looks a bit different than Gary’s. That’s fine. In the end, you identify cases, and tell the computer what it is supposed to do depending on the cases. The difficult part is usually to identify all cases including edge cases. The SetLabelColor() method @Satinel shared is a good example of what I mean.


See also: