[JavaScript] 纯文本查看 复制代码
function turn_card(序号,图片_1,X坐标,Y坐标,持续时间) {
$gameScreen.showPicture(序号,图片_1,1,X坐标,Y坐标,100,100,255,0);//显示图片1
$gameScreen.movePicture(序号,1,X坐标,Y坐标,0,100,255,0,持续时间);//移动图片1,向内压缩x
setTimeout(function(){
$gameScreen.showPicture(序号,"卡背",1,X坐标,Y坐标,0,100,0,0);//显示卡背图片
$gameScreen.movePicture(序号,1,X坐标,Y坐标,100,100,255,0,持续时间);//移动卡背,展开x
setTimeout(function(){
$gameScreen.movePicture(序号,1,X坐标,Y坐标,0,100,255,0,持续时间);//移动卡背,压缩x
setTimeout(function(){
$gameScreen.showPicture(序号,图片_1,1,X坐标,Y坐标,0,100,255,0);//显示图片1 此时x放大率为0
$gameScreen.movePicture(序号,1,X坐标,Y坐标,100,100,255,0,持续时间);//移动图片1,展开x
//图片显示("编号",文件名,原点,x,y,x放大率,y放大率,透明度,合成方式)
},持续时间/60*1000);
},持续时间/60*1000);
},持续时间/60*1000);
}