PlayFeat! - Hand tracking game for iPad

Reelio - Photography & film studio Framer template
Reelio - Photography & film studio Framer template
Reelio - Photography & film studio Framer template
Reelio - Photography & film studio Framer template
Reelio - Photography & film studio Framer template
Reelio - Photography & film studio Framer template

Category:

iOS (iPad) Game

Position:

Lead Coder

Duration:

6 weeks

Technologies Used

Swift
SwiftUI
SpriteKit
Vision
DetectHumanHandPoseRequest

Tools & Platforms

Xcode
TestFlight

PlayFeat! is a cooking game you play with your hands in the air, built with PUSPADI, an NGO in Bali. I was the lead coder, responsible for the mechanics and the hand tracking. It is currently available only for iPad.

Project Overview

Situation

The brief was to build with a community near us, so we picked PUSPADI, an NGO in Bali that makes prosthetics, orthotics and active wheelchairs. We expected to hear about the equipment, but what we heard about was where it could not go: public parks, kerbs, gates and paths that stop halfway. The problem was not in anyone’s body, it was in the paths. So we asked a smaller question: if the park is shut to you, what does moving for fun look like at home?

Task

  • Lead the mechanics, the hand tracking and every threshold in it.

  • Make the food feel like it is really there: you reach out, close your fingers, and the bubble comes with you.

  • Handle Vision reading one frame at a time, where a blurred hand can vanish for a frame and drop what it held.

  • Keep the game playable for people who play one handed, and seat every player correctly before the round.

Action

  • Split the code into three layers: the camera at the back, a transparent SpriteKit scene in the middle and SwiftUI on top.

  • Chose a pinch over a fist, because a fist hides the fingers at the moment you need them.

  • Made PinchDetector decide from a run of frames, with a gap between the close and open thresholds so a hand on the boundary does not chatter.

  • Treated a missing reading as unknown instead of open, and added a 0.35 second grace period so the cursor never blinks out.

  • Built HumanBodyPoseManager to pick the nearest person, and added one hand mode and seat calibration.

Result

  • A grab no longer drops when one bad frame arrives, and the hand stays drawn while you play.

  • Only the nearest player’s hands are tracked, and people walking past behind them are ignored.

  • Timing logic runs without a camera, so I tested it in seconds instead of waving at an iPad.

  • Nothing to hold and nothing to stand up for, and players choose their left or right hand in settings.

  • PlayFeat! is now available only for iPad.