康复游戏启动页
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

376 lines
10 KiB

(function (cjs, an) {
var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
{name:"start_page_atlas_1", frames: [[0,0,1280,720],[1856,1000,147,167],[1803,856,215,142],[1803,241,219,196],[1368,0,433,503],[1368,505,433,503],[1282,1010,285,292],[0,1444,1366,332],[1856,637,171,217],[1803,0,215,239],[0,722,1280,720],[1803,439,219,196],[1856,1169,121,92],[1282,1304,202,104],[1569,1010,285,292]]}
];
(lib.AnMovieClip = function(){
this.actionFrames = [];
this.ignorePause = false;
this.gotoAndPlay = function(positionOrLabel){
cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
}
this.play = function(){
cjs.MovieClip.prototype.play.call(this);
}
this.gotoAndStop = function(positionOrLabel){
cjs.MovieClip.prototype.gotoAndStop.call(this,positionOrLabel);
}
this.stop = function(){
cjs.MovieClip.prototype.stop.call(this);
}
}).prototype = p = new cjs.MovieClip();
// symbols:
(lib.未一体化标题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();
(lib.未标形象得到题1png复制 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();
(lib.未标形象题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();
(lib.未标形形色色题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();
(lib.未标cc题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();
(lib.未标得到的题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();
(lib.未标题次挖出1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();
(lib.未标题草1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(7);
}).prototype = p = new cjs.Sprite();
(lib.未标题事实上1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(8);
}).prototype = p = new cjs.Sprite();
(lib.未cc标题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(9);
}).prototype = p = new cjs.Sprite();
(lib.未长长的标题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(10);
}).prototype = p = new cjs.Sprite();
(lib.未相信我题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(11);
}).prototype = p = new cjs.Sprite();
(lib.未组织标题1 = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(12);
}).prototype = p = new cjs.Sprite();
(lib.logo = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(13);
}).prototype = p = new cjs.Sprite();
(lib. = function() {
this.initialize(ss["start_page_atlas_1"]);
this.gotoAndStop(14);
}).prototype = p = new cjs.Sprite();
(lib.补间2 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// 图层_1
this.instance = new lib.未标形象得到题1png复制();
this.instance.setTransform(703.75,12.8,0.9999,0.9999,0,21.2986,-158.7014);
this.instance_1 = new lib.未cc标题1();
this.instance_1.setTransform(865.3,26.25,1,1,0,27.7401,-152.2599);
this.instance_2 = new lib.未标形形色色题1();
this.instance_2.setTransform(269.2,-103.4,1,1,0.9819);
this.instance_3 = new lib.未标形象得到题1png复制();
this.instance_3.setTransform(-865.25,219.9,0.9999,0.9999,-36.2977);
this.instance_4 = new lib.未相信我题1();
this.instance_4.setTransform(-480.8,16.15,1,1,-22.7743);
this.instance_5 = new lib.未cc标题1();
this.instance_5.setTransform(-768.65,72.15,1,1,-27.7401);
this.instance_6 = new lib.未标形象题1();
this.instance_6.setTransform(36.8,-73.35,1,1,-1.448);
this.instance_7 = new lib.未标题事实上1();
this.instance_7.setTransform(-85.35,-124.6,1,1,-7.7966);
this.instance_8 = new lib.未标得到的题1();
this.instance_8.setTransform(-432,-259,1,1,-12.7414);
this.instance_9 = new lib.未标cc题1();
this.instance_9.setTransform(-653.3,-254.05,1,1,-12.7414);
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_9},{t:this.instance_8},{t:this.instance_7},{t:this.instance_6},{t:this.instance_5},{t:this.instance_4},{t:this.instance_3},{t:this.instance_2},{t:this.instance_1},{t:this.instance}]}).wait(1));
this._renderFirstFrame();
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-865.2,-354.5,1730.5,709);
// stage content:
(lib.startpage = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
var props = new Object();
props.mode = mode;
props.startPosition = startPosition;
props.labels = {};
props.loop = loop;
props.reversed = reversed;
cjs.MovieClip.apply(this,[props]);
// logo
this.instance = new lib.logo();
this.instance.setTransform(27,22);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(500));
// 文字
this.instance_1 = new lib.未长长的标题1();
this.timeline.addTween(cjs.Tween.get(this.instance_1).wait(500));
// 人
this.instance_2 = new lib.();
this.instance_2.setTransform(155,393);
this.timeline.addTween(cjs.Tween.get(this.instance_2).wait(500));
// 人2
this.instance_3 = new lib.未标题次挖出1();
this.instance_3.setTransform(852,450);
this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(500));
// 鸟
this.instance_4 = new lib.未组织标题1();
this.instance_4.setTransform(62,304);
this.timeline.addTween(cjs.Tween.get(this.instance_4).wait(500));
// 地面
this.instance_5 = new lib.未标题草1();
this.instance_5.setTransform(-48,484);
this.timeline.addTween(cjs.Tween.get(this.instance_5).wait(500));
// 图层_8
this.instance_6 = new lib.补间2("synched",0);
this.instance_6.setTransform(662.95,1985.95,1,1,13.2241,0,0,118,1489.7);
this.timeline.addTween(cjs.Tween.get(this.instance_6).to({regX:118.1,rotation:9.1205,x:663.15,y:1986},126).to({regX:118,rotation:-3.0246,x:663},373).wait(1));
// 背景
this.instance_7 = new lib.未一体化标题1();
this.timeline.addTween(cjs.Tween.get(this.instance_7).wait(500));
this._renderFirstFrame();
}).prototype = p = new lib.AnMovieClip();
p.nominalBounds = new cjs.Rectangle(254.2,360,1471,552.7);
// library properties:
lib.properties = {
id: 'E6AAA43C27C8FB4C8B0B04676F9FCE16',
width: 1280,
height: 720,
fps: 30,
color: "#FFFFFF",
opacity: 1.00,
manifest: [
{src:"images/start_page_atlas_1.png", id:"start_page_atlas_1"}
],
preloads: []
};
// bootstrap callback support:
(lib.Stage = function(canvas) {
createjs.Stage.call(this, canvas);
}).prototype = p = new createjs.Stage();
p.setAutoPlay = function(autoPlay) {
this.tickEnabled = autoPlay;
}
p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }
p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }
an.bootcompsLoaded = an.bootcompsLoaded || [];
if(!an.bootstrapListeners) {
an.bootstrapListeners=[];
}
an.bootstrapCallback=function(fnCallback) {
an.bootstrapListeners.push(fnCallback);
if(an.bootcompsLoaded.length > 0) {
for(var i=0; i<an.bootcompsLoaded.length; ++i) {
fnCallback(an.bootcompsLoaded[i]);
}
}
};
an.compositions = an.compositions || {};
an.compositions['E6AAA43C27C8FB4C8B0B04676F9FCE16'] = {
getStage: function() { return exportRoot.stage; },
getLibrary: function() { return lib; },
getSpriteSheet: function() { return ss; },
getImages: function() { return img; }
};
an.compositionLoaded = function(id) {
an.bootcompsLoaded.push(id);
for(var j=0; j<an.bootstrapListeners.length; j++) {
an.bootstrapListeners[j](id);
}
}
an.getComposition = function(id) {
return an.compositions[id];
}
an.makeResponsive = function(isResp, respDim, isScale, scaleType, domContainers) {
var lastW, lastH, lastS=1;
window.addEventListener('resize', resizeCanvas);
resizeCanvas();
function resizeCanvas() {
var w = lib.properties.width, h = lib.properties.height;
var iw = window.innerWidth, ih=window.innerHeight;
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;
if(isResp) {
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {
sRatio = lastS;
}
else if(!isScale) {
if(iw<w || ih<h)
sRatio = Math.min(xRatio, yRatio);
}
else if(scaleType==1) {
sRatio = Math.min(xRatio, yRatio);
}
else if(scaleType==2) {
sRatio = Math.max(xRatio, yRatio);
}
}
domContainers[0].width = w * pRatio * sRatio;
domContainers[0].height = h * pRatio * sRatio;
domContainers.forEach(function(container) {
container.style.width = w * sRatio + 'px';
container.style.height = h * sRatio + 'px';
});
stage.scaleX = pRatio*sRatio;
stage.scaleY = pRatio*sRatio;
lastW = iw; lastH = ih; lastS = sRatio;
stage.tickOnUpdate = false;
stage.update();
stage.tickOnUpdate = true;
}
}
an.handleSoundStreamOnTick = function(event) {
if(!event.paused){
var stageChild = stage.getChildAt(0);
if(!stageChild.paused || stageChild.ignorePause){
stageChild.syncStreamSounds();
}
}
}
an.handleFilterCache = function(event) {
if(!event.paused){
var target = event.target;
if(target){
if(target.filterCacheList){
for(var index = 0; index < target.filterCacheList.length ; index++){
var cacheInst = target.filterCacheList[index];
if((cacheInst.startFrame <= target.currentFrame) && (target.currentFrame <= cacheInst.endFrame)){
cacheInst.instance.cache(cacheInst.x, cacheInst.y, cacheInst.w, cacheInst.h);
}
}
}
}
}
}
})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;