Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

The Example Unity Project

Jibran Syed edited this page Sep 9, 2013 · 11 revisions

Intro

The example project provided in the repo demonstrates the capabilities of XboxCtrlrInput. The demo project requires Unity 4.2 or above because it makes use of features that became free in Unity 4.2, including text serialization and shadow rendering. It's located in the /XboxCtrlrInput folder, so when opening the project from Unity, select this folder.

ExampleDemoScreenshot

Contents

The demo includes a scene with four players that are colored by their player number. Player 1 is red, Player 2 is green, Player 3 is blue, and Player 4 is yellow. They all use the same script MovePlayer.cs, which uses XboxCtrlrInput to get Xbox controller input. If any player falls off the platform, the level will restart. Players can fire different kinds of bullets depending on what buttons are pressed.

It must be noted that this demo has no real gameplay in it. It solely demonstrates XboxCtrlrInput as an interactive tech demo. For example, bullets don't do anything except travel in a straight line for usually 3 seconds before getting destroyed.

Clone this wiki locally