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

rooms definitions: add "cursor move" command to introduce in-between positioning along --/-/+/++ #27

Open
meszaros-lajos-gyorgy opened this issue Oct 1, 2024 · 0 comments
Labels
room definitions Ticket about rooms files

Comments

@meszaros-lajos-gyorgy
Copy link
Collaborator

Currently the rooms can only be aligned either to the center of the other room or to its edges:
image

It's nicer to have a bit of space around the entrance to have wall support on all sides:
image

This can only be achieved - as the rooms must align to the edges - by adding rooms with one or two dimensions set to 0 just for offsetting the internal cursor. Example from LaLee's minigame:

# room C - pantry
cursor restore living-room
room add 0 0 50 spacer z- x++ y-
room add 50 $entranceHeight 200 door z++ x++ y-
room add 600 $roomHeight 350 room-with-tiles z- x++ y-
with light dim
room add 600 $roomHeight 50 room-with-tiles z-- y-

This hack could be turned into a proper feature and could be done cleanly with manipulating the cursor directly from code:

cursor move 0 0 50

Internally it could be implemented as adding a room as big as the previous one, but with no walls/ceiling/floor and the coordinates adjusted with the 2 values. This way cursor save would also work here.

@meszaros-lajos-gyorgy meszaros-lajos-gyorgy added the room definitions Ticket about rooms files label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
room definitions Ticket about rooms files
Projects
None yet
Development

No branches or pull requests

1 participant