1. Are you ready for the Galaxy S20? Here is everything we know so far!

Best Way to Handle Complex Level Architecture in Games

Discussion in 'Android Development' started by fastismatt, Jan 5, 2010.

  1. fastismatt

    fastismatt Lurker
    Thread Starter

    Hey all,

    I'm designing a 2D sidescroller-style game and I'm trying to figure out the easiest way to design a map. Right now my plan is to have two layers for the map, one invisible and one visible. The visible one will simply be painted into the background, and the invisible one will not actually be painted. The invisible one I plan to have as an array of numbers where each cell corresponds to a tile in the landscape. How the player interacts with the landscape at that tile depends on the value held in the cell.

    Now I just need to figure out an easy way to import values for this array which may be thousands of columns long. My plan right now is to create a grayscale image where each shade of gray corresponds to a different type of surface, and then to import this image as a bitmap. However, I can't find a way to turn the bitmap into an array. Is there an easy way to do this or a tutorial anywhere I can read?

    Or does anyone have a better approach to this problem?

    Thank you,
    Matt
     


  2. KeithG

    KeithG Well-Known Member

    If you have an hour to kill:
    Google IO 2009 -- Developing real time games

    That session video was fairly informative and packed with some decent ideas on how to get acceptable frame rates .. and what will kill your FPS (specifically the garbage collector)

    He's developing "Replica Island", which you can follow the blog here.

    This blog post, contains some decent links to other game engines & other references ...

    Hope that helps
     
Loading...
Similar Threads - Best Handle Complex
  1. primem0ver
    Replies:
    2
    Views:
    176
  2. NightAngel79
    Replies:
    2
    Views:
    385
  3. Rob
    Replies:
    3
    Views:
    644
  4. Rob
    Replies:
    31
    Views:
    5,021
  5. Staff
    Replies:
    0
    Views:
    223
  6. thedgames
    Replies:
    0
    Views:
    171
  7. Joel76
    Replies:
    7
    Views:
    537
  8. App Update
    Replies:
    0
    Views:
    207
  9. App Update
    Replies:
    3
    Views:
    343
  10. trchiu
    Replies:
    0
    Views:
    86

Share This Page

Loading...