I am trying to make an iOS game. It's going to be 2D and tiled, but I am having some difficulty because really don't want to use external libraries if at all possible. I am using Tiled for designing my maps. Does anyone know of a tutorial or article that helps explain making a custom TMX loader?
This is supposed to be a learning experience that's why I don't want to use cocos2d.
Managed to figure it out for myself, TMX files are just XML and after some testing I was able to get one to load with NSXMLParser. The XML is described in detail here
https://github.com/bjorn/tiled/wiki/TMX-Map-Format
Related
I am trying to make a basic application which show my track on the map while walking. Is there any tutorial or source code.
Thanks in advance.
Edit: A friend helped me by this code sample code but it didn't run well http://dl.dropbox.com/u/31913717/MapTracking.zip
I am not at all an iOS developer, just never learned. However, I know that iOS has a KMLViewer that might be useful. Otherwise you will likely have to parse the KML as XML and then figure out what to do with it.
I'm looking for an iOS augmented reality library that will enable me to track a marker and either
Show the user a video (local or YouTube, full screen or mapped to the marker).
Load a regular old fashion view controller with my own code in it (like a UITableViewController).
I've been looking around and all augmented libraries I've seen seem overly complex (for what I want to do).
Do you know of any lightweight library that will allow me to do this? Paid libraries are not a problem.
This is what I've looked at:
Vuforia
String
Popcode
Metaio
3DAR
Mixare
Thanks!
PD: I don't know how to program with Unity and a few of what look like the most promising libraries use this so those are not an option for me. I'd prefer straight up Objective-C inside XCode.
Vuforia now has a video solution included with their Unity SDK if you are able to use Unity. http://u3d.as/content/qualcomm-inc-/vuforia-video-playback/36v
Im making a fairly big game for Mac appstore, and i would like to control my levels using XML. Basically I just need to be able to read co-ordinates out of the XML document and into cocoa, where I can use them to move objects for each level. How do i parse this file in cocoa?
Thanks for your help
NSXML should have everything you need to get started.
I am completely new to objective c and have an quite ambitious project I want to create.
One of the things I'll need to do is have a drawing layer, where I can have a circle in the middle, and be able to drag other circles near it to attach them, and then be able to move them around, changing their position around the initial circle.
I know this may sound vague, but its the best way I can explain it.
Could anyone give me some pointers as to how this could be achieved, or a good reference where I could learn how to do it?
Many thanks for any help you can provide.
There are two protocols that you should look at: NSDraggingDestination and NSDraggingSource.
Objective-C is a language that can be used for developing command-line applications, iOS applications, desktop Mac applications and other beasts. The language itself does not handle graphics, that is left to the higher layers. If you want to develop for iOS or Mac, this higher layer is called Cocoa.
To develop your application you’ll need to get familiar with Xcode, Cocoa and maybe a bit of Quartz 2D. Go to the Apple Developer Website and start looking there, the documentation is quite good. The code samples are a bit hairy sometimes, but they will get you started.
Are there some particular library files available on OS/X that are relevant, I am just not sure where to start.
You'd probably want to use the QuickTime for that. There is some sample code that does this. However, it's not the nicest way to access metadata. The newer QTKit Framework somehow still requires you to fall back to the C-based APIs. There is another example from Apple embedding meta data writing into a Objective-C method. This might be the best starting point for you.