东方弹幕风吧 关注:264贴子:935
  • 2回复贴,共1

关于弹幕风帮助文档的示例A3的中文说明

只看楼主收藏回复

#东方弾幕风
     #Title[SampleA03]
     #Text[SampleA03:一定时间で自机方向へ角度を変える弾]
     #Image[]
     #ScriptVersion[2]
    
     script_enemy_main
     {
         let count;
         let cx;
         @Initialize
         {
             count=0;//发射间隔设定的某物;
             cx=GetCenterX();//cx赋值为画面中部的x值;
             SetLife(1000);//设置敌人的生命为1000
             SetGraphicRect(64,1,127,64);//设定在图片中描画的区域为(64,1)-(127,64)
             LoadGraphic("script\img\ExRumia.jpg");//script\img\ExRumia.jpg载入这个图片
             SetMovePosition02(cx,120,60);//用1秒钟移动到(cx,120)
         }
            
         @MainLoop
         {
             if(count==180)
             {//当count为180度时发射    
                 let angle=0;
                 while(angle<360)
                 {//(angle:以每个15°为间隔从0-360度)
                     //过1秒钟后改为自机狙
                     let shot=0;
                     CreateShotA(shot,GetX(),GetY(),30);
                     SetShotDirectionType(ABSOLUTE);//把角度的基准改变为绝对的
                     SetShotDataA(shot,0,5,angle,0,-0.15,1,BLUE11);//一开始子弹的设定(0帧时)
                     SetShotDirectionType(PLAYER);//将角度的基准改变为相对于player的



IP属地:广东1楼2010-05-07 21:51回复
                         SetShotDataA(shot,60,3,0,0,0,3,BLUE11);//1秒后改变子弹的发射角度
                         FireShot(shot);//发射子弹
                         angle+=15;
                     }
                     count=0;//发射出来后重置count为0
                 }
                 SetCollisionA(GetX(),GetY(),32);//该单位的受击判定登录
                 SetCollisionB(GetX(),GetY(),24);//对玩家的miss判定登录
                 count++;//每帧count值加1
             }
            
             @DrawLoop
             {
                 SetTexture("script\img\ExRumia.jpg");//描画的是什么图片的设定
                 DrawGraphic(GetX(),GetY())//画出敌人的图案;
             }
            
             @Finalize
             {
                 DeleteGraphic("script\img\ExRumia.jpg");//关闭对该图片的读取
             }
         }
    


    IP属地:广东2楼2010-05-07 21:51
    回复
      需要借鉴


      3楼2012-09-11 18:00
      回复