随着苹果公司在消费电子领域取得巨大成功,越来越多的人采用iPad或iPhone进行娱乐休闲或者移动办公,由此带来了苹果应用程序需求也在迅速攀升。为了实现迷宫搜索算法在苹果iOS环境下的应用,文章采用Cocos2D-iPhone框架,在Xcode环境下设计并实现了一个基于右手法则的交互式迷宫搜索游戏,对开发过程中的一些关键技术进行了讨论,在iPhone/iPad环境下完成了真机调试,程序运行流畅,响应用户触碰及时准确,达到了设计目标。
With Apple's great success in Consumer electronics, more and more people use iPad or iPhone in leisure time or in telecommuting, which resulting in the rapid rise in demand of Apple applications. In order to applying maze search algo- rithm in apple's iOS environment, an interactive maze search game using right-hand rule is designed based on Cocos2D-iPhone Framework and Xcode IDE. Key technologies in the development are discussed, and the game is tested not only in Xcode simulator, but also in iPhone/iPad platform. It is demonstrated from the test results that the game runs smoothly and the response to user's touch is accurately and timely. Finally, the development tendency ot" the game on the iPhone platform are summarized.