Recognizing patterns when drawing over the iPhone screen

前端 未结 2 482
刺人心
刺人心 2021-02-06 17:18

I\'m trying to write a game where the user can issue commands by drawing certain patterns with his fingers..for example, if he draws a circle, an \'S\' letter, an expiral, etc.<

2条回答
  •  礼貌的吻别
    2021-02-06 17:46

    This site demos a very simple, easy to implement gesture recognizer, which they wrote in Javascript. I've implemented it myself in another language, and found it quite easy to deal with. They've got code, and a paper describing the algorithm; everything you could need.

提交回复
热议问题