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.
How do I make a character move around ina box using c#orC++?
Moderator: Coders of Rage
How do I make a character move around ina box using c#orC++?
"Criticism is something you can avoid easily by saying nothing, doing nothing, and being nothing. " - Aristotle
http://www.facebook.com/profile.php?id= ... ef=profile
http://www.facebook.com/profile.php?id= ... ef=profile
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: How do I make a character move around ina box using c#orC++?
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.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Re: How do I make a character move around ina box using c#orC++?
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.
There's a simple demo game with it. It should be what you're looking for.