Skip to content

arnebp/tet-unity-angryeyebots

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngryEyeBots Unity Sample for The Eye Tribe Tracker

Introduction

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.

Modifications

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

Dependencies

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.

Build

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.

FAQ

Should question arise, do not hesitate to post them on The Eye Tribe Forum.

Changelog

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

About

AngryEyeBots Unity Sample for The Eye Tribe Tracker

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.1%
  • C# 21.1%
  • GLSL 20.7%
  • Shell 0.1%