This is a modified version of the well known Unity sample project 'AngryBots'. This variant is called 'AngryEyeBots' and uses eye tracking input from The Eye Tribe Tracker to add unique features to the game.
The gameplay of the sample has been altered to use gaze input.
- Avatar is moved using arrow keys or joystick
- Firing is done using ctrl or joystick btn 0
- Aiming is done using eye coordinates (instead of normal mouse position)
Note
The game requires a calibrated EyeTribe Server. The EyeTribe Server should therefore be calibrated before launching this sample.
Improvements
In its current state, this sample does not resolve all issues related to using eye input for game control. Since eye gaze can jump from one corner of a screen to the opposite in a very short time, special input handling may be needed. The Eye Tribe encourages developers to improve the overall experience by introducing they own solutions to these issues.
The following files from the original sample have been modded:
- Assets/Scripts/Modules/TriggerOnMouseOrJoystick.js
- Assets/Scripts/Movement/PlayerMoveController.js
- Assets/Scripts/Movement/Joystick.js
- Assets/AngryBots.unity
Changes to the original script files are tagged with /* @TheEyeTribe */
The following scripts were added to the sample:
- Assets/Standard assets/GazeAngryBotsWrap.cs
- Assets/Standard assets/GazeDataUtils.cs
- Assets/Standard assets/UnityGazeUtils.cs
Minor change in Build Settings was required to use EyeTribe C# SDK. Player Settings -> Windows -> Other Settings -> Api Compatibility Level must be set to .NET 2.0
This sample has been developed in Unity 4.3.3 and uses the EyeTribe C# SDK.
For Windows desktop builds using touch, the TouchScript framework is used.
To build, open project in Unity and build for Windows OS or Mac OSX.
To build for touch enabled Windows devices (e.g. Surface Pro), open project in Unity, go to Player Settings -> Windows -> Other Settings -> Scripting Define Symbols and write custom symbol UNITY_WIN_TOUCH. Then build for WIndows OS.
Note that the EyeTribe Server currently supports Windows 7 and newer as well as Mac OSX 10.8 and never. Support for other platforms will be added in the future.
Should question arise, do not hesitate to post them on The Eye Tribe Forum.
0.9.49 (2014-12-12)
- Updated C# SDK
0.9.35 (2014-05-20)
- Updated license
- Updated C# SDK
0.9.34 (2014-05-09)
- Updated C# SDK
- Added touch support for Windows using TouchScript
0.9.26 (2014-02-03)
- Initial release