810 lines
22 KiB
JavaScript
810 lines
22 KiB
JavaScript
(function (PIXI, lib) {
|
|
|
|
var MovieClip = PIXI.animate.MovieClip;
|
|
var Sprite = PIXI.Sprite;
|
|
var fromFrame = PIXI.Texture.fromFrame;
|
|
|
|
var Graphic1 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 26, loop: false });
|
|
var instance1 = new Sprite(fromFrame("toiletpaper-line1"))
|
|
.setTransform(-182.9, -1.75);
|
|
this.addTimedChild(instance1);
|
|
});
|
|
|
|
var Graphic2 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 30, loop: false });
|
|
var instance1 = new Sprite(fromFrame("toiletpaper-paper5"));
|
|
var instance2 = new Sprite(fromFrame("toiletpaper-paper6"));
|
|
var instance3 = new Sprite(fromFrame("toiletpaper-paper8"));
|
|
var instance4 = new Sprite(fromFrame("toiletpaper-paper1"));
|
|
var instance5 = new Sprite(fromFrame("toiletpaper-paper8"));
|
|
var instance6 = new Sprite(fromFrame("toiletpaper-paper6"))
|
|
.setTransform(-249.85, 130.75);
|
|
this.addTimedChild(instance1, 0, 1, {
|
|
"0": {
|
|
x: -226.55,
|
|
y: 204.85
|
|
}
|
|
})
|
|
.addTimedChild(instance2, 1, 1, {
|
|
"1": {
|
|
x: -249.85,
|
|
y: 130.75
|
|
}
|
|
})
|
|
.addTimedChild(instance3, 2, 2, {
|
|
"2": {
|
|
x: -231.5,
|
|
y: -236.75
|
|
}
|
|
})
|
|
.addTimedChild(instance4, 4, 24, {
|
|
"4": {
|
|
x: -231.5,
|
|
y: -236.75
|
|
}
|
|
})
|
|
.addTimedChild(instance5, 28, 1, {
|
|
"28": {
|
|
x: -231.5,
|
|
y: -236.75
|
|
}
|
|
})
|
|
.addTimedChild(instance6, 29, 1);
|
|
});
|
|
|
|
var Graphic3 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 47, loop: false });
|
|
var instance1 = new Sprite(fromFrame("toiletpaper-innards1"))
|
|
.setTransform(-18.75, -73.6);
|
|
this.addTimedChild(instance1);
|
|
});
|
|
|
|
var Graphic4 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 48, loop: false });
|
|
var instance1 = new Sprite(fromFrame("toiletpaper-rollend1"))
|
|
.setTransform(-64.95, -196.5);
|
|
this.addTimedChild(instance1);
|
|
});
|
|
|
|
var Graphic5 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 47, loop: false });
|
|
var instance1 = new Sprite(fromFrame("toiletpaper-roll1"))
|
|
.setTransform(-200.35, -297.8);
|
|
this.addTimedChild(instance1);
|
|
});
|
|
|
|
var Graphic6 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 8, loop: false });
|
|
var instance1 = new Sprite(fromFrame("toiletpaper-paper2"));
|
|
var instance2 = new Sprite(fromFrame("toiletpaper-paper3"));
|
|
var instance3 = new Sprite(fromFrame("toiletpaper-paper4"));
|
|
var instance4 = new Sprite(fromFrame("toiletpaper-paper7"))
|
|
.setTransform(-217.4, 96);
|
|
this.addTimedChild(instance1, 0, 5, {
|
|
"0": {
|
|
x: -164.85,
|
|
y: 54.95
|
|
}
|
|
})
|
|
.addTimedChild(instance2, 5, 1, {
|
|
"5": {
|
|
x: -178.25,
|
|
y: 42.95
|
|
}
|
|
})
|
|
.addTimedChild(instance3, 6, 1, {
|
|
"6": {
|
|
x: -205,
|
|
y: 96
|
|
}
|
|
})
|
|
.addTimedChild(instance4, 7, 1);
|
|
});
|
|
|
|
var Graphic7 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 5, loop: false });
|
|
var instance1 = new Sprite(fromFrame("toiletpaper-paper7"));
|
|
var instance2 = new Sprite(fromFrame("toiletpaper-paper2"))
|
|
.setTransform(-164.85, 54.95);
|
|
this.addTimedChild(instance1, 0, 1, {
|
|
"0": {
|
|
x: -217.4,
|
|
y: 96
|
|
}
|
|
})
|
|
.addTimedChild(instance2, 1, 4);
|
|
});
|
|
|
|
var Graphic8 = MovieClip.extend(function (mode) {
|
|
MovieClip.call(this, { mode: mode, duration: 48, loop: false });
|
|
var instance4 = new Graphic6(MovieClip.SYNCHED);
|
|
var instance7 = new Graphic7(MovieClip.SYNCHED);
|
|
var instance3 = new Graphic5(MovieClip.SYNCHED);
|
|
var instance1 = new Graphic4(MovieClip.SYNCHED);
|
|
var instance2 = new Graphic3(MovieClip.SYNCHED);
|
|
var instance5 = new Graphic2(MovieClip.SYNCHED);
|
|
var instance6 = new Graphic1(MovieClip.SYNCHED);
|
|
this.addTimedChild(instance4, 5, 8, {
|
|
"5": {
|
|
x: -6.15,
|
|
y: 77.05,
|
|
sx: 1.076,
|
|
sy: 1,
|
|
kx: 3.142,
|
|
ky: 3.142
|
|
},
|
|
"6": {
|
|
x: -7.075,
|
|
y: 38.781,
|
|
kx: 3.128
|
|
},
|
|
"7": {
|
|
x: -7.951,
|
|
y: 0.539,
|
|
sy: 1.001,
|
|
kx: 3.11
|
|
},
|
|
"8": {
|
|
x: -8.829,
|
|
y: -37.726,
|
|
kx: 3.093
|
|
},
|
|
"9": {
|
|
x: -9.75,
|
|
y: -75.95,
|
|
sy: 1.002,
|
|
kx: 3.076
|
|
},
|
|
"10": {
|
|
x: -13.3,
|
|
y: -86.95,
|
|
sy: 1.009,
|
|
kx: 3.012
|
|
},
|
|
"11": {
|
|
x: -5.75,
|
|
y: -64.95,
|
|
sy: 1.001,
|
|
kx: 3.089
|
|
}
|
|
})
|
|
.addTimedChild(instance7, 40, 5, {
|
|
"40": {
|
|
x: -5.75,
|
|
y: -64.95,
|
|
sx: 1.076,
|
|
sy: 1.001,
|
|
kx: 3.089,
|
|
ky: 3.142
|
|
},
|
|
"41": {
|
|
x: -9.75,
|
|
y: -75.95,
|
|
sy: 1.002,
|
|
kx: 3.076
|
|
},
|
|
"42": {
|
|
x: -6.535,
|
|
y: -24.977,
|
|
sy: 1.001,
|
|
kx: 3.098
|
|
},
|
|
"43": {
|
|
x: -3.347,
|
|
y: 26.069,
|
|
kx: 3.12
|
|
},
|
|
"44": {
|
|
x: -0.15,
|
|
y: 77.05,
|
|
sy: 1,
|
|
kx: 3.142
|
|
}
|
|
})
|
|
.addTimedChild(instance3, 1, 47, {
|
|
"1": {
|
|
x: -182.55,
|
|
y: 61.15,
|
|
sx: 0.085,
|
|
c: [
|
|
1,
|
|
0,
|
|
1,
|
|
0,
|
|
1,
|
|
0
|
|
]
|
|
},
|
|
"2": {
|
|
x: -170.929,
|
|
sx: 0.143
|
|
},
|
|
"3": {
|
|
x: -109.92,
|
|
sx: 0.447
|
|
},
|
|
"4": {
|
|
x: -9.466,
|
|
sx: 0.948
|
|
},
|
|
"5": {
|
|
x: 10.55,
|
|
sx: 1.05
|
|
},
|
|
"6": {
|
|
x: 10.288,
|
|
sx: 1.049
|
|
},
|
|
"7": {
|
|
x: 9.339,
|
|
sx: 1.044
|
|
},
|
|
"8": {
|
|
x: 6.812,
|
|
sx: 1.031
|
|
},
|
|
"9": {
|
|
x: 2.862,
|
|
sx: 1.011
|
|
},
|
|
"10": {
|
|
x: 1,
|
|
sx: 1.002
|
|
},
|
|
"11": {
|
|
x: 0.55,
|
|
sx: 1
|
|
},
|
|
"39": {
|
|
x: 1.202,
|
|
sx: 1.003
|
|
},
|
|
"40": {
|
|
x: 4.661,
|
|
sx: 1.021
|
|
},
|
|
"41": {
|
|
x: 9.174,
|
|
sx: 1.043
|
|
},
|
|
"42": {
|
|
x: 10.1,
|
|
sx: 1.048
|
|
},
|
|
"43": {
|
|
x: 5.005,
|
|
sx: 1.022,
|
|
c: [
|
|
0.97,
|
|
0,
|
|
0.97,
|
|
0,
|
|
0.97,
|
|
0
|
|
]
|
|
},
|
|
"44": {
|
|
x: -16.216,
|
|
sx: 0.916,
|
|
c: [
|
|
0.86,
|
|
0,
|
|
0.86,
|
|
0,
|
|
0.86,
|
|
0
|
|
]
|
|
},
|
|
"45": {
|
|
x: -70.896,
|
|
sx: 0.644,
|
|
c: [
|
|
0.57,
|
|
0,
|
|
0.57,
|
|
0,
|
|
0.57,
|
|
0
|
|
]
|
|
},
|
|
"46": {
|
|
x: -140.39,
|
|
sx: 0.297,
|
|
c: [
|
|
0.2,
|
|
0,
|
|
0.2,
|
|
0,
|
|
0.2,
|
|
0
|
|
]
|
|
},
|
|
"47": {
|
|
x: -170.016,
|
|
sx: 0.149,
|
|
c: [
|
|
0.04,
|
|
0,
|
|
0.04,
|
|
0,
|
|
0.04,
|
|
0
|
|
]
|
|
}
|
|
})
|
|
.addTimedChild(instance1, 0, 48, {
|
|
"0": {
|
|
x: -197.85,
|
|
y: -39.95,
|
|
c: [
|
|
0,
|
|
1,
|
|
0,
|
|
1,
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
"1": {
|
|
c: [
|
|
0.17,
|
|
0.83,
|
|
0.17,
|
|
0.83,
|
|
0.17,
|
|
0.83
|
|
]
|
|
},
|
|
"2": {
|
|
c: [
|
|
0.33,
|
|
0.67,
|
|
0.33,
|
|
0.67,
|
|
0.33,
|
|
0.67
|
|
]
|
|
},
|
|
"3": {
|
|
c: [
|
|
0.5,
|
|
0.5,
|
|
0.5,
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
]
|
|
},
|
|
"4": {
|
|
c: [
|
|
0.67,
|
|
0.33,
|
|
0.67,
|
|
0.33,
|
|
0.67,
|
|
0.33
|
|
]
|
|
},
|
|
"5": {
|
|
c: [
|
|
0.83,
|
|
0.17,
|
|
0.83,
|
|
0.17,
|
|
0.83,
|
|
0.17
|
|
]
|
|
},
|
|
"6": {
|
|
c: [
|
|
1,
|
|
0,
|
|
1,
|
|
0,
|
|
1,
|
|
0
|
|
]
|
|
},
|
|
"39": {
|
|
c: [
|
|
0.99,
|
|
0.01,
|
|
0.99,
|
|
0.01,
|
|
0.99,
|
|
0.01
|
|
]
|
|
},
|
|
"40": {
|
|
c: [
|
|
0.96,
|
|
0.04,
|
|
0.96,
|
|
0.04,
|
|
0.96,
|
|
0.04
|
|
]
|
|
},
|
|
"41": {
|
|
c: [
|
|
0.89,
|
|
0.11,
|
|
0.89,
|
|
0.11,
|
|
0.89,
|
|
0.11
|
|
]
|
|
},
|
|
"42": {
|
|
c: [
|
|
0.77,
|
|
0.23,
|
|
0.77,
|
|
0.23,
|
|
0.77,
|
|
0.23
|
|
]
|
|
},
|
|
"43": {
|
|
c: [
|
|
0.57,
|
|
0.44,
|
|
0.57,
|
|
0.44,
|
|
0.57,
|
|
0.44
|
|
]
|
|
},
|
|
"44": {
|
|
c: [
|
|
0.32,
|
|
0.68,
|
|
0.32,
|
|
0.68,
|
|
0.32,
|
|
0.68
|
|
]
|
|
},
|
|
"45": {
|
|
c: [
|
|
0.15,
|
|
0.85,
|
|
0.15,
|
|
0.85,
|
|
0.15,
|
|
0.85
|
|
]
|
|
},
|
|
"46": {
|
|
c: [
|
|
0.05,
|
|
0.95,
|
|
0.05,
|
|
0.95,
|
|
0.05,
|
|
0.95
|
|
]
|
|
},
|
|
"47": {
|
|
c: [
|
|
0.01,
|
|
0.99,
|
|
0.01,
|
|
0.99,
|
|
0.01,
|
|
0.99
|
|
]
|
|
}
|
|
})
|
|
.addTimedChild(instance2, 1, 47, {
|
|
"1": {
|
|
x: -201.55,
|
|
y: -45.1,
|
|
a: 0
|
|
},
|
|
"2": {
|
|
a: 0.02
|
|
},
|
|
"3": {
|
|
a: 0.08
|
|
},
|
|
"4": {
|
|
a: 0.24
|
|
},
|
|
"5": {
|
|
a: 0.55
|
|
},
|
|
"6": {
|
|
a: 0.85
|
|
},
|
|
"7": {
|
|
a: 0.97
|
|
},
|
|
"8": {
|
|
a: 1
|
|
},
|
|
"36": {
|
|
a: 0.97
|
|
},
|
|
"37": {
|
|
a: 0.86
|
|
},
|
|
"38": {
|
|
a: 0.57
|
|
},
|
|
"39": {
|
|
a: 0.2
|
|
},
|
|
"40": {
|
|
a: 0.04
|
|
},
|
|
"41": {
|
|
a: 0
|
|
}
|
|
})
|
|
.addTimedChild(instance5, 11, 30, {
|
|
"11": {
|
|
x: -5.75,
|
|
y: -64.95,
|
|
sx: 1.076,
|
|
sy: 1.001,
|
|
kx: 3.089,
|
|
ky: 3.142
|
|
},
|
|
"13": {
|
|
x: 31.3,
|
|
y: 0,
|
|
sx: 1,
|
|
sy: 1,
|
|
kx: 0,
|
|
ky: 0
|
|
},
|
|
"15": {
|
|
x: 29.75,
|
|
y: -41.1,
|
|
sx: 1.007,
|
|
sy: 0.829
|
|
},
|
|
"16": {
|
|
x: 29.354,
|
|
y: -34.589,
|
|
sx: 1.003,
|
|
sy: 0.857
|
|
},
|
|
"17": {
|
|
x: 27.343,
|
|
y: 0.222,
|
|
sx: 0.986,
|
|
sy: 1.002
|
|
},
|
|
"18": {
|
|
x: 26.65,
|
|
y: 12.3,
|
|
sx: 0.98,
|
|
sy: 1.052
|
|
},
|
|
"19": {
|
|
x: 26.77,
|
|
y: 11.569,
|
|
sx: 0.981,
|
|
sy: 1.049
|
|
},
|
|
"20": {
|
|
x: 27.556,
|
|
y: 8.478,
|
|
sx: 0.984,
|
|
sy: 1.037
|
|
},
|
|
"21": {
|
|
x: 29.538,
|
|
y: 0.253,
|
|
sx: 0.993,
|
|
sy: 1.005
|
|
},
|
|
"22": {
|
|
x: 31.007,
|
|
y: -5.769,
|
|
sx: 0.999,
|
|
sy: 0.982
|
|
},
|
|
"23": {
|
|
x: 31.3,
|
|
y: -6.95,
|
|
sx: 1,
|
|
sy: 0.977
|
|
},
|
|
"24": {
|
|
y: -6.706,
|
|
sy: 0.978
|
|
},
|
|
"25": {
|
|
y: -5.632,
|
|
sy: 0.982
|
|
},
|
|
"26": {
|
|
y: -2.601,
|
|
sy: 0.992
|
|
},
|
|
"27": {
|
|
y: -0.452,
|
|
sy: 0.999
|
|
},
|
|
"28": {
|
|
y: 0,
|
|
sy: 1
|
|
},
|
|
"33": {
|
|
x: 31.304,
|
|
y: 0.85,
|
|
sy: 1.004
|
|
},
|
|
"34": {
|
|
x: 31.473,
|
|
y: 5.35,
|
|
sx: 1.001,
|
|
sy: 1.023
|
|
},
|
|
"35": {
|
|
x: 31.598,
|
|
y: 11.15,
|
|
sx: 1.002,
|
|
sy: 1.047
|
|
},
|
|
"36": {
|
|
x: 31.65,
|
|
y: 12.3,
|
|
sy: 1.052
|
|
},
|
|
"37": {
|
|
x: 29.679,
|
|
y: -13.35,
|
|
sx: 1.004,
|
|
sy: 0.941
|
|
},
|
|
"38": {
|
|
x: 27.75,
|
|
y: -39.1,
|
|
sx: 1.007,
|
|
sy: 0.829
|
|
},
|
|
"39": {
|
|
x: 31.3,
|
|
y: 0,
|
|
sx: 1,
|
|
sy: 1
|
|
},
|
|
"40": {
|
|
x: -5.75,
|
|
y: -64.95,
|
|
sx: 1.076,
|
|
sy: 1.001,
|
|
kx: 3.089,
|
|
ky: 3.142
|
|
}
|
|
})
|
|
.addTimedChild(instance6, 14, 26, {
|
|
"14": {
|
|
x: 28.4,
|
|
y: -225.1,
|
|
sx: 1
|
|
},
|
|
"15": {
|
|
x: 50.95,
|
|
y: -189.7
|
|
},
|
|
"16": {
|
|
x: 52.7,
|
|
y: -170.25
|
|
},
|
|
"17": {
|
|
x: 62.05,
|
|
y: -65.95
|
|
},
|
|
"18": {
|
|
x: 65.3,
|
|
y: -29.75
|
|
},
|
|
"19": {
|
|
x: 65.45,
|
|
y: -31.4
|
|
},
|
|
"20": {
|
|
x: 66.2,
|
|
y: -38.85
|
|
},
|
|
"21": {
|
|
x: 68.2,
|
|
y: -58.65
|
|
},
|
|
"22": {
|
|
x: 69.65,
|
|
y: -73.05
|
|
},
|
|
"23": {
|
|
x: 69.95,
|
|
y: -75.9
|
|
},
|
|
"24": {
|
|
y: -75.35
|
|
},
|
|
"25": {
|
|
y: -72.85
|
|
},
|
|
"26": {
|
|
y: -66.25
|
|
},
|
|
"27": {
|
|
y: -61.45
|
|
},
|
|
"28": {
|
|
y: -60.5
|
|
},
|
|
"33": {
|
|
x: 70.234,
|
|
y: -52.8,
|
|
sx: 1.005
|
|
},
|
|
"34": {
|
|
x: 70.57,
|
|
y: -45.1,
|
|
sx: 1.011
|
|
},
|
|
"35": {
|
|
x: 70.854,
|
|
y: -37.45,
|
|
sx: 1.016
|
|
},
|
|
"36": {
|
|
x: 71.15,
|
|
y: -29.75,
|
|
sx: 1.022
|
|
},
|
|
"37": {
|
|
x: 60.085,
|
|
y: -108.7,
|
|
sx: 1.011
|
|
},
|
|
"38": {
|
|
x: 48.95,
|
|
y: -187.7,
|
|
sx: 1
|
|
},
|
|
"39": {
|
|
x: 28.4,
|
|
y: -225.1
|
|
}
|
|
});
|
|
});
|
|
|
|
lib.emoji_toiletPaper = MovieClip.extend(function () {
|
|
MovieClip.call(this, {
|
|
duration: 49,
|
|
framerate: 30,
|
|
loop: false
|
|
});
|
|
var instance1 = new Graphic8(MovieClip.SYNCHED);
|
|
this.addTimedChild(instance1, 0, 48, {
|
|
"0": {
|
|
x: 640,
|
|
y: 360
|
|
}
|
|
});
|
|
});
|
|
|
|
lib.emoji_toiletPaper.assets = {
|
|
"emoji_toiletPaper_atlas_1": "images/emoji_toiletPaper_atlas_1.json"
|
|
};
|
|
})(PIXI, lib = lib || {});
|
|
var lib;
|
|
if (typeof module !== 'undefined' && module.exports) {
|
|
module.exports = {
|
|
stage: lib.emoji_toiletPaper,
|
|
background: 0x0,
|
|
width: 1280,
|
|
height: 720,
|
|
framerate: 30,
|
|
totalFrames: 49,
|
|
library: lib
|
|
};
|
|
} |