0.3.1 • Published 3 years ago
gm-game-paopaolong v0.3.1
gm-game-paopaolong
泡泡龙小游戏
安装
npm install gm-game-paopaolong
使用
- app.json
必须开启 "enableSkia": "true"
如果项目需要使用插件,在window下加上 disablePluginSandBox:“true”
- json
{
"usingComponents": {
"gm-game-paopaolong": "gm-game-paopaolong/paopaolong"
}
}
- js
Page({
data: {
dis: true,
gameSource: {
// 游戏元素
items: [
{
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01V7vNtQ1FJvaSZV62t_!!1080040467.png",
val: 10,
width: 1280,
height: 1280,
probability: 1,//出现概率
nextImg: {
src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01jHLDBl1FJvaJ4CMJ4_!!1080040467.png",
width: 1280,
height: 1280,
},
// 爆炸动画序列帧
boomArr: [
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN013u9tog1FJvaNCmkND_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01g7ymYO1FJvaEvm0EK_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01WuUkd61FJvaKfMKY2_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN010Gl3eJ1FJvaSEuOgM_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01tug2m41FJvaN90RCA_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01AmNUJW1FJvaPcWRQi_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01nP97Ns1FJvaQm5lMf_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01YcAQOW1FJvaEvn0cz_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01yW3V4u1FJvaL8NfhI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01ZMJGZb1FJvaRPRlW4_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01EhB50E1FJvaPcXuug_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01eU0GOk1FJvaNj7JaF_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01PtxOIg1FJvaSZIsNm_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01IIFVsi1FJvaPcWdtg_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01wFTToV1FJvaEvoU7Z_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01BbKuTg1FJvaOx89gk_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01ghXrvo1FJvaOx5sOZ_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01SuOdDM1FJvaEvot5C_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01UdQqmc1FJvaKfKaVP_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01Yso3wb1FJvaEvo5BI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01I5niYg1FJvaSEwCwf_!!1080040467.png", width: 1280, height: 1280 },
],
boomSpeed: 0.1,// 爆炸动画速度 值越大,速度越快
},
{
src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01CyLS241FJvaQmLffl_!!1080040467.png",
val: 10,
width: 1280,
height: 1280,
probability: 1,//出现概率
nextImg: {
src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01tAEiot1FJvaT6xems_!!1080040467.png",
width: 1280,
height: 1280,
},
// 爆炸动画序列帧
boomArr: [
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN013u9tog1FJvaNCmkND_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01g7ymYO1FJvaEvm0EK_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01WuUkd61FJvaKfMKY2_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN010Gl3eJ1FJvaSEuOgM_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01tug2m41FJvaN90RCA_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01AmNUJW1FJvaPcWRQi_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01nP97Ns1FJvaQm5lMf_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01YcAQOW1FJvaEvn0cz_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01yW3V4u1FJvaL8NfhI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01ZMJGZb1FJvaRPRlW4_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01EhB50E1FJvaPcXuug_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01eU0GOk1FJvaNj7JaF_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01PtxOIg1FJvaSZIsNm_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01IIFVsi1FJvaPcWdtg_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01wFTToV1FJvaEvoU7Z_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01BbKuTg1FJvaOx89gk_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01ghXrvo1FJvaOx5sOZ_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01SuOdDM1FJvaEvot5C_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01UdQqmc1FJvaKfKaVP_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01Yso3wb1FJvaEvo5BI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01I5niYg1FJvaSEwCwf_!!1080040467.png", width: 1280, height: 1280 },
],
boomSpeed: 0.1,// 爆炸动画速度 值越大,速度越快
},
{
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN018LDCfC1FJvaN9ETCd_!!1080040467.png",
val: 10,
width: 1280,
height: 1280,
probability: 1,//出现概率
nextImg: {
src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01oQ8f3a1FJvaRLeUjq_!!1080040467.png",
width: 1280,
height: 1280,
},
// 爆炸动画序列帧
boomArr: [
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN013u9tog1FJvaNCmkND_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01g7ymYO1FJvaEvm0EK_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01WuUkd61FJvaKfMKY2_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN010Gl3eJ1FJvaSEuOgM_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01tug2m41FJvaN90RCA_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01AmNUJW1FJvaPcWRQi_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01nP97Ns1FJvaQm5lMf_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01YcAQOW1FJvaEvn0cz_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01yW3V4u1FJvaL8NfhI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01ZMJGZb1FJvaRPRlW4_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01EhB50E1FJvaPcXuug_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01eU0GOk1FJvaNj7JaF_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01PtxOIg1FJvaSZIsNm_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01IIFVsi1FJvaPcWdtg_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01wFTToV1FJvaEvoU7Z_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01BbKuTg1FJvaOx89gk_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01ghXrvo1FJvaOx5sOZ_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01SuOdDM1FJvaEvot5C_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01UdQqmc1FJvaKfKaVP_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01Yso3wb1FJvaEvo5BI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01I5niYg1FJvaSEwCwf_!!1080040467.png", width: 1280, height: 1280 },
],
boomSpeed: 0.1,// 爆炸动画速度 值越大,速度越快
},
{
src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01ZFY4AU1FJvaND0Avq_!!1080040467.png",
val: 10,
width: 1280,
height: 1280,
probability: 1,//出现概率
nextImg: {
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01vO9Hs51FJvaS2IBmR_!!1080040467.png",
width: 1280,
height: 1280,
},
// 爆炸动画序列帧
boomArr: [
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN013u9tog1FJvaNCmkND_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01g7ymYO1FJvaEvm0EK_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01WuUkd61FJvaKfMKY2_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN010Gl3eJ1FJvaSEuOgM_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01tug2m41FJvaN90RCA_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01AmNUJW1FJvaPcWRQi_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01nP97Ns1FJvaQm5lMf_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01YcAQOW1FJvaEvn0cz_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01yW3V4u1FJvaL8NfhI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01ZMJGZb1FJvaRPRlW4_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01EhB50E1FJvaPcXuug_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01eU0GOk1FJvaNj7JaF_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01PtxOIg1FJvaSZIsNm_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01IIFVsi1FJvaPcWdtg_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01wFTToV1FJvaEvoU7Z_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01BbKuTg1FJvaOx89gk_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01ghXrvo1FJvaOx5sOZ_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01SuOdDM1FJvaEvot5C_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01UdQqmc1FJvaKfKaVP_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01Yso3wb1FJvaEvo5BI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01I5niYg1FJvaSEwCwf_!!1080040467.png", width: 1280, height: 1280 },
],
boomSpeed: 0.1,// 爆炸动画速度 值越大,速度越快
},
],
// 特殊元素
special: [
{
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01JSRJFY1FJvaPHgcUm_!!1080040467.png",
val: 10,
width: 1280,
height: 1280,
ftype: "special",
probability: 1,//出现概率
nextImg: {
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01JSRJFY1FJvaPHgcUm_!!1080040467.png",
width: 1280,
height: 1280,
},
// 爆炸动画序列帧
boomArr: [
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN013u9tog1FJvaNCmkND_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01g7ymYO1FJvaEvm0EK_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01WuUkd61FJvaKfMKY2_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN010Gl3eJ1FJvaSEuOgM_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01tug2m41FJvaN90RCA_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01AmNUJW1FJvaPcWRQi_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01nP97Ns1FJvaQm5lMf_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01YcAQOW1FJvaEvn0cz_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01yW3V4u1FJvaL8NfhI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01ZMJGZb1FJvaRPRlW4_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01EhB50E1FJvaPcXuug_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01eU0GOk1FJvaNj7JaF_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01PtxOIg1FJvaSZIsNm_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01IIFVsi1FJvaPcWdtg_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01wFTToV1FJvaEvoU7Z_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01BbKuTg1FJvaOx89gk_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01ghXrvo1FJvaOx5sOZ_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i1/1080040467/O1CN01SuOdDM1FJvaEvot5C_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01UdQqmc1FJvaKfKaVP_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i4/1080040467/O1CN01Yso3wb1FJvaEvo5BI_!!1080040467.png", width: 1280, height: 1280 },
{ src: "https://img.alicdn.com/imgextra/i2/1080040467/O1CN01I5niYg1FJvaSEwCwf_!!1080040467.png", width: 1280, height: 1280 },
],
boomSpeed: 0.1,// 爆炸动画速度 值越大,速度越快
},
],
pao: {
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN017KCwuZ1FJvaNtqHL4_!!1080040467.png",
width: 77,
height: 268,
},
nextBallBg: {
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01sKmSxb1FJvaQJ5QNt_!!1080040467.png",
width: 160,
height: 107,
padding: 10,
nextBallPos: {
width: 87,
height: 87,
left: 0,//left距离相对于元素中心(width/2) 0:元素中心处于居中位置
bottom: 10
}
},
line: {
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN01kh0zEE1FJvaPHp8wX_!!1080040467.png",
width: 661,
height: 22,
bottom: 400,
showAllWidth: true
},
helpLine: {
src: "https://img.alicdn.com/imgextra/i3/1080040467/O1CN011HA8pZ1FJvaRCmCEG_!!1080040467.png",
width: 44,
height: 249,
}
},
curBallNum: 10,
},
onLoad() { },
onRef(game) {
this.popGameComponent = game;
},
overFun() {
this.popGameComponent.stop();
},
beginFun() {
my.alert({
content: "游戏开始"
})
this.popGameComponent.start();
},
resetFun() {
this.popGameComponent.reset();
},
addLineFun() {
// 添加一行
this.popGameComponent.addLine();
},
renderNextFun() {
// 生成下一个
this.popGameComponent.renderNext();
},
addBubbleFun() {
// 加一个泡泡
this.popGameComponent.addBubble();
},
onFinish() {
my.alert({
content: "游戏结束"
})
},
onProgress(progress) {
// 资源读取进度回调
},
onError(e) {
// 资源读取报错回调
},
onAddBallCallBack(ops) {
// 添加泡泡回调ops:{cur:0,total:0} cur:当次加到泡泡数 total:总泡泡数
my.alert({
content: "添加成功"
})
this.setData({
curBallNum: ops.total
})
},
onInitDone() {
/* my.alert({
content: "游戏初始化完成"
}) */
},
onUpdate(item) {
// special:true代表有特殊泡泡,false没有特殊泡泡
// spriteArr:打中消除的元素 noHangs:没有悬挂点的元素
// {curScore,totalScore}
this.setData({
totalScore: item.totalScore,
curScore: item.curScore,
curBallNum: item.curBallNum,
special: item.special
})
// my.alert({
// content: "游戏消除了"
// })
},
changeFun() {
this.setData({
dis: !this.data.dis
})
}
});
- xaml
<!--
rowMaxNum:游戏一行最多泡泡个数,挨着行就少一个
playBallNum:游戏可发射的球个数
baseScore:游戏进入时的基础分
firstBottomLineType: "max",//第一次初始化,最后一排的球个数 max:球个数为playBallNum min:球个数为playBallNum-1
firstShowLine: 5,//初始化行数
nextRenderLine: 3,//每次生成行数
paddingLeft:左内边距
paddingRight:右内边距
totalBall:总共可发射的球个数
onAddBallCallBack:添加泡泡回调
onInitDone:游戏渲染完回调
onUpdate:游戏消除回调
onFinish:游戏结束回调
-->
<paopaolong
gameSource="{{gameSource}}"
rowMaxNum="{{7}}"
playBallNum="{{10}}"
baseScore="{{100}}"
firstBottomLineType="max"
firstShowLine="{{5}}"
nextRenderLine="{{3}}"
paddingLeft="{{10}}"
paddingRight="{{10}}"
totalBall="{{curBallNum}}"
onRef="onRef"
onProgress="onProgress"
onError="onError"
onAddBallCallBack="onAddBallCallBack"
onInitDone="onInitDone"
onUpdate="onUpdate"
onFinish="onFinish"
/>
0.3.1
3 years ago
0.3.0
3 years ago
0.2.7
3 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.3
4 years ago
0.2.4
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.3
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago