Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am looking at creating a 2D birdseye view of a map where the user is basically working there way through it.

Is there a way that I can create the whole map in 1 go and store it somewhere. Then simply only display a certain section of that map during gameplay. e.g map size =100 x 100 but user can only ever see 5x5 (which is zoomed tin to use up 70% of the screen).

Any help as to how I could go about doing this would be much appreciated.

Thanks
Posted
Comments
GPUToaster™ 21-Oct-11 5:04am    
Load the desired 2D map, set up a camera that is always pointing towards say z-axis or parallel to this map, restrict your movement only in XY plain. Set your camera near enough to the map, so that you can see the required portion of the map at any time.
rajpallabana 21-Oct-11 5:29am    
Thanks for the advice, however as I am new to Android Development where would i store the 2D map and hence load it from. Also, Would it be a better idea to use a bitmap array and draw onto a canvas? Fianlly, How can you get your camera position and zoom within an Android app. Thanks again.
GPUToaster™ 21-Oct-11 5:40am    
I am not talking about Android itself, but a general idea, you have to figure it how to do it. :). However kindly look into the glcube example in the android SDK, that might help you setting up the whole thing.
rajpallabana 21-Oct-11 6:17am    
Thanks for the help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900