-
Notifications
You must be signed in to change notification settings - Fork 56
Getting Started
This article explains how to use the plugin to create an interactive game project. An interactive game enables viewers to directly control the environment in and around streamers' broadcasts by interacting with the UI controls displayed.
- Open the Mixer menu and select Interactive Studio.
- Create a new project and name it "HelloWorld". Then click Save.
- Click the Build tab at the top of the Interactive Studio Editor as shown in the screenshot below:
- Add a new control. Make sure the control type is set to button (this is the default). Name the button "GiveHealth". This is the string is referenced in the game code.
- Drop the button on the grid.
- Click Save.
Clone the interactive-cpp
repository.
$ git clone https://github.com/mixer/interactive-cpp.git interactive-cpp
Open the InteractiveSample solution.
Update your CLIENT_ID
and INTERACTIVE_ID
in InteractiveSample.cpp. You can obtain your CLIENT_ID
here and your INTERACTIVE_ID
on the CODE tab of your interactive project here.
Run the project. It will launch a command window that will give you provide output of the input provided from your channel.
Copy the source
directory into your C++ game project (you will likely want to rename it). Add interactivity.cpp
to your compilation list and include interactivity.h
to get started.
See the Connecting to Interactive page for details on how you can use the C++ API to create an interactive session.