How does DoDonPachi on Android+iPhone do input?

A place for people with an interest in developing new shmups.
Post Reply
STGIntervention
Posts: 7
Joined: Fri Jan 31, 2014 8:04 pm

How does DoDonPachi on Android+iPhone do input?

Post by STGIntervention »

I just bought DoDonPachi and the touch controls are spot on, but I'm not able to recreate it for my own game, even trying different smoothing methods and sensitivities. Does anyone know how it was done?
User avatar
trap15
Posts: 7835
Joined: Mon Aug 31, 2009 4:13 am
Location: 東京都杉並区
Contact:

Re: How does DoDonPachi on Android+iPhone do input?

Post by trap15 »

When finger moves, move ship distance*constant, where the constant is some arbitrary value that you come up with through testing.
@trap0xf | daifukkat.su/blog | scores | FIRE LANCER
<S.Yagawa> I like the challenge of "doing the impossible" with older hardware, and pushing it as far as it can go.
STGIntervention
Posts: 7
Joined: Fri Jan 31, 2014 8:04 pm

Re: How does DoDonPachi on Android+iPhone do input?

Post by STGIntervention »

I meant the specifics of it, rather than the method. It feels smoothed in some way, but the movement amount appears to be near enough 1:1 or slightly over. I've tried several smoothing methods and none of them seem to be similar. I'm developing at 320x240 so I'm not sure if that has anything to do with it.
User avatar
Formless God
Posts: 671
Joined: Fri Mar 12, 2010 7:46 am

Re: How does DoDonPachi on Android+iPhone do input?

Post by Formless God »

This moves your ship in the exact same path as your finger and I'm sure it's what Dodonpachi uses. The motion is as smooth and precise as you can get.
OR maybe it's just the camera's adjustments that makes your ship's movement look smoother than usual.
Can you give an example of those smoothing methods?
RegalSin wrote:Then again sex is no diffrent then sticking a stick down some hole to make a female womenly or girl scream or make noise.
STGIntervention
Posts: 7
Joined: Fri Jan 31, 2014 8:04 pm

Re: How does DoDonPachi on Android+iPhone do input?

Post by STGIntervention »

Hmm, maybe I'm just imagining it then. I was positive there was some form of mouse acceleration/smoothing type effect, but I'm probably wrong and it just appeared that way. I'm using something similar to the code you linked me, but thanks nonetheless, it's always helpful to get others' input. :)
Post Reply