1.How do I get windows forms to check for keyboard input. For example if the player presses the W key I want the game to run the code I have to move the player up.
2. How should I go about doing collision detection? In my first attempt at the game I had a bunch of if statements checking to see if the player was at the edge of the map or below a tile. However this got to be overwhelming because as most of you probably know, roguelike genre games are all randomly generated. So there would be a LOT of if statements.
Someone said on my original post to use arrays for the tiles. But how do I get an array to hold an x, a y, and a boolean value. For examlpe, if a tile at 10, 14 has a wall on it, I want the x to be 10, the y to be 14 and the bool to be true.
Thanks