This repository contains the code for the first human-machine teaming game - Dice Adventure developed as part of the STRONG TACT project.
The game has 2 modes:
- Local Mode (Offline mode) - Single Player experience - (Released)
- Competition Mode (Online mode) - Multi Player experience - (Soon to be Released)
- Download the Unity Editor (2020.3.32f1 or above)
- Download this repo (*.zip or *.git). NOTE: Always pull from the main branch of this repo if using version control.
- Open this repo in the Unity Editor.
The valid scene order is:
- /Assets/Scenes/Networked/Lobby_n
- /Assets/Scenes/Networked/Room_n
- /Assets/Scenes/Networked/LocalAnimated
- /Assets/Scenes/Networked/NetworkGamePlay
- /Assets/Scenes/Networked/SurveyScene
- Main Menu Options (Choose between Local and Competition Mode)
- HMT Interface Initialization based on assigned launch parameters.
- Connect to Photon Servers.
- Waiting area for all players to join the same room
- Game initialization after all click on "I'm Ready"
- Local mode of the game. Single player experience.
- Online mode of the game. Multiplayer experience
- Player experience survey
-hmtsocketport: The port you should use for the HMTInterface connection. This needs to be unique for each instance of the game running on the server and will be managed by the flask environment.-photonroom: The name of the photon room to join. This will be provided to the flask server by the call to launch_game.-trainingmode: A flag that can be provided to launch the game directly into local multiplayer mode intended for batch training agents without human players. This disables logging and prevents the game from connecting to remote human clients and should only be used for an all agent game.-relaodonend: A flag that sets the game up to loop back to the lobby once the game has finished and sent a GameOver response to an agent call. Useful for continuously training a batch of agents in trainingmode.-levelSpec: Allows for changing the in-built level specification using a single file of new levels.-tracelogs: Activate logging to standard debug console.-batchmodeand-nographicsare built Unity in flags for Desktop Headless Mode that may be useful to agent training runs
Levels in the game are based on schema descriptions and you could design your own levels too. Refer the schema design document to get started.