Open dredclaw opened 12 years ago
i agree drones need some kind of pathfinding.. when they are empty, find the path to the treasure, when they are full, find the path to the base.. currently they always turn right on a crossroads..
I agree with this. Would AStar.java in com/mojang/mojam/level/ be suitable? Right now it does not seem to be used…
Can I recommend a new logic class for it? or that they always go straight at a cross, while always straight or clockwise at T junction?
yes the AStar code that is already tee will work with only a little modification. I use it for my Soldiers and have no issues.
you would need to build a node map of tiles that contain only rails. then run the path finding over it and bam you have your path.
I'm going to leave this open as its a neat idea and I don't know if it was ever implemented or not.
I have noticed over the last few updates/postes that the game is starting to evolve from just bug fixing to more adding of features. Things like larger base sizes and new traps have been added and many others things are being debated on. One thing i seem to find as a missing feature is the fact that rails and treasure drones are hard to controle. For example, when I have a fork in my track, the drones seem to veer off in random or unwanted direction. Also, if i want to connect multiple tracks to my base, the rails end up making the drones pass the base without allowing them to drop off their treasure. To get to my point, if some kind of option was added to allow you to choose the direction that a drone would go when coming to a fork and maybe even make passing drones that dont go directly to the treasure/base block still be able to interact with them.
Of course there are many things that can be added and taken away from these ideas, but I think the basic point is clear that we need some way of controlling our drones in a more efficient and intuitive way.