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

Feature/scene interface #78

Merged
merged 10 commits into from
Jul 2, 2024
Merged

Feature/scene interface #78

merged 10 commits into from
Jul 2, 2024

Conversation

LouisHain
Copy link
Collaborator

@LouisHain LouisHain commented Jul 2, 2024

Closes #8.

Adds Panes that can display pictures, useable for info texts, etc.

Simply add them to a room in panes: [] with parameters position, verticalRotation, horizontalRotation, sizefactor, content
Could be used for issues like #67, #42, #39, #38, #34 in the future!

Adds Windowarcs that can display pictures, that can be used for #24

Simply add them to a room in windowarcs: [] with parameters position, horizontalRotation, arcRadius, arcHeight, content

Adds "Arrowgraphs":

Arrowgraphs hold Arrows at different locations, that are initially invisible.
When graph.updateArrowRotations(destination Arrow Name here); is called, all arrows except the destination Arrow are made visible and point to the next arrow in their corresponding shortest paths to the arrow, which allows the user to follow them directly to the desired goal.
Simply add them to a room in arrows: [] with parameters position, graphName
Currently adding edges is below room.elements.arrows.forEach as the arrows are added to the scene there, which are needed for the arrowgraph. Could be moved to a better place after #71 is done if needed.
To test them i created a arrowgraph in the second room for testing:
WhatsApp Bild 2024-07-02 um 18 05 31_93394636
You can test the function by simply adding graph.updateArrowRotations(P<so und so>); to key down events. Try multiple different "destination arrows" to see them update!
There currently is no minimap, as we dont have the final splat of the kims. I moved this part to new issue #79. It shouldn't be much harder than simply adding invisible buttons over the minimap, that call `graph.updateArrowRotations(P);' when pressed.

@LouisHain LouisHain mentioned this pull request Jul 2, 2024
@LouisHain LouisHain merged commit 4915c4a into main Jul 2, 2024
@LouisHain
Copy link
Collaborator Author

missclick oops

@Courtsilius
Copy link
Collaborator

lgtm!

@Courtsilius Courtsilius deleted the feature/scene-interface branch July 2, 2024 19:12
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

Successfully merging this pull request may close these issues.

Scene Interface
2 participants