This directory contains Unity scenes to demonstrate the training flow for Falken.
You must be running the service, as described in the service instructions before building and running the Unity demos.
- Use Unity 2018.4.17f1 or above.
- If you're using an older version of Unity make sure the project is configured to use .NET 4.x or above.
-
For the Unity demo to properly connect to the service, copy the
falken_config.json
generated from launching the service to theenvironments/demos/Assets/StreamingAssets
directory.- Windows:
copy service\tools\falken_config.json environments\unity\demos\Assets\StreamingAssets\falken_config.json
- macOS:
cp service/tools/falken_config.json environments/unity/demos/Assets/StreamingAssets/falken_config.json
- Linux:
cp service/tools/falken_config.json environments/unity/demos/Assets/StreamingAssets/falken_config.json
-
Add the environments/demos/ directory as a project in Unity Hub.
-
Open the Unity project.
-
Go to the Menu, Assets --> Import Package --> Custom Package and import the falken.unitypackage downloaded from the Releases page or built.
-
Open the scene file for the demo that you're interested in playing. Options for scenes to load are:
- environments/unity/demos/Assets/NegaFalken/Scenes/NegaFalken.unity
- environments/unity/demos/Assets/HelloFalken/Scenes/HelloFalkenWithObstacles.unity
- environments/unity/demos/Assets/HelloFalken/Scenes/HelloFalken.unity
- environments/unity/demos/Assets/FirstPerson/Scenes/FirstPerson.unity
- environments/unity/demos/Assets/ThirdPerson/Scenes/ThirdPerson.unity
- environments/unity/demos/Assets/Cart/Scenes/Cart.unity
-
Press the Play button
All of these games require you to play the game for a few rounds, and press the
t
key for Falken to take over.
If Falken is running into trouble playing the game, you can simply take over,
play correctly, then press the t
key again for Falken to take over.
The goal of this game is to drive the cart along the track using arrow or WASD keys to control the cart.
The goal of this game is to navigate the player various rooms using arrow or WASD keys, aim using the mouse, and destroy all enemies using left mouse click.
The Falken player can only see the enemy or room exit that have "enemy" or "exit" hovering over them respectively. You should destroy labeled enemies in each room before proceeding to the room's exit. Clear all of the rooms to win the game.
The goal of this game is to steer the blue ship into the green goal using arrow or WASD keys.
To play the game with obstacles, you can load the
HelloFalkenWithObstacles.unity
scene.
The goal of this game is to steer the blue player using arrow or WASD keys, and shoot the yellow "NegaFalken" player using the space key while being mindful of the blue player's HP (on the left side).
The yellow "NegaFalken" player will learn to play the game from your
demonstrations. You can also press t
to let Falken also take over the blue
player, and see two Falken players play against each other.
The goal of this game is to steer the blue player to the green goal using arrow or WASD keys and the mouse for camera control.