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

Implement parent state #10

Open
gzip opened this issue May 11, 2024 · 2 comments
Open

Implement parent state #10

gzip opened this issue May 11, 2024 · 2 comments

Comments

@gzip
Copy link
Contributor

gzip commented May 11, 2024

I think this is the problem with the cassette tape mentioned here:
#4 (comment)

The parent object index is stored at 0x0a in the object data. This is a one (not zero) based index to an object in the same room. It seems to be used primarily to hide objects that are behind doors like the refrigerator or the cabinet. The parent state is also stored in the upper 3 bits of byte 0x08 in the object data, but it seems to always have a value of 4 when present (there two instances of 7 in the code but not in combination with the parent index byte) , so not sure it really matters.

Basically the object needs to be hidden when the parent object is in the closed state, at least for the initial rendering.

Looks like this is also affecting the arcade room.

@gmarty
Copy link
Owner

gmarty commented May 14, 2024

This is one of the values that are parsed, but unused in the UI.
It would be good to signal a parent object by identing its children in the UI:

  • Parent object
    • Child object 1
    • Child object 2

Then the user could drag and drop a child object to another parent in edit mode.

@gmarty
Copy link
Owner

gmarty commented May 27, 2024

I implemented the object identation in 1111b81 to show the relationship between parent and child. This makes it clearer to understand what's going on.
I still need to work on disabling the child states depending on parent's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants