|
I have some coding
questions: 1. Is there a synchronous
readkey
function, instead of that asynchronous one? Im trying to make a simple game to
help me learn Pascal, but I got stuck on this. I know that Turbo Pascal 7 has
the synchronous readkey, but isnt there a way to do this in normal
Pascal? 2. How would I delay the movement
of something? When I use Delay(250),
it delays the whole program. In VB, I would write this: Dim DelayAmount, DelayCount
As Integer DelayCount =
250 If (Environment.TickCount -
DelayAmount) >= DelayCount Then ' run
code here DelayAmount =
Environment.Tick End
If So
what do I do? Oh, and I need this to be strictly Pascal if possible, not Delphi;
and Im using the Crt code, so its a shell (command prompt style), not Windows
forms. Thanks, Alex
C. Barberi |
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
