Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey Guys,

Last year I learnt c# and designed a nice wee platformer game I used o'reilly- xna3.0...However everything seems to be 4.0 these days so I am in the process of purchasing this one also.

My question is im designing a 2d board game, Im getting the players to make their moves but i'm having difficulty implementing it onto a tile based 2dimensional array (the board). Do I have to go through each tile (0,0),(0,1)(0,2) and add a value for each tile.

Then whatever tiles the user passes over, include the sum of all and add to the players score?

There doesn't seem to be much info online regarding this subject, my question being does anyone know of any books regarding mapping tiles and using arrays in this manner..or even board games?.

The old platformer games seem alot easier to understand guess its just difficulty and scary starting from scratch and jumping in.

Anyway thanks in advance for any feedback.

John
Posted
Updated 17-Nov-11 0:19am
v2
Comments
Mehdi Gholam 17-Nov-11 8:07am    
It's very hard to understand what your problem is, the requirements will dictated what you have to do.
Sergey Alexandrovich Kryukov 17-Nov-11 12:44pm    
What's your problem? Hard to believe, but right now the question looks like you don't know how to write a double loop traversing all the array elements. (Is your array declared as [][] or [,]? Use the second form.)
What did you try to find online? :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900