If a 2D map is required i'd suggest you look at using OSMDroid and creating a custom tile layer for the galaxy background: http://code.google.com/p/osmdroid/
You can then use the OSMDroid classes to add planets and spaceships etc. And you can detect taps and long taps on these planets and spaceships. Pros: You'll benefit from the existing OSMDroid API. Cons: Your custom tile layer could well be many MBs in size causing your APK to become very large. You could workaround this by separating the tile layer from the APK, maybe use an expansion file for the tile layer? Martin. On Monday, November 12, 2012 1:31:27 AM UTC, Nobu Games wrote: > > If you want to use 3D graphics then you need to brush up your OpenGL > knowledge and optionally use one of the available game engines out there > that also support Android. > > If it's 2D and performance is not a big concern then you can write your > own custom View for that map (you also could create your 2D game in OpenGL > by the way). > > Your custom map view would: > > - respond to touch gestures through View.onTouchEvent > - Pinch-to-zoom > - panning > - touching game objects for interaction > - have an internal representation of the game map > - ...which could be composed of a grid of X * Y tiles > - Or it could be one big space image > - Preferably also split in tiles so you can stay compatible with > older Android version that don't have > android.graphics.BitmapRegionDecoder > - have an internal representation of all game objects and their > positions: > - ships, planets etc. > - have an internal zoom factor > - x/y coordinates of the current map translation > - This is the point you are looking at right now on your map > - implement onDraw to: > - render the currently visible part of the map by: > - draw the background first > - draw the game object > - draw the UI in the end > > On > Saturday, November 10, 2012 10:44:07 AM UTC-6, tlegras wrote: >> >> Hi, >> I am starting the development of a strategy game. For that I would like >> to develop an interactive galaxy map with objects (basically planets, >> spaceships). Note this would NOT be a real time game, but a turn by turn >> game. >> What is the best way to start knowing I would like a typical mapview >> touch controls (scroll, zoom) but of course with my own map content :) >> - ViewGroup and I develop everything? >> - Custom MapView? >> - Some higher level android or google class >> - third party open source toolkit >> >> Any suggestion welcome >> Thierry. >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

