From what I understand, your example is a drawn path, right? I need the path to be generated automatically, making it a bit more advanced. The object moves down the path, the path split into right/left (one of them is a dead end), then repeats.
Develop games in your browser. Powerful, performant & highly capable.
the procedure remains the same , I have not yet had time to look to do this automatically