Skip to content

Latest commit

 

History

History

HelloFalken

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hello Falken Game Sample

The goal of this sample is to demonstrate a simple integration with Falken.

You must be running the service, as described in the service instructions before building and running the Unity demos.

Prerequisites

  • 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.

Set Up Hello Falken

  1. For the Unity demo to properly connect to the service, copy the falken_config.json generated from launching the service to the environments/demos/Assets/StreamingAssets directory.
    1. Windows:
    copy service\tools\falken_config.json environments\unity\demos\Assets\StreamingAssets\falken_config.json
    
    1. macOS:
    cp service/tools/falken_config.json environments/unity/demos/Assets/ StreamingAssets/falken_config.json
    
    1. Linux:
    cp service/tools/falken_config.json environments/unity/demos/Assets/ StreamingAssets/falken_config.json
    
  2. Add the environments/demos/ directory as a project in Unity Hub.
  3. Open the Unity project.
  4. Go to the Menu, Assets --> Import Package --> Custom Package and import the falken.unitypackage downloaded from the Releases page or built.
  5. Open environments/unity/demos/Assets/HelloFalken/Scenes/HelloFalken.unity.
  6. Press the Play button

Play Hello Falken

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.

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.