Sep 13

【在線彈幕測試框架】

Lrdcq , 2014/09/13 14:48 , 程序 , 閱讀(1001) , Via 本站原創
可以填寫入彈幕數據然後及時呈現的框架哦~~grin應該是順帶製作的產物吧,同時保證了核心代碼的更新與備份
其實這並不方便我調試代碼(畢竟沒有代碼高亮),而是爲了臨時呈現腳本展示啊之類的~pig
PS.(誤)地址是【这里
下面展开是我积累的一些符卡设计

·「鬼缚精兵阵」:

N|「鬼缚精兵阵」#1|[
{target:vec2(20000,1000),speed:[1.6],lifetime:100,bulletevents:[['t',0,['bb',[1,0],0]]],period:600},
{mesh:WEHOUGAME.getBullet(1),position:vec2(0,0),positionrandom:vec2(480,0),period:5,speed:[3],acceleration:[-0.1],lifetime:160,target:vec2(20000,-1000),bulletevents:[['t',30,['a',0,0,'v',0.01,0,'bb',[2,0],0]],['t',31,['bb',[3,0],0]]],rotating:0},
{mesh:WEHOUGAME.getBullet(WEHOUGAME.addBullet(WEHOUGAME.getBulletImg(0),18,800,3,'laser',1,[6/16,7/16,29/32,28/32])),type:'laser',speed:[800],period:10000,appearline:60,lifetime:120,target:vec2(20000,-1000),bulletevents:[['t',1,['v',0.1,0]]]},
{mesh:WEHOUGAME.getBullet(WEHOUGAME.addBullet(WEHOUGAME.getBulletImg(3),20,20,6,'ball',1,[6/16,7/16,28/32,27/32])),number:6,angle:[0,0,180,0,0],target:vec2(20000,-1000),speed:[15,9,3,3,9,15],bulletevents:[['t',2,['v',20,0,'t',vec2(20000,-1000),0]],['t',3,['v',0.001,0]],['t',120,['v',1,0]]],period:10000,lifetime:640,outfield:true},
{target:vec2(20000,1000),speed:[1.6],lifetime:100,bulletevents:[['t',0,['bb',[5,0],0]]],period:600,timeoffset:300},
{mesh:WEHOUGAME.getBullet(2),position:vec2(0,0),positionrandom:vec2(480,0),period:5,speed:[3],acceleration:[-0.1],lifetime:160,bulletevents:[['t',30,['a',0,0,'v',0.01,0,'bb',[6,0],0]],['t',31,['bb',[7,0],0]]],rotating:0},
{mesh:WEHOUGAME.getBullet(WEHOUGAME.addBullet(WEHOUGAME.getBulletImg(0),18,800,3,'laser',1,[2/16,3/16,29/32,28/32])),type:'laser',speed:[800],period:10000,appearline:60,lifetime:120,bulletevents:[['t',1,['v',0.1,0]]]},
{mesh:WEHOUGAME.getBullet(WEHOUGAME.addBullet(WEHOUGAME.getBulletImg(3),20,20,6,'ball',1,[2/16,3/16,28/32,27/32])),number:6,angle:[0,0,180,0,0],target:vec2(20000,-1000),speed:[15,9,3,3,9,15],bulletevents:[['t',2,['v',20,0,'t',vec2(29999,29999),0]],['t',3,['v',0.001,0]],['t',120,['v',1.2,0]]],period:10000,lifetime:640,outfield:true}
]#3|[[0,4]]

·「滚筒洗衣机」(這個倒是非常的精簡啦...

N|「滚筒洗衣机」#1|
[{vert:[vec3(250,285-125,0)],motion:'mesh',meshrotate:vec3(0,Math.PI/180,0),meshmove:vec3(0,-1.8,0),setrotaterandom:vec3(0,Math.PI*2,0),mesh:WEHOUGAME.getBullet(B.B_FIRE_BLUE),period:5,lifetime:500,protect:true,locked:true,goback:[-150,-250]},{vert:[vec3(250,285-125,0)],motion:'mesh',meshrotate:vec3(0,Math.PI/180,0),meshmove:vec3(0,-1.2,0),setrotaterandom:vec3(0,Math.PI*2,0),mesh:WEHOUGAME.getBullet(B.B_FIRE_BLUE),period:3,lifetime:500,protect:true,locked:true,goback:[-150,-250]}]
#3|[[0,1]]
發表評論
暱稱   密碼   訪客無需密碼
網址   電郵