摘要:
1. 代码CGRect rect1 = [self positionRect:sheep];CGRect rect2 = [self positionRect:cow];if (!CGRectIsNull(CGRectIntersection(rect1, rect2))) { //handle collision [sheep stopAction:jump_4ever];}2.然后 schedule 一个 1/30 或者 1/60 的 函数在里面进行检测。 阅读全文
posted @ 2011-05-11 10:05
jeekun
阅读(1758)
评论(0)
推荐(0)

浙公网安备 33010602011771号