Commit 4a13b22c authored by wildfirecode's avatar wildfirecode

1

parent e30a0296
...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip"; ...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDie0Ani = (x,y,p) => { export const createCandyDie0Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydie0_json'); const spritesheet = RES.getRes('candydie0_json');
if(!spritesheet)return;
const list = getEffectFramesStr('破碎兔_000', 0, 12); const list = getEffectFramesStr('破碎兔_000', 0, 12);
const movieclip = new MovieClip({ const movieclip = new MovieClip({
......
...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip"; ...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDie1Ani = (x,y,p) => { export const createCandyDie1Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydie1_json'); const spritesheet = RES.getRes('candydie1_json');
if(!spritesheet)return;
const list = getEffectFramesStr('破碎鸟_000', 0, 12); const list = getEffectFramesStr('破碎鸟_000', 0, 12);
const movieclip = new MovieClip({ const movieclip = new MovieClip({
......
...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip"; ...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDie2Ani = (x,y,p) => { export const createCandyDie2Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydie2_json'); const spritesheet = RES.getRes('candydie2_json');
if(!spritesheet)return;
const list = getEffectFramesStr('破碎牛_000', 0, 12); const list = getEffectFramesStr('破碎牛_000', 0, 12);
const movieclip = new MovieClip({ const movieclip = new MovieClip({
......
...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip"; ...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDie3Ani = (x,y,p) => { export const createCandyDie3Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydie3_json'); const spritesheet = RES.getRes('candydie3_json');
if(!spritesheet)return;
const list = getEffectFramesStr('破碎狮子_000', 0, 12); const list = getEffectFramesStr('破碎狮子_000', 0, 12);
const movieclip = new MovieClip({ const movieclip = new MovieClip({
......
...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip"; ...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDie4Ani = (x,y,p) => { export const createCandyDie4Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydie4_json'); const spritesheet = RES.getRes('candydie4_json');
if(!spritesheet)return;
const list = getEffectFramesStr('破碎猪_000', 0, 12); const list = getEffectFramesStr('破碎猪_000', 0, 12);
const movieclip = new MovieClip({ const movieclip = new MovieClip({
......
...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip"; ...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDieBgAni = (x,y,p) => { export const createCandyDieBgAni = (x,y,p) => {
const spritesheet = RES.getRes('candydiebg_json'); const spritesheet = RES.getRes('candydiebg_json');
if(!spritesheet)return;
const list = getEffectFramesStr('糖果消失光_000', 0, 13); const list = getEffectFramesStr('糖果消失光_000', 0, 13);
const movieclip = new MovieClip({ const movieclip = new MovieClip({
......
import { getEffectFramesStr } from "../../../effect/createEffect1";
import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDis0Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydis0_json');
if(!spritesheet)return;
const list = getEffectFramesStr('兔子糖果_000', 0, 12);
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 2,
frames: list,
position: [x, y],
scale:0.4,
anchor: [.5, 0.25],
loop: false
});
p.addChild(movieclip);
movieclip.once(egret.Event.COMPLETE,()=>{
p.removeChild(movieclip);
},this);
}
\ No newline at end of file
import { getEffectFramesStr } from "../../../effect/createEffect1";
import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDis1Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydis1_json');
if(!spritesheet)return;
const list = getEffectFramesStr('兔子糖果_000', 0, 12);
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 2,
frames: list,
position: [x, y],
scale:0.4,
anchor: [.5, 0.25],
loop: false
});
p.addChild(movieclip);
movieclip.once(egret.Event.COMPLETE,()=>{
p.removeChild(movieclip);
},this);
}
\ No newline at end of file
import { getEffectFramesStr } from "../../../effect/createEffect1";
import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDis2Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydis2_json');
if(!spritesheet)return;
const list = getEffectFramesStr('兔子糖果_000', 0, 12);
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 2,
frames: list,
position: [x, y],
scale:0.4,
anchor: [.5, 0.25],
loop: false
});
p.addChild(movieclip);
movieclip.once(egret.Event.COMPLETE,()=>{
p.removeChild(movieclip);
},this);
}
\ No newline at end of file
import { getEffectFramesStr } from "../../../effect/createEffect1";
import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDis3Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydis3_json');
if(!spritesheet)return;
const list = getEffectFramesStr('兔子糖果_000', 0, 12);
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 2,
frames: list,
position: [x, y],
scale:0.4,
anchor: [.5, 0.25],
loop: false
});
p.addChild(movieclip);
movieclip.once(egret.Event.COMPLETE,()=>{
p.removeChild(movieclip);
},this);
}
\ No newline at end of file
import { getEffectFramesStr } from "../../../effect/createEffect1";
import MovieClip from "../../../movieclip/MovieClip";
export const createCandyDis4Ani = (x,y,p) => {
const spritesheet = RES.getRes('candydis4_json');
if(!spritesheet)return;
const list = getEffectFramesStr('兔子糖果_000', 0, 11);
const movieclip = new MovieClip({
spritesheet: spritesheet,
frameInterval: 2,
frames: list,
position: [x, y],
scale:0.4,
anchor: [.5, 0.25],
loop: false
});
p.addChild(movieclip);
movieclip.once(egret.Event.COMPLETE,()=>{
p.removeChild(movieclip);
},this);
}
\ No newline at end of file
...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip"; ...@@ -3,6 +3,7 @@ import MovieClip from "../../../movieclip/MovieClip";
export const createCandySubAni = (x,y,p) => { export const createCandySubAni = (x,y,p) => {
const spritesheet = RES.getRes('candysub_json'); const spritesheet = RES.getRes('candysub_json');
if(!spritesheet)return;
const list = getEffectFramesStr('数字减少星星_000', 0, 15); const list = getEffectFramesStr('数字减少星星_000', 0, 15);
const movieclip = new MovieClip({ const movieclip = new MovieClip({
......
...@@ -117,6 +117,8 @@ export const createData = () => { ...@@ -117,6 +117,8 @@ export const createData = () => {
if (_startSceneData) return _startSceneData; if (_startSceneData) return _startSceneData;
const startSceneData: any = {}; const startSceneData: any = {};
_startSceneData = startSceneData; _startSceneData = startSceneData;
if(_startSceneData.level === null || _startSceneData.level === undefined)
delete _startSceneData.level
const repeatCount = getRepeatCount(); const repeatCount = getRepeatCount();
const list = []; const list = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment