예제 #1
0
파일: main.c 프로젝트: deanrather/pong-ds
/**
 * Entry point of program.
 */
int main(int argc, char ** argv)
{
	init();
	while(true) // Keep app running
	{
		setupGame();
		while(game.lives) // New Round
		{
			setupRound();
			while(!game.gameover) // Neither player missed the ball
			{
				getInput();
				processAI();
				moveBall();
				displayOutput();
				
				// Sleep
				PA_CheckLid();
				PA_WaitForVBL();
			}
			postRound();
		}
		postGame();
	}
	return 0;
}
예제 #2
0
파일: YYEnemy.cpp 프로젝트: volontin/XJ
void YYEnemy::update(void){
    processAI();
    calcDamage();
    updateAnimation();
}