Menu

Turning a phone hinge into a fishing rod: building Fold Fish
📰

Turning a phone hinge into a fishing rod: building Fold Fish

DEV Community: swift·JPUI·6 days ago
#vvAHvjCl
#devtoswift#devto#dev#fish#fold
Reading 0:00
15s threshold

I'm Jan. I make games as JPUI, and Fold Fish is a fishing game for iPhone Duo — Apple's foldable. The short version is this: the hinge is the control. There is no joystick. The fold is the fishing rod.

A fishing rod already works a bit like a hinge. You open it back to load the cast, then you send the line out. That motion was sitting in the hardware. So the design started there, not with a virtual stick in the corner of the screen.

How wide you open the fold sets how far you cast. A tap sends the line into the pond. Hold, and you reel — while dodging the other fish. Three moves. That's it.

The game is built on the iPhone Duo hinge API, UIHinge. I don't have a long technical war story to tell about that, and I won't invent one. The work that interested me was making the phone feel like a rod, then getting the interface out of the way.

A pond across the fold

In book mode, the pond spans the unfolded screen. Fish swim right across the hinge.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.