Movement for game

Feb 26, 2019 at 4:29pm
I want to make a game for my sem project and I need WASD movement for that. I was planning to make it using getch(),switch() and gotoxy() but how do I get the current co-ordinates of the cursor.
(I have to use Turbo C++)

Feb 26, 2019 at 7:56pm
Maybe wherex() and wherey(). https://www.programmingsimplified.com/c/conio.h/wherex
You'll probably need kbhit(), too.
Last edited on Feb 26, 2019 at 7:57pm
Topic archived. No new replies allowed.