|
-
May 10th, 2010, 07:42 PM
#2
Re: Array Selection
That would be the String.SubString method. However, I would note that this is a terrible design and is going to lead to a maintenance nightmare. Why don't you instead define a class that exposes properties which have to do with the game board, i.e.,
Code:
class Tile
{
public string ImageFileName { get; }
public bool Passable( int x, int y ) { ... }
// etc.
}
Now you can just maintain a 2d array of "Tile" objects and serialize them to disk when saving. So much nicer and so much more maintainable/extensible than dealing with raw strings everywhere.
If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.
Yes; I have a blog too - http://the-angry-gorilla.com/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|