开源
像素点 标签描述

下面我来介绍一下手势条纹的应用,水果忍者游戏是一个典型的应用例子。 操作步骤: 1.首先设置屏幕允许单点触摸,也就是要完善一个触摸注册事件 //触摸注册事件 voidHelloWorld::registerWithTouchDispatcher() { CCDirector::sharedDirector()->getTouchDispatcher()->addTargetedDelegate(this,0,true); } 2.设置屏幕允许触摸 this->setTouchEnabled(true); 3.创建手势条纹的对象(CCMotionStreak...

  JDh7sMsPQI0Y   2023年11月13日   19   0   0 触摸事件手势条纹Small像素点