COMBAT: Main Loop



void Loop()
{
   while(1)
   {
	Draw all moving objects (shots,tanks) on bitmap
	Flush bitmap to screen


	Erase all moving object on bitmap

		
	Read events (keyboard) and update player 
		stateaccordingly
	Generate objects (shots) if necessary.      


	Check for termination (one player left)
	Display messages if necessary


	Move moving objects to new position


	Check for collision, kill Objects 
	Notify player (creator) about them

	
	Synchronize
    }
}

Last Update: 08.03.96