http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GP: Dos programming





> I wonder how to make two functions (or more) that start at the same time in
> C  (compiler: Borland 5.01).
> I'm making a zelda type game in mode 13h and I want my AI to run at the same
> time as my player control loop.

Buy a second computer :)
But I think you wan't to do something like that:

run proc1 - run proc2 - run proc3 
ready

instead of 

run proc1 
ready
run proc2
ready
run proc3
ready

How about to study the interrupt chapter and the timer chapter in one of
your programming books? Interrupts interrupt a running program and
execute a piece of code (for example floppy-interrupt or the graphic
interrupt 10h...). You can set the timer to execute every X ticks your
interrupt :)

-------
ClawGhoul
www.clawsoftware.de
=================================================================
To SUBSCRIBE or UNSUBSCRIBE please visit
http://gameprogrammer.com/mailinglist.html