We encourage the developers to follow certain practices to make sure their games are always compatible with heyVR's platform and they're be taking advantage of everything we offer.
We tried to come up with a list that's not also not harsh on the developers as we don't want to enforce any coding or developing style on any developer.
It's a good idea to consider doing these while developing games on heyVR.
Before using a feature on heyVR such as the SDK, please read the documentation to avoid future troubles.
Always consider the bigger picture. For example, instead of hardcoding URLs, try to see if there's a URL generator service.
Think of the user's privacy and security while developing games. Do not perform any action that could violate this, such as storing a personal data in the savegame or showing it to others.
Optimizing game assets will ensure a better experience for the user. Always try to minify and compress the game assets.
By following these simple guidelines, the development process will go smoother on heyVR.
Avoid hardcoding any value from heyVR in your games, except very special occurances such as the leaderboard slug.
We provide SDKs for the features that the developers are supposed to use. In the future, we will expand these SDKs to cover almost everything. Therefore the developers should avoid making calls to heyVR's API endpoint directly, as these endpoints can change without any notice and break your game.
Developers must NOT interfere with the native JavaScript functions that are provided by the browser via the window
object. Not only would this effect browser functionality, but it could also break the SDK and probably ruin other games. If you need a specific feature, you can contact us or join our discord to ask for this feature to be added to the SDK. We will do our best to do so.
Instead of using your own code to perform an action, use the SDK whenever possible. We regularly add features to our SDK and improve it, which can also improve your game too.