Welcome to Phrogram Sign in | Join | Help
in Search


Browse by Tags

All Tags » arrays » help
Sorry, but there are no more tags available to filter with.
  • Populating a 2D Array

    I was looking into tile-based platformer gaming code and examined how the map/backgrounds are generated. Here is one of the examples I found on how a 2D array is populated to generate a map:char map[12][12] = { {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, {2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2}, {2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2}, {2, 1, 1, 1, ...
    Posted to Beginners Corner (Forum) by Jixxon on September 17, 2008