Skip to content

JDGuldager/SpaceAsteroidsMobileAndWearable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wearable Glove Controller – Asteroid Game

This project is a Unity spaceship game controlled using a wearable glove. The glove uses an IMU, a flex sensor, and a button to control ship movement, throttle, and shooting. An Arduino Nano reads the sensor data and sends it to Unity over serial.

Gameplay

The game is a one minute asteroid challenge. The goal is to destroy as many asteroids as possible before time runs out. Asteroids spawn continuously around the player and break apart when hit.

Demo Video

A full playthrough using the glove controller is available here:
https://www.youtube.com/watch?v=u9J_HRNVX4U

Hardware Used

  • Arduino Nano
  • SparkFun BNO08x IMU
  • Flex sensor (throttle control)
  • Push button (shooting)

The Arduino reads the IMU over I2C, samples the flex sensor using an analog input, and sends all values as comma separated data to Unity.

Software and Tools

  • Unity (game engine)
  • C# (gameplay and input scripts)
  • Arduino IDE
  • LaTeX and TikZ (documentation)

Controls

  • Hand rotation controls ship movement
  • Finger bend controls throttle
  • Button press shoots
  • Keyboard controls are available if the Arduino is not connected

How to Run

  1. Upload the Arduino sketch to the Arduino Nano
  2. Connect the glove hardware and USB cable
  3. Open the Unity project
  4. Set the correct serial port in the ArduinoInput component
  5. Press Play

Notes

  • The IMU may need recalibration during play
  • The game is designed to be simple and fast for testing different input methods

About

Space Invaders with a Physical Glove as input

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors