matthew180 Posted December 7, 2010 Share Posted December 7, 2010 (edited) It's a label for a particular section of the map to be drawn. Not a value. Labels only exist in your code and at *assembly time*. Just like equates. VERY important concept for you to understand. The label "1X1" does not exist in your executable code anywhere, and at run time there is no such location as "1X1". Passing in a string to represent the map you want to draw is possible, but only complicates things, so why would you want to do that? I recommend you pass a number between 0 and 11 to make things really easy, or 1 and 12, then subtract 1 from that value in your assembly code. Use that number as an index in to your map. Since your maps are the same size, and since you now have them stored in a 1x12 configuration instead of 2x6, you can just multiply the passed value by the number of bytes in your map, and add that to the start of the map data. Edited December 7, 2010 by matthew180 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.