Madder Games

Setting up

The Madder Starter Pack contains everything you need to integrate your Unity game with the Madder Controller, whether you use the new Unity Input System or not.

The Madder Starter Pack requires the Unity Input System package to be installed. If you do not have the Unity Input System package installed, it will be installed automatically when you import the Madder Starter Pack. However, you do not have to use the Unity Input System to use the Madder Starter Pack.

Installation

You can install the Madder Starter Pack through the Unity Package manager by using this git URL:

git@github.com:maddergames/madder-starter-package.git

We recommend you use the git URL to make updating the package easier.

Integration

The Madder Starter Pack contains two prefabs called MadderManager and MadderControllerManager that must be placed in the scene. These prefabs are Singleton classes, which means they will persist across scene loads.

If using the Unity Input system, the Madder Controller layout will be automatically registered with the Unity Input System upon loading the Unity Editor. You can then assign the bindings to your desired actions in the Unity Input System. See the Madder Controller class for more information.

The Madder Starter Pack provides a sample game manager, sample player manager, and sample player to show you how you might interact with the Madder Manager.

Testing

The Madder Controller Starter Pack contains a MadderControllerTest file that you can use or copy from to test the Madder Controller in your game. The MadderControllerTest is a simple script that will simulate the Madder Controller input for testing purposes.

We have also provided a sample game manager to show how you could call the MadderControllerTest.

Once you have integrated with Madder successfully, you can test your game with the Madder Controller app within the Madder Developer Portal.