PlayCanvas ホスティング
最も速く簡単で便利にゲームを公開できる方法はplaycanvas.comへのパブリッシュです。
2つの簡単なステップでPlayCanvasに公開できます:
- 新規 ビルドの公開
- ビルドをプライマリビルドに設定
公開するにはプロジェクトに最低ひとつのシーンが必要です。
新規ビルドの公開
- プロジェクトに移行してEditorを開く。
- 左側のツールバーの ボタンをクリックするか左上メニューからPublishingをクリック。
- Publishingダイアログが開きます。ここから自己ホスティング用のビルドを公開したり、ビルドをダウンロードすることができます。
- "Publish on PlayCanvas"の横のPUBLISHボタンをクリック。
-
次に、新しいビルドに関するいくつかの詳細を記入する必要があります。使用可能なフィールドは以下のとおりです:
- Image: Click on the image to upload a different one if you want. This will be used when sharing the build on Social Media.
- Title: The title of your build.
- Description: The description of your build. This will be used when sharing the link of your build on Social Media.
- Version: The version is there to help you distinguish one build from another. Use a value that makes sense to you.
- Release Notes: Enter any new changes you made for this build. Again like the Version, this will only be shown to you so that you keep better track of your builds.
- Concatenate Scripts: Check this to combine all of your PlayCanvas scripts into a single JavaScript file.
- Minify Scripts: Check this to minify your PlayCanvas scripts to reduce the file size.
- Generate Source Map: Include Source Maps with the build. This can be useful for debugging but is generally disabled when publishing a production version of your app.
- Optimize Scene Format: Compresses the scene JSON up to 50%. Read more here.
- Select the Scenes you want to include in your build from the list. Notice that the Scene with the active banner icon will be loaded first when your build is launched if you include it in the build.
- Click 'PUBLISH NOW'
- You will see a new build created in the BUILDS tab. Wait until it finishes processing.
- Your web app is now live! Feel free to tweet it and share to Facebook right from the published URL.
ビルドは次の形式で永久的リンクを与えられます: https://playcanv.as/b/BUILD_ID/
。このリンクはビルドを削除しない限り有効です。ゲームへのリンクを共有したい場合は、以下の公開されたプロジェクトリンクを使用することを推奨します。
Selecting a Primary Build
同じポップアップでビルドをクリック。
既存の公開ビルドのリストが表示されます。
You can also set the Primary Build for your project, by clicking on the banner icon on the left of each build. This will be the build that users play when they click on the PLAY button on the project's home page.
常にゲームの最新版を参照する単一のリンクがあると便利です。古いビルドを削除することによりリンクが壊れる心配がなくなります。このために各プロジェクトにPrimary Buildリンクが用意されています。これは、常に次の形式になります:
https://playcanv.as/p/PROJECT_ID/
The first time you publish a build, it will automatically become the Primary Build. For any subsequent build, you can choose when to assign it to be the Primary Build. This means that you can publish builds and test them before finally publishing them to your audience.