Moth in a Box
This game has been developed for my "Introduction to Electronics" elective, for which we had to create a game to be controlled by a selfmade controller. As I was intrigued by the photosensors we were given, I decided to design my game around the concept of controlling light to guide a character. And what would be more fitting than a moth being drawn to that light?
The controller for "Moth in a Box" consists of 4 photosensors, each of which is attached to one side of a box. The in-game character reacts to the light levels measured in the real room by moving in that direction. But beware! Other light sources in-game also lure in the moth, so you might have to counteract those forces to avoid a sizzling end to your journey.
My Contributions to this Project
Image Gallery

Close-up of the titular moth in the box

The first level of the game, with light sources as
obstacles

A floating orb of light indicates player input direction

Progress to the next level by reaching the goal marker

Calibrate the light levels before starting to play

A line-up of our handcrafted models (in Blender)

All required wiring on the breadboard

Arduino and breadboard installed inside the controller

The finished controller from the outside