Default Assets
HYTOPIA provides a wide variety of defaults assets. This includes pre-made audio, block textures, maps, skyboxes, models, and more.
When you start your HYTOPIA project by following the Initial Setupexample, your project will add the @hytopia.com/assets package to your project. Your game server when ran will automatically recognize this package & its directory in node_modules/@hytopia.com/assets
as containing the default available assets, which you are free to use in your game however you'd like.
These assets can then be referenced in the same way as assets in your own project's assets
folder. When your game is ran, the contents of the assets
folder and @hytopia.com/asset
are internally merged and server by the webserver. So, to access a model from the HYTOPIA assets that exists at node_modules/@hytopia.com/assets/models/npcs/zombie.gltf
when creating an Entity for example, models/npcs/zombie.gltf
becomes the resolved model uri for the Entity constructor.
You can find the latest assets available at anytime in the HYTOPIA assets package on NPM, here.
Last updated