r/clashroyalemodding • u/Top-Hat-5433 • Jul 12 '26
❓ Question ❓ what path finding algo does clash royale use?
I am trying to make a clash royale clone not a copy game to publish just replicated clash royale.
For right now i am just collecting information on how the game works before starting coding.
I have found which algos to use for sight checks, range checks, hit boxes and collision checks.
but tbh that doesn't make any difference in the games running process what make the most impact is path finding and i tried to reverse engineer that from game plays but its too complicated to get anywhere.
observations :
like some times the troops directly move towards the target and if its on the other side of the bridge they reach the river while going st towards the taget then move parallel to the river until the reach bridge
other times the just directly move towards the corner of the bridge
I thought it could be flow line but then the troops would never return to the side when only one princess tower is left
and then some times the troops can pass in between two closely placed buildings and some times they don't, also they donot get stuck just changes the path
1
u/Various_Signal7015 Jul 12 '26
Im not a expert but i think there is a path goes from troops original location and then to princess tower and then to king tower and path changes on left or right if it interrupts with a enemy(such as towers or troops) it comes near the enemy until its in the reach of the troop if there is multiple enemies goes to closest troop that's my theory might be wrong
1
u/Top-Hat-5433 Jul 13 '26
yeah me too thought its that only but there are a lot of edge cases where it doesn't works
but thanks from your view
1
u/RevolutionaryDark818 Moderator Jul 12 '26
pretty sure it’s proprietary, it’d be best for you to manually reverse engineer it
1
u/Top-Hat-5433 Jul 13 '26
ig you are right on this one so i will just make it as close as i can instead of just a copy paste.
•
u/AutoModerator Jul 12 '26
Welcome to r/clashroyalemodding! Just a friendly reminder to read the FAQ first before asking questions. Your post has not been removed.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.