If you made a game you want to share with others, you can add it to your Castle profile. This article describes why, and how, you would do that.
When you add a game you made to your Castle profile, here are some things you get:
You can find this button on your own profile. If you don't have a Castle account, now is a good time to create one.
Click the Choose Folder button and find the folder containing the game you want to add.
Your game must have a Castle Project File which includes your Castle username in the owner key. In most cases, Castle already added this for you. If you don't have a Castle Project File, follow this guide to add one to your game.
After you choose a directory, Castle will render a preview of the game at that directory, including the title, description, and the future link to the game.
Bear in mind that after adding your game, you can update it at any time later.
You might notice the greyed out
+id shown in the previewed url for your game. Your game will get a random id after you Add it, but we don't know the id until you finish adding the game. So we show a placeholder within this url preview.
Castle will upload your game's code and assets to Castle's server, and then it will Add the game to your profile.
Congratulations, you've added a game to your profile.
Now that your game is on your profile, anybody in Castle can find it and play it. You might want to make sure the game looks as good as possible, for example by adding some artwork or a primary color. There are lots of ways to customize your game's appearance, so check out the Castle Project File Reference for the full list.
You can Update your game at any time. Find the game's card on your profile, click the U button, and click Update....
If you prefer not to upload your files to Castle, you are welcome to use a different hosting service. For example, some people like to use a Github repository instead. You can change where your game's files are hosted at any time. For more information, see Hosting Your Own Games.
When you add a game, Castle writes a small file called
.castleid to your project directory. This file helps Castle maintain an association between your local source code and the online Castle game, so next time you want to update your game, we can recognize that it's the same project.
If you're using source control, we recommend that you check in the
.castleid file and don't ignore it.