I just wanted to create some kind of pseudo framerates with my game tryout in DOS.
Therefore I want to let the screen being redrawn in a for(;;) loop and always get a input getch() demand. BUT if this demand isn't solved fast enough the getch() should be skipped.
I want to kinda let the user being able to press W / A / S / D - and move the 'X' through the continued drawn array. Since that all has to happen in "pseudo" realtime I want to let the getch() being skipped so if the user presses one of the above buttons it will be catched because of the processing speed of the machine.
I'm sure this is very dirty coding but i want to try it out anyway!