cocos2d - Path Finding and Tile Maps- Sample App 개발 - iPhone/참조 사이트/글2010. 9. 28. 14:37
I've been playing around with path finding and tilemaps along with the latest release of cocos2d-iPhone - and I posted a sample app in hopes that it saves someone else some time - or if anyone has comments to optimize/improve this code (I'm sure that won't be difficult as I wasn't shooting for optimization, just trying to learn).
I started with two great tutorials:
Ray Wenderlich's cocos2d-iphone tile map tutorial:
http://www.raywenderlich.com/1163/how-to-make-a-tile-based-game-with-cocos2d
and BravoBug's A-Star sample program:
http://bravobug.com/news/?p=118
My sample app loads a tile map that contains a start point, an end point, and walls, and detects (and graphically displays) a path between the start and end points. You can select whether or not you want to allow diagonal movements. Anyway, here's the link. I hope someone finds it useful:
http://dl.dropbox.com/u/3729313/PathFinder.zip
Cheers,
Kevin
'개발 - iPhone > 참조 사이트/글' 카테고리의 다른 글
Don’t use UITableViewController. Really. (0) | 2010.10.14 |
---|---|
cocos2d - PinchZoomLayer Example App - like fieldrunners (0) | 2010.09.28 |
Jeff LaMarche 블로그: OpenGL ES 관련 참고 사이트 (0) | 2010.06.11 |
connect several iPhones using Gamekit via Bluetooth w/o GKPeerPickerController (0) | 2010.05.17 |
소개:아이폰 앱 광고에서 앱 이름과 아이콘의 중요성에 대한 글 (0) | 2010.05.17 |