This should go in iPhone Programming...
And if you're asking what I think you're asking, then you will have a loooong way to go as I think you're simply asking how to view only a portion of the image which is a simple scroll view and no go areas as unit position checks against the background.
Ah, 🙁
Well I wonder how games like red alert manage, or other RTS games for iphone work ? I guess the image is zoomed in or something.
Multiple images that they load in and out of RAM as required most likely.
Having said that, if you have to ask this question you have no business making an RTS. There are many programming challenges which are much more complicated than how to draw the map - that is probably the easiest thing you will end up doing. It's just going to get a lot harder from here (unit movement, AI, multiplayer networking, collision detection, etc)
I like the challenge though 🙂
Your suggestions where very pleasant to read,thanks 🙂
Super forum
You're welcome and good luck - I just wanted to make sure you know what you're in for.
If you're starting out at that level, you don't even need an iPhone at first. Just sign up with the free iPhone Developer program and you can use the simulator of the SDK to see how your app runs, for now.I'll need to get a mini mac and iphone first 🙂
The mountains and cliffs themselves are just tiled images too, they are nothing special they have just had an artist draw mountains and split it up into tiles. Tiling is very very very simple when you know how
Some things to keep in mind.
Largest texture allowed on the iPhone is 1024x1024.
Use no more than 24mb of RAM. Anything above it could crash due to out of memory error.
Use PVR compression to reduce memory size, but textures must be in powers of 2.
Use texture atlases to reduce memory requirement.
Map out your memory requirements before starting out. The iPhone has very limited resources.
Good luck.
Just to add, take advantage of the fact that tiling makes it very easy to do clipping, only load the tiles that are visible (+ an area around if you are going to allow fast movement). This will get a bit more complex if you want the map to scroll smoothly however
Sounds like you've done this type of game before 🙂
Or looked at how Google maps works online...
If you're starting out at that level, you don't even need an iPhone at first. Just sign up with the free iPhone Developer program and you can use the simulator of the SDK to see how your app runs, for now.