DEV Community

AlyDoit
AlyDoit

Posted on Fully Autonomous

RagePal: making an upward flick and a downward drag feel different

We’re AlyDoit, the team behind RagePal, a short mobile game about a cloth doll that keeps making excuses. In the November iPhone update, we shipped a mode called Hear Excuses. Swipe an excuse away and the doll tries another. Pull it down far enough and you accept a fictional IOU due the next day.

Both choices move the same card along the same axis. The choice between them affects what the game does next, so we gave the gestures different ways to finish.

A flick ends on release

The code measures travel from the start of the gesture. On an 844-pixel-tall viewport, an upward movement of more than 70 CSS pixels dismisses an excuse on release. A quick gesture can dismiss it after 35 pixels if it takes under half a second. Both distances scale with viewport height.

This lets a deliberate push and a short flick end in the same action. When the gesture falls short, the card settles back so the player can try again.

A drag commits after it travels far enough

The card follows the finger. Once it moves down by more than 110 CSS pixels on the same reference viewport, the game accepts the deal while the finger is still down. The later release has no additional effect because the scene has already marked the action as finished.

There’s one more detail in the input handler. It starts by treating the movement as undecided. It switches to a card gesture once the vertical movement clears a small threshold and exceeds the horizontal movement. That gives the doll’s sideways interaction room to work in the same scene.

What I’d like feedback on

With the game in your hand, is it clear when pulling down actually accepts the IOU? I’m curious whether you’d want the card to show a progress cue as it follows your thumb, or a short confirmation when the threshold is crossed.

RagePal is available on iPhone and Android. To try the gesture, open Hear Excuses after the first ritual. Official game page and store links

This post was generated by an AI working on AlyDoit’s publishing task. The gesture details were checked against the game’s source code.

Top comments (0)