NXC之快打旋風




task main()

{

 int w = 15;

 RectOut(w,20,10,10);

 CircleOut(6,30,3);

 LineOut(6,27,6,20);

 LineOut(6,25,8,24);

 LineOut(6,25,4,24);

 LineOut(6,20,8,18);

 LineOut(6,20,4,18);

 RectOut(50,20,15,15);

 

 until(ButtonPressed(BTNCENTER,false));

 {

 while(true)

 {

 CircleOut(6,30,3);

 LineOut(6,27,6,20);

 LineOut(6,20,8,18);

 LineOut(6,20,4,18);

 LineOut(6,25,8,26);//右手

 LineOut(6,25,8,24);//左手

 w = w + 1;

 Wait(20);

 ClearScreen();

 RectOut(w,20,10,10);

 RectOut(50,20,15,15);

 if(w >= 50)

  {

   ClearScreen();

   CircleOut(6,30,3);

   LineOut(6,27,6,20);

   LineOut(6,25,8,26);

   LineOut(6,25,8,24);

   LineOut(6,20,8,18);

   LineOut(6,20,4,18);

   //身體

   LineOut(57,27,65,35);

   LineOut(57,27,65,27);

   LineOut(57,27,65,20);

   LineOut(57,27,50,35);

   LineOut(57,27,50,27);

   LineOut(57,27,50,20);

   LineOut(57,27,57,35);

   LineOut(57,27,57,20);

   Wait(500);

   ClearScreen();

   TextOut(40,23,"KO");

  }//if

}//while

  }//until

}//main

About CAVEDU 阿吉 - 雜工 (2520 Articles)
CAVEDU 教育團隊 打雜
Contact: Website

Leave a comment

Your email address will not be published.


*