źȯ Ãâ·ÂÀÌ Àß µÇ´ÂÁö È®ÀÎÇϱâ À§ÇØ Àӽ÷ΠmainÀ» ±¸¼ºÇÏ¿© ½ÇÇàÇØ º» ÇÁ·Î±×·¥Àε¥,
CreateShot_P1 ÇÔ¼ö¿¡¼ MAX_SHOT(20)±îÁö 20°³ÀÇ ÅºÈ¯À» 4¹æÇâÁß ·£´ýÀ¸·Î ÇÑ ±ºµ¥¿¡ »ý¼ºÇÏ¿© ±¸Á¶Ã¼¿¡ Á¤º¸¸¦ ÀúÀåÇϱ⠶§¹®¿¡ while¹® ¹Û¿¡ ´ÙÀ½°ú °°ÀÌ ¼±¾ðÇϸé
int main()
{
int i;
player.liveFlag = 1;
ClearScreen();
Initial();//Ä¿¼ ¾Èº¸À̵µ·Ï.
for( i = 0 ; i < HEIGHT ; i++ ) //¹æ¾î¸ðµå ¸ÞÀΠȸé Ãâ·Â
{
printf(MainScreen[i]);
}
CreateShot_P1();
while( Stage_flag_1 == 1 ) {
ShotAction_P1();
DrawShot_P1();
if( ( GetAsyncKeyState(VK_SPACE) & 0x8000 ) ) Stage_flag_1 = 0;
}
}
Ãâ·ÂÀÌ Àß µÉ ÁÙ ¾Ë¾Ò´Âµ¥ źȯÀÌ ÇÑ°³¸¸ ȸ鿡 Ãâ·ÂµË´Ï´Ù.¾îµð°¡ ¹®Á¦ÀÎ °ÍÀÎÁö Àß ¸ð¸£°Ú½À´Ï´Ù.