I have been playing with the robots and have really been enjoying it. I wrote a little program make a robot follow a wall around and around until it detects an entity then it takes a swing at the detected entity. It is pretty amusing to watch the little guy swing it's sword at a group of creepers and zombies. lol Anyway, the program is far from complete. However, before I continue down this path I would be interested in any ideas for a different approach.
Right now the robot has to do a detect in every direction. Since it can only detect in front, above and below I am having it check every direction before it moves forward. This involves turning 4 times and detecting with each turn until it is back to the way it was facing. It works but it is slow. Is there any other way the robot can detect an entity around it without having to turn a full circle? As amusing as it is, it is pretty slow having to spin a circle with every step.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I have been playing with the robots and have really been enjoying it. I wrote a little program make a robot follow a wall around and around until it detects an entity then it takes a swing at the detected entity. It is pretty amusing to watch the little guy swing it's sword at a group of creepers and zombies. lol Anyway, the program is far from complete. However, before I continue down this path I would be interested in any ideas for a different approach.
Right now the robot has to do a detect in every direction. Since it can only detect in front, above and below I am having it check every direction before it moves forward. This involves turning 4 times and detecting with each turn until it is back to the way it was facing. It works but it is slow. Is there any other way the robot can detect an entity around it without having to turn a full circle? As amusing as it is, it is pretty slow having to spin a circle with every step.
Link to post
Share on other sites