Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/decentraland-scenes/block-portable-experiences
Forbid players from claiming a prize if wearing any portable experience
https://github.com/decentraland-scenes/block-portable-experiences
Last synced: about 1 month ago
JSON representation
Forbid players from claiming a prize if wearing any portable experience
- Host: GitHub
- URL: https://github.com/decentraland-scenes/block-portable-experiences
- Owner: decentraland-scenes
- License: apache-2.0
- Created: 2021-12-30T20:20:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-08T13:11:27.000Z (over 1 year ago)
- Last Synced: 2024-05-02T17:52:44.192Z (8 months ago)
- Language: TypeScript
- Size: 1.51 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Repository - Block Smart Wearables - portables.png" width="200"> | Players wearing smart wearables are blocked from certain aspects of the scene, to prevent unfair advantages over others. | (Examples / Essentials)
README
# Block Smart Wearables
Forbid players from claiming a prize if having any smart wearables or portable experiences on.
![](screenshot/screenshot.png)
The scene includes a series of slightly challenging jumps up to the top, and a treasure to claim at the end. This scene checks if a player is wearing a smart wearable or has a portable experience active, such as a jetpack or any other item that might allow the player to have an unfair advantage over others. It also makes sure the player hasn't had a portable experience on at any given time since having stepped into the scene's parcels.
To enjoy the scene in full, the player must disable all portable experiences (either by deactivating them or by taking off their corresponding wearables), then step out of the scene and back in.
> Note: An easier but more abrupt alternative is to use the "portableExperiences" feature toggle in scene.json. This will turn off any portable experiences for the player as soon as they walk in, read more [here](https://docs.decentraland.org/creator/development-guide/scene-metadata/#feature-toggles).
The scene does the following checks:
- It checks for portable experiences upon loading
- It listens for avatar change events, then checks for portable experiences, in case the player has put on a smart wearable.
- It checks for portable experiences again when the player steps into the scene