搜索资源列表
4
- 碰撞检测 光扔飞镖是杀不死人的,我们还需要加入碰撞检测。要做到这一点,首先得在场景中更好地跟踪目标和子弹。 在这个游戏中,我们得为小怪和飞镖两种sprite加入一个tag成员变量,以区分两种不同的游戏物体。tag=1的时候这个CCSprite对象为小怪,tag=2的时候则为飞镖。由于在CCNode里面有m_nTag这个成员变量,并且有setTag和getTag方法,因此CCSprite就继承了这些方法,我们可以利用之。
happy
- 自己写的一个刮刮乐小游戏,就是随机产生3个目标数字,然后玩家点击扑克牌,如果连续点击三张的数字是目标数字,则“中奖了”。-Himself wrote a small scratch music games, is randomly generated three target number, then click poker players, if click on three consecutive Numbers is the goal, is the "winning".