Skip to content
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

Area deisgner: Add cooridante support #310

Open
icewolfz opened this issue Oct 9, 2024 · 1 comment
Open

Area deisgner: Add cooridante support #310

icewolfz opened this issue Oct 9, 2024 · 1 comment
Labels
Code editor Code editor related issues enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required

Comments

@icewolfz
Copy link
Owner

icewolfz commented Oct 9, 2024

this requires a on/off field and an offset for x/y/z to allow you to determine how the area x/y/z is converted to "world" x/y/z

@icewolfz
Copy link
Owner Author

icewolfz commented Oct 9, 2024

ShadowMUD supports coordinates on a per area base with linkage system, basic support is just enable i and add a x/y/z offset to know how to convert the logical coordinates to area coordinates

New Room properties

  • coordinates: boolean = false; //default to off
  • coordinateXOffset = 0; //the offset of the logical designer coordinate to convert to world coordinate eg designer x + offset == world offset
  • coordinateYOffset = 0;
  • coordinateZOffset = 0;

Another possible way is use an array of 3

  • coordinateOffsets = [x, y, z]; in code and then convert to each in room editor to save space or keep them grouped

in visual editor have the 3 offsets editable and hide if coordinatesoff
display in read only mode the logical + offset under them as a preview

@icewolfz icewolfz added enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required Code editor Code editor related issues labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code editor Code editor related issues enhancement A new feature or way to improve a current feature to make it better or offer more uses wishlist Wanted but not required
Projects
None yet
Development

No branches or pull requests

1 participant