メインコンテンツまでスキップ

Byte Wars を複製して実行する - 初期設定 - (Unity モジュール)

Last updated on October 23, 2024

Clone the Byte Wars repository

You can find the Byte Wars project folder in the Byte Wars Unity GitHub repository and clone it using the following command:

git clone https://github.com/AccelByte/accelbyte-unity-bytewars-game.git

Open the Byte Wars project in Unity

To open Byte Wars in Unity, you can follow these steps:

  1. From the Unity Hub, go to Projects and click Open.
  2. In the file explorer, locate and open the Byte Wars folder you cloned. The Byte Wars project will be added into the project panel.
  3. Click on the project to open it in the Unity Editor.
注記

The project must be opened with 2021.3.16f1 or later selected in the EDITOR VERSION column. If an earlier version is selected, use the dropdown in this column to select the correct version for the project.

The project may open in the Unity Editor automatically upon locating and opening it in the file explorer.

Image shows the Byte Wars project listed in Unity Hub Unity Byte Wars initial setup

Run Byte Wars

You can run Byte Wars directly in the Unity Editor, or you can build and run it as a .exe executable file.

Run Byte Wars in the Unity Editor

  1. With Byte Wars open in Unity, go to the Scenes folder in your Assets and double-click the MainMenu scene file to make sure the MainMenu scene is open in the Hierarchy.

    Image shows Unity with the Scenes folder open, the MainMenu file selected, and MainMenu opened in the Hierarchy Unity Byte Wars initial setup

  2. Play the game in the Editor.

    Image shows the Unity play button highlighted Unity Byte Wars initial setup

Run Byte Wars from a package

  1. With Byte Wars open in Unity, go to File > Build Settings. Leave everything as default and click Build.

    Image shows the Build Settings window in Unity with the Build button highlighted Unity Byte Wars initial setup

  2. In the file explorer, choose the folder where you want to save the package file and click Select Folder.

    Image shows a file explorer window with the package destination folder selected and the Select Folder button highlighted Unity Byte Wars initial setup

  3. Allow time for it to finish packaging your files.

    Image shows the Unity file packaging progress bar Unity Byte Wars initial setup

  4. Open the folder where you saved the file and open ByteWars.exe to play the game.

ヒント

You can run Byte Wars right from a terminal with the following command:

ByteWars.exe -window-mode -screen-width 1280 -screen-height 720