cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Movement for game
Movement for game
Feb 26, 2019 at 4:29pm UTC
RobinTheHoo
(1)
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 UTC
dutch
(2548)
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 UTC
Topic archived. No new replies allowed.