Score 0
Lives 3
High score 0
Lower = a smaller tilt switches lanes.
๐ The camera video never leaves your browser. Nothing is recorded or uploaded.
How to play
- Goal: run up the temple path and collect as many coins as you can. Each coin is +1 point.
- Watch out: spike balls and logs are obstacles. Hitting one costs a life, and you blink for a moment so you can get away. You have 3 lives.
- Head tilt: tilt your head toward your left shoulder to move one lane left, and toward your right shoulder to move right. Come back to straight before the next move. One tilt = one lane.
- Calibration: the first time, the game asks you to look straight, then tilt left, then tilt right. It learns how far you can comfortably tilt. Use Recalibrate any time, and the Tilt sensitivity slider if moves feel too hard or too easy.
- Keyboard or switch: A/D or โ/โ switch lanes in both modes. Many accessibility switches send these key presses. P pauses.
- Can't see you? If the camera loses your face, the game pauses by itself and waits for you.
- The camera needs a secure page (https) or a local server. Allow camera access when your browser asks.
About / design process
Inspiration
I replicated game mechanics from Temple Run, Subway Surfers to create this game.
Why head tilt
This game is primarily designed for accessibility, allowing players with limited mobility to navigate the game using head movements.
The new technique: ml5 faceMesh
I used the ml5.js faceMesh library to detect and track facial landmarks, which are then used to determine the player's head tilt and control the game.
What I'd do next
I would like to improve the accuracy of the faceMesh detection and add more features to the game, such as power-ups and different levels.