0 votes

for practice I'm trying to make a clone of the game Loop hero.

I have most things done but I don't know how to make the procedural generated path that loops around in a nice way.

My best idea is to designate a starting point and create tiles in one direction with small random chances to turn perpendicular to that direction and keep going on the original direction once close to the edge of the zone force a turn and repeat 4 times. To make it wrap around my idea was to check for the position of the starting point on the "third forced direction turn" and with a lot of if statements match the position tile by tile.

Is there an easy way to do this? or should I try to implement the above?

in Engine by (404 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected]otengine.org with your username.