Friday 15 February 2013

objective c - iOS Swipe Gesture Recogniser for a quick-paced game -



objective c - iOS Swipe Gesture Recogniser for a quick-paced game -

i'm new ios development world, i'm starting off game that's neither clash of clans or infamous 'i'm rich'. know python , html/css able cope computer terms, great if able explain answers.

a pattern flashes on screen half second, let's 'arrow left, arrow right, arrow left' (in image form). user has replicate pattern (in right order) in order boost forward. basically, i'm asking simplest/most effective way of programming this? great if add together more patterns.

one way thought done have id each pattern, in there pre-defined 'nodes' have swiped in particular order. 1 benefit thought can add together patterns, take while programme them. thought had assign 'eraser' user's brush , observe when +-95% of pattern swiped. however, allow user swipe in order.

perhaps there super easy can do, @ moment have no idea. great if in apple swift, objective-c not problem.

thank in advance,

will

you answered own question in title. take @ uiswipegesturerecognizer documentation. there you'd want force gestures array , compare existing pattern arrays

ios objective-c design-patterns swift swipe

No comments:

Post a Comment