EDN Admin
Well-known member
Hi,
I created earlier a map editor for a game with Excel, very simply using just cells as-is. The game is something like the original Legend Of Zelda (not that fancy though), so every cell was one spot where could be things like an enemy, a hero, a stack of
items etc.
Now I would like to make the game more professional (as this is another school project) and Im going to use Visual Studio with it. My friend told me that Data Grid would be the way to go, since it can have a lot of columns and rows, but as I put a Data
Grid to a WPF project, I cant find the properties to set columns or rows during the run time. The player should be able to tell the game that "create me a map that has 200 columns and 500 rows" after which this 500x200 Data Grid would appear and all 100 000
"cells" (or elements, what are they called in Data Grid?) set to, say, grass. Then the player could click on each cell and set them as, say, mountain or forest.
Now, Im not asking anyone to create the map editor for me, but instead, tell me if the Data Grid is the way to go and if it is (like I think it is), then how do I set the amount of those columns and rows?
View the full article
I created earlier a map editor for a game with Excel, very simply using just cells as-is. The game is something like the original Legend Of Zelda (not that fancy though), so every cell was one spot where could be things like an enemy, a hero, a stack of
items etc.
Now I would like to make the game more professional (as this is another school project) and Im going to use Visual Studio with it. My friend told me that Data Grid would be the way to go, since it can have a lot of columns and rows, but as I put a Data
Grid to a WPF project, I cant find the properties to set columns or rows during the run time. The player should be able to tell the game that "create me a map that has 200 columns and 500 rows" after which this 500x200 Data Grid would appear and all 100 000
"cells" (or elements, what are they called in Data Grid?) set to, say, grass. Then the player could click on each cell and set them as, say, mountain or forest.
Now, Im not asking anyone to create the map editor for me, but instead, tell me if the Data Grid is the way to go and if it is (like I think it is), then how do I set the amount of those columns and rows?
View the full article