forked from hyperfy-xyz/hyperfy
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dev #33
Merged
Merged
Dev #33
+1,148
−426
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
safari requires user-gesture to enable pointer-lock, eg within the same event loop of a click etc
in build mode when entering pointer-lock it will grab the thing in front of you, but grabbing should only after AFTER you lock.
In addition to being more memory efficient, this allows platforms to inject custom methods into the app runtime so scripts can access new things, eg `world.platform` etc
Apps can now call world.get(key) and world.set(key, value) on the server and those values will be persisted across world restarts. data is stored in world/storage.json
…e it Most social experiences won’t want player collision because it allows other players to do things like block doorways or generally be annoying. This is now back to being off by default, with a PUBLIC_PLAYER_COLLISION variable in your .env to enable it as needed.
Replaced custom buffer builders to use TextEncoder which properly encodes/decodes emoji unicode
Pushes a player in a certain direction with magnitude
supports undoing deleted items, and undo app movement
When in build-mode, if you are not in pointer-lock, its annoying to have to go into pointer-lock and inspect something. Instead you can just right click and inspect whatever your mouse is hovering over.
Helps to make it more obvious so you don’t go moving things accidentally.
This also simplifies the roundRect operations
lets you display a button in the app inspector that can execute things inside the app. useful for setting spawn points or changing things at runtime as a builder.
Instead of having a player entity id, a network id, and a user id, use a single player id for all of these. This makes it much simpler for app scripts to manage everything. This also introduces the limitation that a single user can only exist in the world once, meaning if you are testing multiplayer logic you will need to open a new window in incognito to generate a new user. Ultimately this is a good trade-off for a better app developer experience.
Adds the ability to send an event directly to a specific player.
App scripts had no way to read child nodes!
If your app exposes a prop to upload an image, you can now use that image on uiimage nodes
app.sendTo is now only available on the server as allowing this on the client enabled client spoofing.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Please include a summary of the changes and which component(s) are affected. Explain how your changes improve or modify the component's functionality within the Hyperfy ecosystem.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe your tests:
Test Configuration:
Checklist: