How do i use cocos2d with Xcode? - iphone

I downloaded the lastest version of cocos2d but I am confused as to how to use it with my current project. Can anyone show me how to use it with xcode. I'm looking to design a 2D maze. Do i have to import something ? Any sort of help would be appreciated.

Yes, you need to drag the cocos2d files into your project, then they will be available.
This is a very helpful step-by-step resource on how to do that.
http://monoclestudios.com/cocos2d_whitepaper.html
As far as designing your game, get started, play around, and look at the sample code. There are also very helpful folks on the message board.
http://www.cocos2d-iphone.org/forum/
Good luck!

For the latest version of Cocos2D-iPhone (0.8.1) I've put together a tutorial at:
http://www.antonmills.com/?p=233
It includes everything you need for setting up the Xcode template, adding sprites and a small animation loop in a Hello World type of application, might be helpful :)
also deffinitely check the forum John posted, very helpful lot :)
Cheers,
anton.

Related

Empty Application on Xcode instead of other code generated templates

I want to create an application on Xcode from Empty application on Xcode from scratch, I think is a nice way to learn more what is going on behind the scenes...
did anybody try this already? recommend any specific tutorial?
the ones I found on the internet are pretty basic or using other templates which really abstracts a lot of cool code I would like to get to know better.
I'm using XCode 4.3.2
thanks
Beginning iOS 5 Development by David Mark, Jack Nutting, and Jeff LaMarche covers how to do this in depth. I would recommend checking it out if you haven't done so yet.

Face motion detection technique in iphone

I am searching for face detection technique in iPhone. In my app I want to detect moving motion of face using camera. So, if you have any idea about that then please guide me. I am trying with accelerometer but I could not get any idea. So, if you have any idea about that then please guide me.
Try open CV library for reference here's a link try it out
I agree that you should use OpenCV for this project, but getting it to work in XCode is tricky.
EDIT: The original link I posted is down (presumably because the author has written a book), but the OpenCV project now seems to have an iOS package here:
http://opencv.org/downloads.html
It's a little late, but you could use this for continues face detection:
https://github.com/evermeer/EVFaceTracker
There is a ready-made library dubbed Phonect that does this.
It's a motion detection engine for the iPhone -
Checkout the website at:
www.phonect.me
and the showcase app at:
http://itunes.apple.com/us/app/phonect/id466260946?mt=8
Cheers!
Oded.

Paging UIScrollView doesn't work :( (iPhone, cocos2d)

I found this:
http://www.cocos2d-iphone.org/forum/topic/9417
but the project doesn't works with iOS 4.x and cocos2d 0.99.5.
Can someone share a working project? or get it work?
Thank you very much for any help.
PS: I will vote up any helpful answer and the one who will share a working project gets the accepted answer.
Hi
I don't have time (right now) but I will try to use the one you have linked and post the working project because I will be in need of this in near future.
I used http://brandonreynolds.com/blog/tag/angry-birds-menu/ once.
Edit:
If you read that topic at cocos2d forum, a person named "blackmouth" have posted a working project.
This is the link : https://github.com/blackmouth/shapes-panels

PanoramaGL on iOS 4.0

Has anybody used the panoramaGL from http://code.google.com/p/panoramagl/ ?
How did you setup the project?
I have changed the base sdk to 4.0 but I am getting 75 errors.
If not is there any free library to do 360 photo on iPhone?
The last version of PanoramaGL runs fine on iOS 4 or better. Please check http://code.google.com/p/panoramagl/ and download HelloPanoramaGL example that uses hotspots.
There is a sample Xcode project source code called HelloPanorama in the Downloads section of the PanoramaGL. It is very self explanatory, but here is a walk thru tutorial.
The non-ARC errors for a project with ARC could be fixed using the following instructions. If you'll get any ** errors, just replace **variableName with *__autoreleasing *variableName.
That did it for me.
Note: also if your PLSpherical2Panorama class renders a messed up panorama, you need to have at least one hotspot on it to fix it. Took me some time to find out.
Not a real answer but look here and here. Although the guy behind PanoramaGL is still working on the lib, It seems that people consider It sort of deprecated. I managed to correct lot of the errors to have It compile well on my iPad, but the user experience looking around the panoramic photo, it's not so good like I'd like It to be. The documentation about the tesselation algorithm It's not easy, so I preferred starting over.
In order to avoid having the hotspot image in the middle of the image you can use this. It's an empty image and it's completely transparent :) http://it.wikipedia.org/wiki/File:ImmagineVuota.png

NyArToolkit for iphone

Does anybody have a WORKING copy of NyArToolikit augmented reality port to iPhone? I've read the article http://www.morethantechnical.com/2009/07/01/augmented-reality-on-the-iphone-using-nyartoolkit-w-code/comment-page-2/#comment-380.
Tough I've been unable to figure out the missing parts to make it work. For instance what should be "3DGraphicsView.h" and "3DGraphicsView.m". There's no such file on the code and it seems not to be mentioned on the article text.
Thank you!
Moving ahead to iOS4 SDK options. NyArToolkit for iPhone (this specific implementation) won't work on OS3+.
Did you check https://github.com/omeryavuz/VRToolKit for augmented reality iphone working demo?
Bug fixed https://github.com/benlodotcom/VRToolKit