Page 1 of 1
How do I make a character move around ina box using c#orC++?
Posted: Sat Feb 07, 2009 4:30 pm
by Levio91
I want a character (letter A) to move around in a dos type box roughly 10x10 characters long. Will someone write me a quick program so I can look at it? It should be kind of like the game rogue.
Re: How do I make a character move around ina box using c#orC++?
Posted: Sat Feb 07, 2009 6:58 pm
by MarauderIIC
Well, it depends. Some compilers (Borland, for instance) offer compiler-specific functions to place something at a certain x, y on the console. Otherwise, if you want smooth movement (not whole screen cls & redraw), you might have to roll your own, I'm not sure.
Re: How do I make a character move around ina box using c#orC++?
Posted: Sat Feb 07, 2009 8:16 pm
by andrew
Go
here and download the code from the post titled "Text Console Library."
There's a simple demo game with it. It should be what you're looking for.