1.

Solve : C++ ASCII RogueLike?

Answer»

Hello! Once again, I come to you guys and gals with YET another problem. I have been creating an ASCII RogueLike with c++. Now it is nowhere close to ever be finished if I can't figure out this problem. For this game I would like it to be able to load maps from a text file and process it and then PRINT it to the screen. I don't know how though. I don't know if I should use a CHAR array or a vector with pop_back. What I do know is how to load the text file, with ifstream.

Thanks for any help!
Shiverbob
Curious as to what the "RogueLike" is... is this the game title?

Here is more info that might help: http://www.cplusplus.com/doc/tutorial/ntcs/

Is this going to be a turn based game where you make a selection and then press the enter key to submit your move etc or a game that does not require enter key to be pressed following a key input?

Will you need collision detection between objects on your map?

Is there a reason why you are having to read in from a text file the game map when you can more simply just have it hard coded in the initialization of the array etc?Quote from: DaveLembke on March 14, 2015, 09:33:34 PM

Curious as to what the "RogueLike" is... is this the game title?
http://en.wikipedia.org/wiki/Roguelike


Quote
Is this going to be a turn based game where you make a selection and then press the enter key to submit your move etc or a game that does not require enter key to be pressed following a key input?
The article above answers this.

Quote
Is there a reason why you are having to read in from a text file the game map when you can more simply just have it hard coded in the initialization of the array etc?
Yes, there would be a reason. And that reason is "competent design".Thanks for replying. As to ANSWER your question unanswered by BC_Programming.
There is no need for collision checking as far as walls and other things
The reason for that is so when I call the command _getch(); or getch(); It takes the first thing press, I put that into a variable called input. Then use a switch statement with a few cases and if nothing is done. nothing will be affected.


Discussion

No Comment Found