Movement for game

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++)

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