troubleshooting Question

tileGrid set up

Avatar of jagguy
jagguyFlag for Australia asked on
.NET ProgrammingVisual Basic.NETMicrosoft Development
1 Comment1 Solution214 ViewsLast Modified:

I have found I need to have a large 2D array with images and I cant get around this .Each tile has a number and I get the image depending on what tilenumber appears in a gridmap of numbers to load

I can either  
1)have a public 2D array for the entire tileMap of the screen
or
2)make the 2D array private and pass it around to all classes needed.
3)or have a 2D public array of just numbers and just get the images needed from public functions .

Is option 2,3 the most memory efficient and option 1 a bad idea?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros