Use Templates & Examples
Last updated
Last updated
One of the best ways to learn is by example, or maybe there's a type of game you already know you'd like to build but you don't want to start from scratch. This is exactly what HYTOPIA templates & examples are for!
A template can be created from any example project in the HYTOPIA SDK repo, found here. The available examples are constantly changing, so be sure to check often!
To start a new HYTOPIA project based on an example in the examples
directory of the HYTOPIA SDK, you can use the hytopia init
command with the --template
flag.
For example, if we wanted to create a new project using the payload-game
example as our template, we can run:
The value used for --template
can be any example project folder found in the examples directory of the SDK repository.
If you've created an interesting project with the HYTOPIA SDK that you'd like to be made available as an official example in the SDK repo, you can fork the HYTOPIA SDK repo, add your project as a folders in the examples
directory, and submit a pull request to the HYTOPIA SDK repo for our team to review.
SDK Guides
Learn how to use more powerful HYTOPIA SDK features.