-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Do users need absolute coordinates? (The Java API provides a turtle.) #16
Comments
As long as we can get a users rotation we can use relative coordinates |
As far as I know, we can not get the rotation. I might be wrong on that though :) I'd provide a turtle library, but as an addon. I think a lot of people are happy with absolute coordinates. |
Well, it would be nice to provide absolute and relative (or turtle if you wish) coordinates. It would be good if the API was designed so that it could support both, without being clumsy for either. By the way, absolute coordinates are turtle coordinates, for a suitable choice of the turtle (provided it does not move). |
Basic Turtle style functions would be nice, i.e. forward, back, left right. A similar action to |
Also I'd say those functions should do the call to Likewise, it should be easy to get the block you're standing on (currently x, y-1, z) - I thought this was what |
The problem with designating something as forward is that you don't know if "forward" is x+1 or z+1 unless you know the current rotation |
Good point |
So far as I know, the users of Logo don't see absolute coordinates when programming the turtle.
According to wikipedia
The turtle has a position and an orientation. Minecraft allows the programmer to get the player's position.
I've just found in the Java api for Minecraft a file turtle.java, with methods such as left, right, up and down.
The text was updated successfully, but these errors were encountered: