diff --git a/GameSenaSpin/appmanifest.json b/GameSenaSpin/appmanifest.json index 15b48cd..4faf1ae 100644 --- a/GameSenaSpin/appmanifest.json +++ b/GameSenaSpin/appmanifest.json @@ -1,6 +1,6 @@ { - "name": "Family-G5-U5-L3-1", - "short_name": "Family-G5-U5-L3-1", + "name": "GameSenaSpin", + "short_name": "GameSenaSpin", "start_url": "index.html", "display": "fullscreen", "orientation": "any", diff --git a/GameSenaSpin/c2runtime.js b/GameSenaSpin/c2runtime.js index ce7f4b2..6a85131 100644 --- a/GameSenaSpin/c2runtime.js +++ b/GameSenaSpin/c2runtime.js @@ -20969,747 +20969,6 @@ cr.plugins_.Sprite = function(runtime) }; pluginProto.exps = new Exps(); }()); -/* global cr,log,assert2 */ -/* jshint globalstrict: true */ -/* jshint strict: true */ -; -; -var jText = ''; -cr.plugins_.SpriteFontPlus = function(runtime) -{ - this.runtime = runtime; -}; -(function () -{ - var pluginProto = cr.plugins_.SpriteFontPlus.prototype; - pluginProto.onCreate = function () - { - }; - pluginProto.Type = function(plugin) - { - this.plugin = plugin; - this.runtime = plugin.runtime; - }; - var typeProto = pluginProto.Type.prototype; - typeProto.onCreate = function() - { - if (this.is_family) - return; - this.texture_img = new Image(); - this.texture_img["idtkLoadDisposed"] = true; - this.texture_img.src = this.texture_file; - this.runtime.wait_for_textures.push(this.texture_img); - this.webGL_texture = null; - }; - typeProto.onLostWebGLContext = function () - { - if (this.is_family) - return; - this.webGL_texture = null; - }; - typeProto.onRestoreWebGLContext = function () - { - if (this.is_family || !this.instances.length) - return; - if (!this.webGL_texture) - { - this.webGL_texture = this.runtime.glwrap.loadTexture(this.texture_img, false, this.runtime.linearSampling, this.texture_pixelformat); - } - var i, len; - for (i = 0, len = this.instances.length; i < len; i++) - this.instances[i].webGL_texture = this.webGL_texture; - }; - typeProto.unloadTextures = function () - { - if (this.is_family || this.instances.length || !this.webGL_texture) - return; - this.runtime.glwrap.deleteTexture(this.webGL_texture); - this.webGL_texture = null; - }; - typeProto.preloadCanvas2D = function (ctx) - { - ctx.drawImage(this.texture_img, 0, 0); - }; - pluginProto.Instance = function(type) - { - this.type = type; - this.runtime = type.runtime; - }; - var instanceProto = pluginProto.Instance.prototype; - instanceProto.onDestroy = function() - { - freeAllLines (this.lines); - freeAllClip (this.clipList); - freeAllClipUV(this.clipUV); - cr.wipe(this.characterWidthList); - }; - instanceProto.onCreate = function() - { - this.texture_img = this.type.texture_img; - this.characterWidth = this.properties[0]; - this.characterHeight = this.properties[1]; - this.characterSet = this.properties[2]; - this.text = this.properties[3]; - this.characterScale = this.properties[4]; - this.visible = (this.properties[5] === 0); // 0=visible, 1=invisible - this.halign = this.properties[6]/2.0; // 0=left, 1=center, 2=right - this.valign = this.properties[7]/2.0; // 0=top, 1=center, 2=bottom - this.wrapbyword = (this.properties[9] === 0); // 0=word, 1=character - this.characterSpacing = this.properties[10]; - this.lineHeight = this.properties[11]; - this.textWidth = 0; - this.textHeight = 0; - this.charWidthJSON = this.properties[12]; - this.spaceWidth = this.properties[13]; - jText = this.charWidthJSON; - if (this.recycled) - { - this.lines.length = 0; - cr.wipe(this.clipList); - cr.wipe(this.clipUV); - cr.wipe(this.characterWidthList); - } - else - { - this.lines = []; - this.clipList = {}; - this.clipUV = {}; - this.characterWidthList = {}; - } - try{ - if(this.charWidthJSON){ - if(this.charWidthJSON.indexOf('""c2array""') !== -1) { - var jStr = jQuery.parseJSON(this.charWidthJSON.replace(/""/g,'"')); - var l = jStr.size[1]; - for(var s = 0; s < l; s++) { - var cs = jStr.data[1][s][0]; - var w = jStr.data[0][s][0]; - for(var c = 0; c < cs.length; c++) { - this.characterWidthList[cs.charAt(c)] = w - } - } - } else { - var jStr = jQuery.parseJSON(this.charWidthJSON); - var l = jStr.length; - for(var s = 0; s < l; s++) { - var cs = jStr[s][1]; - var w = jStr[s][0]; - for(var c = 0; c < cs.length; c++) { - this.characterWidthList[cs.charAt(c)] = w - } - } - } - } - if(this.spaceWidth !== -1) { - this.characterWidthList[' '] = this.spaceWidth; - } - } - catch(e){ - if(window.console && window.console.log) { - window.console.log('SpriteFont+ Failure: ' + e); - } - } - this.text_changed = true; - this.lastwrapwidth = this.width; - if (this.runtime.glwrap) - { - if (!this.type.webGL_texture) - { - this.type.webGL_texture = this.runtime.glwrap.loadTexture(this.type.texture_img, false, this.runtime.linearSampling, this.type.texture_pixelformat); - } - this.webGL_texture = this.type.webGL_texture; - } - this.SplitSheet(); - }; - instanceProto.saveToJSON = function () - { - var save = { - "t": this.text, - "csc": this.characterScale, - "csp": this.characterSpacing, - "lh": this.lineHeight, - "tw": this.textWidth, - "th": this.textHeight, - "lrt": this.last_render_tick, - "cw": {} - }; - for (var ch in this.characterWidthList) - save["cw"][ch] = this.characterWidthList[ch]; - return save; - }; - instanceProto.loadFromJSON = function (o) - { - this.text = o["t"]; - this.characterScale = o["csc"]; - this.characterSpacing = o["csp"]; - this.lineHeight = o["lh"]; - this.textWidth = o["tw"]; - this.textHeight = o["th"]; - this.last_render_tick = o["lrt"]; - for(var ch in o["cw"]) - this.characterWidthList[ch] = o["cw"][ch]; - this.text_changed = true; - this.lastwrapwidth = this.width; - }; - function trimRight(text) - { - return text.replace(/\s\s*$/, ''); - } - var MAX_CACHE_SIZE = 1000; - function alloc(cache,Constructor) - { - if (cache.length) - return cache.pop(); - else - return new Constructor(); - } - function free(cache,data) - { - if (cache.length < MAX_CACHE_SIZE) - { - cache.push(data); - } - } - function freeAll(cache,dataList,isArray) - { - if (isArray) { - var i, len; - for (i = 0, len = dataList.length; i < len; i++) - { - free(cache,dataList[i]); - } - dataList.length = 0; - } else { - var prop; - for(prop in dataList) { - if(Object.prototype.hasOwnProperty.call(dataList,prop)) { - free(cache,dataList[prop]); - delete dataList[prop]; - } - } - } - } - function addLine(inst,lineIndex,cur_line) { - var lines = inst.lines; - var line; - cur_line = trimRight(cur_line); - if (lineIndex >= lines.length) - lines.push(allocLine()); - line = lines[lineIndex]; - line.text = cur_line; - line.width = inst.measureWidth(cur_line); - inst.textWidth = cr.max(inst.textWidth,line.width); - } - var linesCache = []; - function allocLine() { return alloc(linesCache,Object); } - function freeLine(l) { free(linesCache,l); } - function freeAllLines(arr) { freeAll(linesCache,arr,true); } - function addClip(obj,property,x,y,w,h) { - if (obj[property] === undefined) { - obj[property] = alloc(clipCache,Object); - } - obj[property].x = x; - obj[property].y = y; - obj[property].w = w; - obj[property].h = h; - } - var clipCache = []; - function allocClip() { return alloc(clipCache,Object); } - function freeAllClip(obj) { freeAll(clipCache,obj,false);} - function addClipUV(obj,property,left,top,right,bottom) { - if (obj[property] === undefined) { - obj[property] = alloc(clipUVCache,cr.rect); - } - obj[property].left = left; - obj[property].top = top; - obj[property].right = right; - obj[property].bottom = bottom; - } - var clipUVCache = []; - function allocClipUV() { return alloc(clipUVCache,cr.rect);} - function freeAllClipUV(obj) { freeAll(clipUVCache,obj,false);} - instanceProto.SplitSheet = function() { - var texture = this.texture_img; - var texWidth = texture.width; - var texHeight = texture.height; - var charWidth = this.characterWidth; - var charHeight = this.characterHeight; - var charU = charWidth /texWidth; - var charV = charHeight/texHeight; - var charSet = this.characterSet ; - var cols = Math.floor(texWidth/charWidth); - var rows = Math.floor(texHeight/charHeight); - for ( var c = 0; c < charSet.length; c++) { - if (c >= cols * rows) break; - var x = c%cols; - var y = Math.floor(c/cols); - var letter = charSet.charAt(c); - if (this.runtime.glwrap) { - addClipUV( - this.clipUV, letter, - x * charU , - y * charV , - (x+1) * charU , - (y+1) * charV - ); - } else { - addClip( - this.clipList, letter, - x * charWidth, - y * charHeight, - charWidth, - charHeight - ); - } - } - }; - /* - * Word-Wrapping - */ - var wordsCache = []; - pluginProto.TokeniseWords = function (text) - { - wordsCache.length = 0; - var cur_word = ""; - var ch; - var i = 0; - while (i < text.length) - { - ch = text.charAt(i); - if (ch === "\n") - { - if (cur_word.length) - { - wordsCache.push(cur_word); - cur_word = ""; - } - wordsCache.push("\n"); - ++i; - } - else if (ch === " " || ch === "\t" || ch === "-") - { - do { - cur_word += text.charAt(i); - i++; - } - while (i < text.length && (text.charAt(i) === " " || text.charAt(i) === "\t")); - wordsCache.push(cur_word); - cur_word = ""; - } - else if (i < text.length) - { - cur_word += ch; - i++; - } - } - if (cur_word.length) - wordsCache.push(cur_word); - }; - pluginProto.WordWrap = function (inst) - { - var text = inst.text; - var lines = inst.lines; - if (!text || !text.length) - { - freeAllLines(lines); - return; - } - var width = inst.width; - if (width <= 2.0) - { - freeAllLines(lines); - return; - } - var charWidth = inst.characterWidth; - var charScale = inst.characterScale; - var charSpacing = inst.characterSpacing; - if ( (text.length * (charWidth * charScale + charSpacing) - charSpacing) <= width && text.indexOf("\n") === -1) - { - var all_width = inst.measureWidth(text); - if (all_width <= width) - { - freeAllLines(lines); - lines.push(allocLine()); - lines[0].text = text; - lines[0].width = all_width; - inst.textWidth = all_width; - inst.textHeight = inst.characterHeight * charScale + inst.lineHeight; - return; - } - } - var wrapbyword = inst.wrapbyword; - this.WrapText(inst); - inst.textHeight = lines.length * (inst.characterHeight * charScale + inst.lineHeight); - }; - pluginProto.WrapText = function (inst) - { - var wrapbyword = inst.wrapbyword; - var text = inst.text; - var lines = inst.lines; - var width = inst.width; - var wordArray; - if (wrapbyword) { - this.TokeniseWords(text); // writes to wordsCache - wordArray = wordsCache; - } else { - wordArray = text; - } - var cur_line = ""; - var prev_line; - var line_width; - var i; - var lineIndex = 0; - var line; - var ignore_newline = false; - for (i = 0; i < wordArray.length; i++) - { - if (wordArray[i] === "\n") - { - if (ignore_newline === true) { - ignore_newline = false; - } else { - addLine(inst,lineIndex,cur_line); - lineIndex++; - } - cur_line = ""; - continue; - } - ignore_newline = false; - prev_line = cur_line; - cur_line += wordArray[i]; - line_width = inst.measureWidth(trimRight(cur_line)); - if (line_width > width) - { - if (prev_line === "") { - addLine(inst,lineIndex,cur_line); - cur_line = ""; - ignore_newline = true; - } else { - addLine(inst,lineIndex,prev_line); - cur_line = wordArray[i]; - } - lineIndex++; - if (!wrapbyword && cur_line === " ") - cur_line = ""; - } - } - if (trimRight(cur_line).length) - { - addLine(inst,lineIndex,cur_line); - lineIndex++; - } - for (i = lineIndex; i < lines.length; i++) - freeLine(lines[i]); - lines.length = lineIndex; - }; - instanceProto.measureWidth = function(text) { - var spacing = this.characterSpacing; - var len = text.length; - var width = 0; - for (var i = 0; i < len; i++) { - width += this.getCharacterWidth(text.charAt(i)) * this.characterScale + spacing; - } - width -= (width > 0) ? spacing : 0; - return width; - }; - /***/ - instanceProto.getCharacterWidth = function(character) { - var widthList = this.characterWidthList; - if (widthList[character] !== undefined) { - return widthList[character]; - } else { - return this.characterWidth; - } - }; - instanceProto.rebuildText = function() { - if (this.text_changed || this.width !== this.lastwrapwidth) { - this.textWidth = 0; - this.textHeight = 0; - this.type.plugin.WordWrap(this); - this.text_changed = false; - this.lastwrapwidth = this.width; - } - }; - var EPSILON = 0.00001; - instanceProto.draw = function(ctx, glmode) - { - var texture = this.texture_img; - if (this.text !== "" && texture != null) { - this.rebuildText(); - if (this.height < this.characterHeight*this.characterScale + this.lineHeight) { - return; - } - ctx.globalAlpha = this.opacity; - var myx = this.x; - var myy = this.y; - if (this.runtime.pixel_rounding) - { - myx = (myx + 0.5) | 0; - myy = (myy + 0.5) | 0; - } - ctx.save(); - ctx.translate(myx, myy); - ctx.rotate(this.angle); - var ha = this.halign; - var va = this.valign; - var scale = this.characterScale; - var charHeight = this.characterHeight * scale; - var lineHeight = this.lineHeight; - var charSpace = this.characterSpacing; - var lines = this.lines; - var textHeight = this.textHeight; - var halign; - var valign = va * cr.max(0,(this.height - textHeight)); - var offx = -(this.hotspotX * this.width); - var offy = -(this.hotspotY * this.height); - offy += valign; - var drawX ; - var drawY = offy; - for(var i = 0; i < lines.length; i++) { - var line = lines[i].text; - var len = lines[i].width; - halign = ha * cr.max(0,this.width - len); - drawX = offx + halign; - drawY += lineHeight; - for(var j = 0; j < line.length; j++) { - var letter = line.charAt(j); - var clip = this.clipList[letter]; - if ( drawX + this.getCharacterWidth(letter) * scale > this.width + EPSILON ) { - break; - } - if (clip !== undefined) { - ctx.drawImage( this.texture_img, - clip.x, clip.y, clip.w, clip.h, - Math.round(drawX),Math.round(drawY),clip.w*scale,clip.h*scale); - } - drawX += this.getCharacterWidth(letter) * scale + charSpace; - } - drawY += charHeight; - if ( drawY + charHeight + lineHeight > this.height) { - break; - } - } - ctx.restore(); - } - }; - var dQuad = new cr.quad(); - function rotateQuad(quad,cosa,sina) { - var x_temp; - x_temp = (quad.tlx * cosa) - (quad.tly * sina); - quad.tly = (quad.tly * cosa) + (quad.tlx * sina); - quad.tlx = x_temp; - x_temp = (quad.trx * cosa) - (quad.try_ * sina); - quad.try_ = (quad.try_ * cosa) + (quad.trx * sina); - quad.trx = x_temp; - x_temp = (quad.blx * cosa) - (quad.bly * sina); - quad.bly = (quad.bly * cosa) + (quad.blx * sina); - quad.blx = x_temp; - x_temp = (quad.brx * cosa) - (quad.bry * sina); - quad.bry = (quad.bry * cosa) + (quad.brx * sina); - quad.brx = x_temp; - } - instanceProto.drawGL = function(glw) - { - glw.setTexture(this.webGL_texture); - glw.setOpacity(this.opacity); - if (this.text !== "") { - this.rebuildText(); - if (this.height < this.characterHeight*this.characterScale + this.lineHeight) { - return; - } - this.update_bbox(); - var q = this.bquad; - var ox = 0; - var oy = 0; - if (this.runtime.pixel_rounding) - { - ox = ((this.x + 0.5) | 0) - this.x; - oy = ((this.y + 0.5) | 0) - this.y; - } - var angle = this.angle; - var ha = this.halign; - var va = this.valign; - var scale = this.characterScale; - var charHeight = this.characterHeight * scale; // to precalculate in onCreate or on change - var lineHeight = this.lineHeight; - var charSpace = this.characterSpacing; - var lines = this.lines; - var textHeight = this.textHeight; - var cosa,sina; - if (angle !== 0) - { - cosa = Math.cos(angle); - sina = Math.sin(angle); - } - var halign; - var valign = va * cr.max(0,(this.height - textHeight)); - var offx = q.tlx + ox; - var offy = q.tly + oy; - var drawX ; - var drawY = valign; - for(var i = 0; i < lines.length; i++) { - var line = lines[i].text; - var lineWidth = lines[i].width; - halign = ha * cr.max(0,this.width - lineWidth); - drawX = halign; - drawY += lineHeight; - for(var j = 0; j < line.length; j++) { - var letter = line.charAt(j); - var clipUV = this.clipUV[letter]; - if ( drawX + this.getCharacterWidth(letter) * scale > this.width + EPSILON) { - break; - } - if (clipUV !== undefined) { - var clipWidth = this.characterWidth*scale; - var clipHeight = this.characterHeight*scale; - dQuad.tlx = drawX; - dQuad.tly = drawY; - dQuad.trx = drawX + clipWidth; - dQuad.try_ = drawY ; - dQuad.blx = drawX; - dQuad.bly = drawY + clipHeight; - dQuad.brx = drawX + clipWidth; - dQuad.bry = drawY + clipHeight; - if(angle !== 0) - { - rotateQuad(dQuad,cosa,sina); - } - dQuad.offset(offx,offy); - glw.quadTex( - dQuad.tlx, dQuad.tly, - dQuad.trx, dQuad.try_, - dQuad.brx, dQuad.bry, - dQuad.blx, dQuad.bly, - clipUV - ); - } - drawX += this.getCharacterWidth(letter) * scale + charSpace; - } - drawY += charHeight; - if ( drawY + charHeight + lineHeight > this.height) { - break; - } - } - } - }; - function Cnds() {} - Cnds.prototype.CompareText = function(text_to_compare, case_sensitive) - { - if (case_sensitive) - return this.text == text_to_compare; - else - return cr.equals_nocase(this.text, text_to_compare); - }; - pluginProto.cnds = new Cnds(); - function Acts() {} - Acts.prototype.SetText = function(param) - { - if (cr.is_number(param) && param < 1e9) - param = Math.round(param * 1e10) / 1e10; // round to nearest ten billionth - hides floating point errors - var text_to_set = param.toString(); - if (this.text !== text_to_set) - { - this.text = text_to_set; - this.text_changed = true; - this.runtime.redraw = true; - } - }; - Acts.prototype.AppendText = function(param) - { - if (cr.is_number(param)) - param = Math.round(param * 1e10) / 1e10; // round to nearest ten billionth - hides floating point errors - var text_to_append = param.toString(); - if (text_to_append) // not empty - { - this.text += text_to_append; - this.text_changed = true; - this.runtime.redraw = true; - } - }; - Acts.prototype.SetScale = function(param) - { - if (param !== this.characterScale) { - this.characterScale = param; - this.text_changed = true; - this.runtime.redraw = true; - } - }; - Acts.prototype.SetCharacterSpacing = function(param) - { - if (param !== this.CharacterSpacing) { - this.characterSpacing = param; - this.text_changed = true; - this.runtime.redraw = true; - } - }; - Acts.prototype.SetLineHeight = function(param) - { - if (param !== this.lineHeight) { - this.lineHeight = param; - this.text_changed = true; - this.runtime.redraw = true; - } - }; - instanceProto.SetCharWidth = function(character,width) { - var w = parseInt(width,10); - if (this.characterWidthList[character] !== w) { - this.characterWidthList[character] = w; - this.text_changed = true; - this.runtime.redraw = true; - } - }; - Acts.prototype.SetCharacterWidth = function(characterSet,width) - { - if (characterSet !== "") { - for(var c = 0; c < characterSet.length; c++) { - this.SetCharWidth(characterSet.charAt(c),width); - } - } - }; - Acts.prototype.SetEffect = function (effect) - { - this.compositeOp = cr.effectToCompositeOp(effect); - cr.setGLBlend(this, effect, this.runtime.gl); - this.runtime.redraw = true; - }; - pluginProto.acts = new Acts(); - function Exps() {} - Exps.prototype.CharacterWidth = function(ret,character) - { - ret.set_int(this.getCharacterWidth(character)); - }; - Exps.prototype.CharacterHeight = function(ret) - { - ret.set_int(this.characterHeight); - }; - Exps.prototype.CharacterScale = function(ret) - { - ret.set_float(this.characterScale); - }; - Exps.prototype.CharacterSpacing = function(ret) - { - ret.set_int(this.characterSpacing); - }; - Exps.prototype.LineHeight = function(ret) - { - ret.set_int(this.lineHeight); - }; - Exps.prototype.Text = function(ret) - { - ret.set_string(this.text); - }; - Exps.prototype.TextWidth = function (ret) - { - this.rebuildText(); - ret.set_float(this.textWidth); - }; - Exps.prototype.TextHeight = function (ret) - { - this.rebuildText(); - ret.set_float(this.textHeight); - }; - pluginProto.exps = new Exps(); -}()); ; ; cr.plugins_.Touch = function(runtime) @@ -22937,880 +22196,6 @@ cr.plugins_.Touch = function(runtime) }()); ; ; -cr.plugins_.video = function(runtime) -{ - this.runtime = runtime; -}; -(function () -{ - var pluginProto = cr.plugins_.video.prototype; - pluginProto.Type = function(plugin) - { - this.plugin = plugin; - this.runtime = plugin.runtime; - }; - var typeProto = pluginProto.Type.prototype; - typeProto.onCreate = function() - { - }; - typeProto.onLostWebGLContext = function () - { - if (this.is_family) - return; - var i, len, inst; - for (i = 0, len = this.instances.length; i < len; ++i) - { - inst = this.instances[i]; - inst.webGL_texture = null; // will lazy create again on next draw - } - }; - var tmpVideo = document.createElement("video"); - var can_play_webm = !!tmpVideo.canPlayType("video/webm"); - var can_play_ogv = !!tmpVideo.canPlayType("video/ogg"); - var can_play_mp4 = !!tmpVideo.canPlayType("video/mp4"); - tmpVideo = null; - function isVideoPlaying(v) - { - return v && !v.paused && !v.ended && v.currentTime > 0; - }; - pluginProto.Instance = function(type) - { - this.type = type; - this.runtime = type.runtime; - }; - var instanceProto = pluginProto.Instance.prototype; - var playOnNextInput = []; - function playQueued() - { - var tryPlay = playOnNextInput.slice(0); - cr.clearArray(playOnNextInput); - var i, len, playRet, v; - for (i = 0, len = tryPlay.length; i < len; ++i) - { - v = tryPlay[i]; - playRet = v.play(); - if (playRet) - { - playRet.catch(function (err) - { - addVideoToPlayOnNextInput(v); - }); - } - } - }; - document.addEventListener("touchend", playQueued, true); - document.addEventListener("click", playQueued, true); - document.addEventListener("keydown", playQueued, true); - function addVideoToPlayOnNextInput(v) - { - var i = playOnNextInput.indexOf(v); - if (i === -1) - playOnNextInput.push(v); - }; - instanceProto.queueVideoPlay = function (add) - { - if (!this.video) - return; - var i; - var self = this; - if (!add) - { - i = playOnNextInput.indexOf(this.video); - if (i >= 0) - playOnNextInput.splice(i, 1); - return; - } - var playRet; - try { - playRet = this.video.play(); - } - catch (err) - { - addVideoToPlayOnNextInput(this.video); - return; - } - if (playRet) // Promise was returned - { - playRet.catch(function (err) - { - if (self.video) - addVideoToPlayOnNextInput(self.video); - }); - } - else if (this.useNextTouchWorkaround && !this.runtime.isInUserInputEvent) - { - addVideoToPlayOnNextInput(this.video); - } - }; - instanceProto.onCreate = function() - { - this.webm_src = this.properties[0]; - this.ogv_src = this.properties[1]; - this.mp4_src = this.properties[2]; - this.autoplay = this.properties[3]; // 0 = no, 1 = preload, 2 = yes - this.playInBackground = (this.properties[4] !== 0); // 0 = no, 1 = yes - this.videoWasPlayingOnSuspend = false; - this.video = document.createElement("video"); - this.video.crossOrigin = "anonymous"; - this.video["playsInline"] = true; // ensure inline playback on iOS - this.webGL_texture = null; - this.currentTrigger = -1; - this.viaCanvas = null; - this.viaCtx = null; - this.useViaCanvasWorkaround = this.runtime.isIE || this.runtime.isMicrosoftEdge; - var self = this; - this.video.addEventListener("canplay", function () { - self.currentTrigger = 0; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.video.addEventListener("canplaythrough", function () { - self.currentTrigger = 1; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.video.addEventListener("ended", function () { - self.currentTrigger = 2; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.video.addEventListener("error", function () { - self.currentTrigger = 3; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.video.addEventListener("loadstart", function () { - self.currentTrigger = 4; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.video.addEventListener("playing", function () { - self.currentTrigger = 5; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.video.addEventListener("pause", function () { - self.currentTrigger = 6; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.video.addEventListener("stalled", function () { - self.currentTrigger = 7; - self.runtime.trigger(cr.plugins_.video.prototype.cnds.OnPlaybackEvent, self); - }); - this.useNextTouchWorkaround = ((this.runtime.isiOS || (this.runtime.isAndroid && (this.runtime.isChrome || this.runtime.isAndroidStockBrowser))) && !this.runtime.isCrosswalk && !this.runtime.isDomFree); - if (this.autoplay === 0) - { - this.video.autoplay = false; - this.video.preload = "none"; - } - else if (this.autoplay === 1) - { - this.video.autoplay = false; - this.video.preload = "auto"; - } - else if (this.autoplay === 2) - { - this.video.autoplay = true; - } - this.setSource(this.webm_src, this.ogv_src, this.mp4_src); - if (this.autoplay === 2) - this.queueVideoPlay(true); - this.visible = (this.properties[5] !== 0); - this.runtime.tickMe(this); - if (!this.recycled) - { - var self = this; - this.runtime.addSuspendCallback(function(s) - { - self.onSuspend(s); - }); - } - }; - instanceProto.onSuspend = function (s) - { - if (this.playInBackground || !this.video) - return; - if (s) - { - if (isVideoPlaying(this.video)) - { - this.queueVideoPlay(false); - this.video.pause(); - this.videoWasPlayingOnSuspend = true; - } - } - else - { - if (this.videoWasPlayingOnSuspend) - { - this.queueVideoPlay(true); - this.videoWasPlayingOnSuspend = false; - } - } - }; - instanceProto.setSource = function (webm_src, ogv_src, mp4_src) - { - var self = this; - var useSrc = ""; - if (can_play_webm && webm_src) - useSrc = webm_src; - else if (can_play_ogv && ogv_src) - useSrc = ogv_src; - else if (can_play_mp4 && mp4_src) - useSrc = mp4_src; - if (useSrc) - { - if (!this.runtime.isAbsoluteUrl(useSrc)) - useSrc = useSrc.toLowerCase(); - this.video.src = useSrc; - } - if (this.runtime.glwrap && this.webGL_texture) - { - this.runtime.glwrap.deleteTexture(this.webGL_texture); - this.webGL_texture = null; - } - this.viaCanvas = null; - this.viaCtx = null; - }; - instanceProto.onDestroy = function () - { - this.queueVideoPlay(false); - if (isVideoPlaying(this.video)) - this.video.pause(); // stop playback - if (this.runtime.glwrap && this.webGL_texture) - { - this.runtime.glwrap.deleteTexture(this.webGL_texture); - this.webGL_texture = null; - } - this.viaCanvas = null; - this.viaCtx = null; - this.video.src = ""; // memory is not always cleaned up unless we drop the src! - this.video = null; - }; - instanceProto.tick = function () - { - if (isVideoPlaying(this.video)) - this.runtime.redraw = true; - }; - instanceProto.saveToJSON = function () - { - return { - "s": (this.video.src || ""), - "p": !!isVideoPlaying(this.video), - "t": (this.video.currentTime || 0) - }; - }; - instanceProto.loadFromJSON = function (o) - { - if (!o || typeof o["s"] === "undefined") - return; - var src = o["s"]; - this.setSource(src, src, src); - try { - this.video.currentTime = o["t"]; - } - catch (e) {}; // ignore if throws - if (o["p"]) // is playing - { - this.queueVideoPlay(true); - } - else - { - this.queueVideoPlay(false); - this.video.pause(); - } - }; - instanceProto.draw = function (ctx) - { - if (!this.video) - return; // no video to draw - var videoWidth = this.video.videoWidth; - var videoHeight = this.video.videoHeight; - if (videoWidth <= 0 || videoHeight <= 0) - return; // not yet loaded metadata - var videoAspect = videoWidth / videoHeight; - var dispWidth = this.width; - var dispHeight = this.height; - var dispAspect = dispWidth / dispHeight; - var offx = 0; - var offy = 0; - var drawWidth = 0; - var drawHeight = 0; - if (dispAspect > videoAspect) - { - drawWidth = dispHeight * videoAspect; - drawHeight = dispHeight; - offx = Math.floor((dispWidth - drawWidth) / 2); - if (offx < 0) - offx = 0; - } - else - { - drawWidth = dispWidth; - drawHeight = dispWidth / videoAspect; - offy = Math.floor((dispHeight - drawHeight) / 2); - if (offy < 0) - offy = 0; - } - ctx.globalAlpha = this.opacity; - ctx.drawImage(this.video, this.x + offx, this.y + offy, drawWidth, drawHeight); - }; - var tmpRect = new cr.rect(0, 0, 0, 0); - var tmpQuad = new cr.quad(); - instanceProto.drawGL = function (glw) - { - if (!this.video) - return; // no video to draw - var videoWidth = this.video.videoWidth; - var videoHeight = this.video.videoHeight; - if (videoWidth <= 0 || videoHeight <= 0) - return; // not yet loaded metadata - var videoAspect = videoWidth / videoHeight; - var dispWidth = this.width; - var dispHeight = this.height; - var dispAspect = dispWidth / dispHeight; - var offx = 0; - var offy = 0; - var drawWidth = 0; - var drawHeight = 0; - if (dispAspect > videoAspect) - { - drawWidth = dispHeight * videoAspect; - drawHeight = dispHeight; - offx = Math.floor((dispWidth - drawWidth) / 2); - if (offx < 0) - offx = 0; - } - else - { - drawWidth = dispWidth; - drawHeight = dispWidth / videoAspect; - offy = Math.floor((dispHeight - drawHeight) / 2); - if (offy < 0) - offy = 0; - } - if (!this.webGL_texture) - { - this.webGL_texture = glw.createEmptyTexture(videoWidth, videoHeight, this.runtime.linearSampling, false, false); - } - if (this.useViaCanvasWorkaround) - { - if (!this.viaCtx) - { - this.viaCanvas = document.createElement("canvas"); - this.viaCanvas.width = videoWidth; - this.viaCanvas.height = videoHeight; - this.viaCtx = this.viaCanvas.getContext("2d"); - } - this.viaCtx.drawImage(this.video, 0, 0); - glw.videoToTexture(this.viaCanvas, this.webGL_texture); - } - else - { - glw.videoToTexture(this.video, this.webGL_texture); - } - glw.setBlend(this.srcBlend, this.destBlend); - glw.setOpacity(this.opacity); - glw.setTexture(this.webGL_texture); - tmpRect.set(this.x + offx, this.y + offy, this.x + offx + drawWidth, this.y + offy + drawHeight); - tmpQuad.set_from_rect(tmpRect); - glw.quad(tmpQuad.tlx, tmpQuad.tly, tmpQuad.trx, tmpQuad.try_, tmpQuad.brx, tmpQuad.bry, tmpQuad.blx, tmpQuad.bly); - }; - function dbToLinear_nocap(x) - { - return Math.pow(10, x / 20); - }; - function linearToDb_nocap(x) - { - return (Math.log(x) / Math.log(10)) * 20; - }; - function dbToLinear(x) - { - var v = dbToLinear_nocap(x); - if (v < 0) - v = 0; - if (v > 1) - v = 1; - return v; - }; - function linearToDb(x) - { - if (x < 0) - x = 0; - if (x > 1) - x = 1; - return linearToDb_nocap(x); - }; - function Cnds() {}; - Cnds.prototype.IsPlaying = function () - { - return isVideoPlaying(this.video); - }; - Cnds.prototype.IsPaused = function () - { - return this.video.paused; - }; - Cnds.prototype.HasEnded = function () - { - return this.video.ended; - }; - Cnds.prototype.IsMuted = function () - { - return this.video.muted; - }; - Cnds.prototype.OnPlaybackEvent = function (trig) - { - return this.currentTrigger === trig; - }; - pluginProto.cnds = new Cnds(); - function Acts() {}; - Acts.prototype.SetSource = function (webm_src, ogv_src, mp4_src) - { - this.setSource(webm_src, ogv_src, mp4_src); - this.video.load(); - }; - Acts.prototype.SetPlaybackTime = function (s) - { - try { - this.video.currentTime = s; - } - catch (e) - { - if (console && console.error) - console.error("Exception setting video playback time: ", e); - } - }; - Acts.prototype.SetLooping = function (l) - { - this.video.loop = (l !== 0); - }; - Acts.prototype.SetMuted = function (m) - { - this.video.muted = (m !== 0); - }; - Acts.prototype.SetVolume = function (v) - { - this.video.volume = dbToLinear(v); - }; - Acts.prototype.Pause = function () - { - this.queueVideoPlay(false); // remove any play-on-next-touch queue, since we don't want it to be playing any more - this.video.pause(); - }; - Acts.prototype.Play = function () - { - this.queueVideoPlay(true); - }; - pluginProto.acts = new Acts(); - function Exps() {}; - Exps.prototype.PlaybackTime = function (ret) - { - ret.set_float(this.video.currentTime || 0); - }; - Exps.prototype.Duration = function (ret) - { - ret.set_float(this.video.duration || 0); - }; - Exps.prototype.Volume = function (ret) - { - ret.set_float(linearToDb(this.video.volume || 0)); - }; - pluginProto.exps = new Exps(); -}()); -; -; -cr.behaviors.DragnDrop = function(runtime) -{ - this.runtime = runtime; - var self = this; - if (!this.runtime.isDomFree) - { - jQuery(document).mousemove( - function(info) { - self.onMouseMove(info); - } - ); - jQuery(document).mousedown( - function(info) { - self.onMouseDown(info); - } - ); - jQuery(document).mouseup( - function(info) { - self.onMouseUp(info); - } - ); - } - var elem = (this.runtime.fullscreen_mode > 0) ? document : this.runtime.canvas; - if (this.runtime.isDirectCanvas) - elem = window["Canvas"]; - else if (this.runtime.isCocoonJs) - elem = window; - if (typeof PointerEvent !== "undefined") - { - elem.addEventListener("pointerdown", - function(info) { - self.onPointerStart(info); - }, - false - ); - elem.addEventListener("pointermove", - function(info) { - self.onPointerMove(info); - }, - false - ); - elem.addEventListener("pointerup", - function(info) { - self.onPointerEnd(info); - }, - false - ); - elem.addEventListener("pointercancel", - function(info) { - self.onPointerEnd(info); - }, - false - ); - } - else if (window.navigator["msPointerEnabled"]) - { - elem.addEventListener("MSPointerDown", - function(info) { - self.onPointerStart(info); - }, - false - ); - elem.addEventListener("MSPointerMove", - function(info) { - self.onPointerMove(info); - }, - false - ); - elem.addEventListener("MSPointerUp", - function(info) { - self.onPointerEnd(info); - }, - false - ); - elem.addEventListener("MSPointerCancel", - function(info) { - self.onPointerEnd(info); - }, - false - ); - } - else - { - elem.addEventListener("touchstart", - function(info) { - self.onTouchStart(info); - }, - false - ); - elem.addEventListener("touchmove", - function(info) { - self.onTouchMove(info); - }, - false - ); - elem.addEventListener("touchend", - function(info) { - self.onTouchEnd(info); - }, - false - ); - elem.addEventListener("touchcancel", - function(info) { - self.onTouchEnd(info); - }, - false - ); - } -}; -(function () -{ - var behaviorProto = cr.behaviors.DragnDrop.prototype; - var dummyoffset = {left: 0, top: 0}; - function GetDragDropBehavior(inst) - { - var i, len; - for (i = 0, len = inst.behavior_insts.length; i < len; i++) - { - if (inst.behavior_insts[i] instanceof behaviorProto.Instance) - return inst.behavior_insts[i]; - } - return null; - }; - behaviorProto.onMouseDown = function (info) - { - if (info.which !== 1) - return; // not left mouse button - this.onInputDown("leftmouse", info.pageX, info.pageY); - }; - behaviorProto.onMouseMove = function (info) - { - if (info.which !== 1) - return; // not left mouse button - this.onInputMove("leftmouse", info.pageX, info.pageY); - }; - behaviorProto.onMouseUp = function (info) - { - if (info.which !== 1) - return; // not left mouse button - this.onInputUp("leftmouse"); - }; - behaviorProto.onTouchStart = function (info) - { - if (info.preventDefault && cr.isCanvasInputEvent(info)) - info.preventDefault(); - var i, len, t, id; - for (i = 0, len = info.changedTouches.length; i < len; i++) - { - t = info.changedTouches[i]; - id = t.identifier; - this.onInputDown(id ? id.toString() : "", t.pageX, t.pageY); - } - }; - behaviorProto.onTouchMove = function (info) - { - if (info.preventDefault) - info.preventDefault(); - var i, len, t, id; - for (i = 0, len = info.changedTouches.length; i < len; i++) - { - t = info.changedTouches[i]; - id = t.identifier; - this.onInputMove(id ? id.toString() : "", t.pageX, t.pageY); - } - }; - behaviorProto.onTouchEnd = function (info) - { - if (info.preventDefault && cr.isCanvasInputEvent(info)) - info.preventDefault(); - var i, len, t, id; - for (i = 0, len = info.changedTouches.length; i < len; i++) - { - t = info.changedTouches[i]; - id = t.identifier; - this.onInputUp(id ? id.toString() : ""); - } - }; - behaviorProto.onPointerStart = function (info) - { - if (info["pointerType"] === info["MSPOINTER_TYPE_MOUSE"] || info["pointerType"] === "mouse") - return; - if (info.preventDefault && cr.isCanvasInputEvent(info)) - info.preventDefault(); - this.onInputDown(info["pointerId"].toString(), info.pageX, info.pageY); - }; - behaviorProto.onPointerMove = function (info) - { - if (info["pointerType"] === info["MSPOINTER_TYPE_MOUSE"] || info["pointerType"] === "mouse") - return; - if (info.preventDefault) - info.preventDefault(); - this.onInputMove(info["pointerId"].toString(), info.pageX, info.pageY); - }; - behaviorProto.onPointerEnd = function (info) - { - if (info["pointerType"] === info["MSPOINTER_TYPE_MOUSE"] || info["pointerType"] === "mouse") - return; - if (info.preventDefault && cr.isCanvasInputEvent(info)) - info.preventDefault(); - this.onInputUp(info["pointerId"].toString()); - }; - behaviorProto.onInputDown = function (src, pageX, pageY) - { - var offset = this.runtime.isDomFree ? dummyoffset : jQuery(this.runtime.canvas).offset(); - var x = pageX - offset.left; - var y = pageY - offset.top; - var lx, ly, topx, topy; - var arr = this.my_instances.valuesRef(); - var i, len, b, inst, topmost = null; - for (i = 0, len = arr.length; i < len; i++) - { - inst = arr[i]; - b = GetDragDropBehavior(inst); - if (!b.enabled || b.dragging) - continue; // don't consider disabled or already-dragging instances - lx = inst.layer.canvasToLayer(x, y, true); - ly = inst.layer.canvasToLayer(x, y, false); - inst.update_bbox(); - if (!inst.contains_pt(lx, ly)) - continue; // don't consider instances not over this point - if (!topmost) - { - topmost = inst; - topx = lx; - topy = ly; - continue; - } - if (inst.layer.index > topmost.layer.index) - { - topmost = inst; - topx = lx; - topy = ly; - continue; - } - if (inst.layer.index === topmost.layer.index && inst.get_zindex() > topmost.get_zindex()) - { - topmost = inst; - topx = lx; - topy = ly; - continue; - } - } - if (topmost) - GetDragDropBehavior(topmost).onDown(src, topx, topy); - }; - behaviorProto.onInputMove = function (src, pageX, pageY) - { - var offset = this.runtime.isDomFree ? dummyoffset : jQuery(this.runtime.canvas).offset(); - var x = pageX - offset.left; - var y = pageY - offset.top; - var lx, ly; - var arr = this.my_instances.valuesRef(); - var i, len, b, inst; - for (i = 0, len = arr.length; i < len; i++) - { - inst = arr[i]; - b = GetDragDropBehavior(inst); - if (!b.enabled || !b.dragging || (b.dragging && b.dragsource !== src)) - continue; // don't consider disabled, not-dragging, or dragging by other sources - lx = inst.layer.canvasToLayer(x, y, true); - ly = inst.layer.canvasToLayer(x, y, false); - b.onMove(lx, ly); - } - }; - behaviorProto.onInputUp = function (src) - { - var arr = this.my_instances.valuesRef(); - var i, len, b, inst; - for (i = 0, len = arr.length; i < len; i++) - { - inst = arr[i]; - b = GetDragDropBehavior(inst); - if (b.dragging && b.dragsource === src) - b.onUp(); - } - }; - behaviorProto.Type = function(behavior, objtype) - { - this.behavior = behavior; - this.objtype = objtype; - this.runtime = behavior.runtime; - }; - var behtypeProto = behaviorProto.Type.prototype; - behtypeProto.onCreate = function() - { - }; - behaviorProto.Instance = function(type, inst) - { - this.type = type; - this.behavior = type.behavior; - this.inst = inst; // associated object instance to modify - this.runtime = type.runtime; - }; - var behinstProto = behaviorProto.Instance.prototype; - behinstProto.onCreate = function() - { - this.dragging = false; - this.dx = 0; - this.dy = 0; - this.dragsource = ""; - this.axes = this.properties[0]; - this.enabled = (this.properties[1] !== 0); - }; - behinstProto.saveToJSON = function () - { - return { "enabled": this.enabled }; - }; - behinstProto.loadFromJSON = function (o) - { - this.enabled = o["enabled"]; - this.dragging = false; - }; - behinstProto.onDown = function(src, x, y) - { - this.dx = x - this.inst.x; - this.dy = y - this.inst.y; - this.dragging = true; - this.dragsource = src; - this.runtime.isInUserInputEvent = true; - this.runtime.trigger(cr.behaviors.DragnDrop.prototype.cnds.OnDragStart, this.inst); - this.runtime.isInUserInputEvent = false; - }; - behinstProto.onMove = function(x, y) - { - var newx = x - this.dx; - var newy = y - this.dy; - if (this.axes === 0) // both - { - if (this.inst.x !== newx || this.inst.y !== newy) - { - this.inst.x = newx; - this.inst.y = newy; - this.inst.set_bbox_changed(); - } - } - else if (this.axes === 1) // horizontal - { - if (this.inst.x !== newx) - { - this.inst.x = newx; - this.inst.set_bbox_changed(); - } - } - else if (this.axes === 2) // vertical - { - if (this.inst.y !== newy) - { - this.inst.y = newy; - this.inst.set_bbox_changed(); - } - } - }; - behinstProto.onUp = function() - { - this.dragging = false; - this.runtime.isInUserInputEvent = true; - this.runtime.trigger(cr.behaviors.DragnDrop.prototype.cnds.OnDrop, this.inst); - this.runtime.isInUserInputEvent = false; - }; - behinstProto.tick = function () - { - }; - function Cnds() {}; - Cnds.prototype.IsDragging = function () - { - return this.dragging; - }; - Cnds.prototype.OnDragStart = function () - { - return true; - }; - Cnds.prototype.OnDrop = function () - { - return true; - }; - Cnds.prototype.IsEnabled = function () - { - return !!this.enabled; - }; - behaviorProto.cnds = new Cnds(); - function Acts() {}; - Acts.prototype.SetEnabled = function (s) - { - this.enabled = (s !== 0); - if (!this.enabled) - this.dragging = false; - }; - Acts.prototype.Drop = function () - { - if (this.dragging) - this.onUp(); - }; - behaviorProto.acts = new Acts(); - function Exps() {}; - behaviorProto.exps = new Exps(); -}()); -; -; cr.behaviors.Fade = function(runtime) { this.runtime = runtime; @@ -24009,125 +22394,6 @@ cr.behaviors.Fade = function(runtime) }()); ; ; -cr.behaviors.Flash = function(runtime) -{ - this.runtime = runtime; -}; -(function () -{ - var behaviorProto = cr.behaviors.Flash.prototype; - behaviorProto.Type = function(behavior, objtype) - { - this.behavior = behavior; - this.objtype = objtype; - this.runtime = behavior.runtime; - }; - var behtypeProto = behaviorProto.Type.prototype; - behtypeProto.onCreate = function() - { - }; - behaviorProto.Instance = function(type, inst) - { - this.type = type; - this.behavior = type.behavior; - this.inst = inst; // associated object instance to modify - this.runtime = type.runtime; - }; - var behinstProto = behaviorProto.Instance.prototype; - behinstProto.onCreate = function() - { - this.ontime = 0; - this.offtime = 0; - this.stage = 0; // 0 = on, 1 = off - this.stagetimeleft = 0; - this.timeleft = 0; - }; - behinstProto.saveToJSON = function () - { - return { - "ontime": this.ontime, - "offtime": this.offtime, - "stage": this.stage, - "stagetimeleft": this.stagetimeleft, - "timeleft": this.timeleft - }; - }; - behinstProto.loadFromJSON = function (o) - { - this.ontime = o["ontime"]; - this.offtime = o["offtime"]; - this.stage = o["stage"]; - this.stagetimeleft = o["stagetimeleft"]; - this.timeleft = o["timeleft"]; - if (this.timeleft === null) - this.timeleft = Infinity; - }; - behinstProto.tick = function () - { - if (this.timeleft <= 0) - return; // not flashing - var dt = this.runtime.getDt(this.inst); - this.timeleft -= dt; - if (this.timeleft <= 0) - { - this.timeleft = 0; - this.inst.visible = true; - this.runtime.redraw = true; - this.runtime.trigger(cr.behaviors.Flash.prototype.cnds.OnFlashEnded, this.inst); - return; - } - this.stagetimeleft -= dt; - if (this.stagetimeleft <= 0) - { - if (this.stage === 0) - { - this.inst.visible = false; - this.stage = 1; - this.stagetimeleft += this.offtime; - } - else - { - this.inst.visible = true; - this.stage = 0; - this.stagetimeleft += this.ontime; - } - this.runtime.redraw = true; - } - }; - function Cnds() {}; - Cnds.prototype.IsFlashing = function () - { - return this.timeleft > 0; - }; - Cnds.prototype.OnFlashEnded = function () - { - return true; - }; - behaviorProto.cnds = new Cnds(); - function Acts() {}; - Acts.prototype.Flash = function (on_, off_, dur_) - { - this.ontime = on_; - this.offtime = off_; - this.stage = 1; // always start off - this.stagetimeleft = off_; - this.timeleft = dur_; - this.inst.visible = false; - this.runtime.redraw = true; - }; - Acts.prototype.StopFlashing = function () - { - this.timeleft = 0; - this.inst.visible = true; - this.runtime.redraw = true; - return; - }; - behaviorProto.acts = new Acts(); - function Exps() {}; - behaviorProto.exps = new Exps(); -}()); -; -; cr.behaviors.Pin = function(runtime) { this.runtime = runtime; @@ -26090,1403 +24356,26 @@ cr.behaviors.lunarray_LiteTween = function(runtime) ret.set_float(a_ + factor * (b_-a_)); }; }()); -; -; -function trim (str) { - return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); -} -cr.behaviors.lunarray_Tween = function(runtime) -{ - this.runtime = runtime; -}; -(function () -{ - var behaviorProto = cr.behaviors.lunarray_Tween.prototype; - behaviorProto.Type = function(behavior, objtype) - { - this.behavior = behavior; - this.objtype = objtype; - this.runtime = behavior.runtime; - }; - var behtypeProto = behaviorProto.Type.prototype; - behtypeProto.onCreate = function() - { - }; - behaviorProto.Instance = function(type, inst) - { - this.type = type; - this.behavior = type.behavior; - this.inst = inst; // associated object instance to modify - this.runtime = type.runtime; - this.i = 0; // progress - }; - var behinstProto = behaviorProto.Instance.prototype; - behinstProto.groupUpdateProgress = function(v) - { - if (v > 1) v = 1; - if (cr.lunarray_tweenProgress[this.group] = -1) cr.lunarray_tweenProgress[this.group] = v; - if (cr.lunarray_tweenProgress[this.group] >= v) cr.lunarray_tweenProgress[this.group] = v; - } - behinstProto.groupSync = function() - { - if (this.group != "") { - if (typeof cr.lunarray_tweenGroup === "undefined") { - cr.lunarray_tweenGroup = {}; - cr.lunarray_tweenProgress = {}; - } - if (typeof cr.lunarray_tweenGroup[this.group] === "undefined") { - cr.lunarray_tweenGroup[this.group] = []; - cr.lunarray_tweenProgress[this.group] = -1; - } - if (cr.lunarray_tweenGroup[this.group].indexOf(this) == -1) { - cr.lunarray_tweenGroup[this.group].push(this); - } - } - } - behinstProto.saveState = function() - { - this.tweenSaveWidth = this.inst.width; - this.tweenSaveHeight = this.inst.height; - this.tweenSaveAngle = this.inst.angle; - this.tweenSaveOpacity = this.inst.opacity; - this.tweenSaveX = this.inst.x; - this.tweenSaveY = this.inst.y; - this.tweenSaveValue = this.value; - } - behinstProto.onCreate = function() - { - this.active = (this.properties[0] === 1); - this.tweened = this.properties[1]; // 0=Position|1=Size|2=Width|3=Height|4=Angle|5=Opacity|6=Value only|7=Pixel Size - this.easing = this.properties[2]; - this.initial = this.properties[3]; - this.target = this.properties[4]; - this.duration = this.properties[5]; - this.wait = this.properties[6]; - this.playmode = this.properties[7]; //0=Play Once|1=Repeat|2=Ping Pong|3=Play once and destroy|4=Loop|5=Ping Pong Stop|6=Play and stop - this.value = this.properties[8]; - this.coord_mode = this.properties[9]; //0=Absolute|1=Relative - this.forceInit = (this.properties[10] === 1); - this.group = this.properties[11]; - this.targetObject = null; - this.pingpongCounter = 0; - if (this.playmode == 5) this.pingpongCounter = 1; - this.groupSync(); - this.isPaused = false; - this.initialX = this.inst.x; - this.initialY = this.inst.y; - this.targetX = parseFloat(this.target.split(",")[0]); - this.targetY = parseFloat(this.target.split(",")[1]); - this.saveState(); - this.tweenInitialX = 0; - this.tweenInitialY = 0; - this.tweenTargetX = 0; - this.tweenTargetY = 0; - this.tweenTargetAngle = 0; - this.ratio = this.inst.height / this.inst.width; - this.reverse = false; - this.rewindMode = false; - this.doTweenX = true; - this.doTweenY = true; - this.loop = false; - this.initiating = 0; - this.cooldown = 0; - this.lastPlayMode = this.playmode; - this.lastKnownValue = this.tweenInitialX; - this.lastKnownX = this.tweenInitialX; - this.lastKnownY = this.tweenInitialY; - if (this.forceInit) this.init(); - if (this.initial == "") this.initial = "current"; - this.onStarted = false; - this.onStartedDone = false; - this.onWaitEnd = false; - this.onWaitEndDone = false; - this.onEnd = false; - this.onEndDone = false; - this.onCooldown = false; - this.onCooldownDone = false; - if (this.active) { - this.init(); - } - }; - behinstProto.init = function () - { - this.onStarted = false; - if (this.initial === "") this.initial = "current"; - if (this.target === "") this.target = "current"; - var isCurrent = (this.initial === "current"); - var targetIsCurrent = (this.target === "current"); - var isTargettingObject = (this.target === "OBJ"); - if (this.target === "OBJ") { - if (this.targetObject != null) { - if (this.tweened == 0) { - if (this.coord_mode == 1) //relative mode - this.target = (this.targetObject.x-this.inst.x) + "," + (this.targetObject.y-this.inst.y); - else //absolute mode - this.target = (this.targetObject.x) + "," + (this.targetObject.y); - } else if ((this.tweened == 1) || (this.tweened == 2) || (this.tweened == 3) || (this.tweened == 7)) { - if (this.coord_mode == 1) { //relative mode - this.target = ((this.tweened==2)?1:(this.targetObject.width)) + "," + ((this.tweened==3)?1:(this.targetObject.height)); - } else { - this.target = ((this.tweened==2)?1:(this.targetObject.width/this.tweenSaveWidth)) + "," + ((this.tweened==3)?1:(this.targetObject.height/this.tweenSaveHeight)); - } - } else if (this.tweened == 4) { - if (this.coord_mode == 1) //relative mode - this.target = cr.to_degrees(this.targetObject.angle-this.inst.angle) + ""; - else //absolute mode - this.target = cr.to_degrees(this.targetObject.angle) + ""; - } else if (this.tweened == 5) { - if (this.coord_mode == 1) //relative mode - this.target = ((this.targetObject.opacity-this.inst.opacity)*100) + ""; - else //absolute mode - this.target = (this.targetObject.opacity*100) + ""; - } - } - } - if (this.tweened == 0) { - if (targetIsCurrent) this.target = this.inst.x + "," + this.inst.y; - if (!isCurrent) { - if (!this.reverse) { - if (this.playmode != 1) { - this.inst.x = parseFloat(this.initial.split(",")[0]); - this.inst.y = parseFloat(this.initial.split(",")[1]); - } - } - } else { - if (this.coord_mode == 1) { - this.initial = this.inst.x + "," + this.inst.y; - } else { - this.initial = this.tweenSaveX + "," + this.tweenSaveY; - } - } - if (this.coord_mode == 1) { - if (this.loop) { - this.inst.x = this.tweenSaveX; - this.inst.y = this.tweenSaveY; - } - this.initialX = this.inst.x; - this.initialY = this.inst.y; - if (!this.reverse) { - this.targetX = parseFloat(this.target.split(",")[0]); - this.targetY = parseFloat(this.target.split(",")[1]); - } else { - this.targetX = -parseFloat(this.target.split(",")[0]); - this.targetY = -parseFloat(this.target.split(",")[1]); - } - this.tweenInitialX = this.initialX; - this.tweenInitialY = this.initialY; - this.tweenTargetX = this.tweenInitialX + this.targetX; - this.tweenTargetY = this.tweenInitialY + this.targetY; - } else { - if (!this.reverse) { - this.inst.x = this.tweenSaveX; - this.inst.y = this.tweenSaveY; - this.targetX = parseFloat(this.target.split(",")[0]); - this.targetY = parseFloat(this.target.split(",")[1]); - } else { - this.inst.x = parseFloat(this.target.split(",")[0]); - this.inst.y = parseFloat(this.target.split(",")[1]); - this.targetX = this.tweenSaveX; - this.targetY = this.tweenSaveY; - } - this.initialX = this.inst.x; - this.initialY = this.inst.y; - this.tweenInitialX = this.initialX; - this.tweenInitialY = this.initialY; - this.tweenTargetX = this.targetX; - this.tweenTargetY = this.targetY; - if (this.playmode == -6) { - this.tweenTargetX = this.tweenSaveX; - this.tweenTargetY = this.tweenSaveY; - } - } - } else if ((this.tweened == 1) || (this.tweened == 2) || (this.tweened == 3)) { - if (targetIsCurrent) this.target = "1,1"; - if (this.initial == "current") this.initial = "1,1"; - this.initial = "" + this.initial; - this.target = "" + this.target; - if (this.tweened == 2) { - if (this.initial.indexOf(',') == -1) this.initial = parseFloat(this.initial) + ",1"; - if (this.target.indexOf(',') == -1) this.target = parseFloat(this.target) + ",1"; - } else if (this.tweened == 3) { - if (this.initial.indexOf(',') == -1) this.initial = "1," + parseFloat(this.initial); - if (this.target.indexOf(',') == -1) this.target = "1," + parseFloat(this.target); - } else { - if (this.initial.indexOf(',') == -1) this.initial = parseFloat(this.initial) + "," + parseFloat(this.initial); - if (this.target.indexOf(',') == -1) this.target = parseFloat(this.target) + "," + parseFloat(this.target); - } - var ix = parseFloat(this.initial.split(",")[0]); - var iy = parseFloat(this.initial.split(",")[1]); - this.doTweenX = true; - var tx = parseFloat(this.target.split(",")[0]); - if ((tx == 0) || (isNaN(tx))) this.doTweenX = false; - if (this.tweened == 3) this.doTweenX = false; - this.doTweenY = true; - var ty = parseFloat(this.target.split(",")[1]); - if ((ty == 0) || (isNaN(ty))) this.doTweenY = false; - if (this.tweened == 2) this.doTweenY = false; - if (this.coord_mode == 1) { - if (this.loop) { - this.inst.width = this.tweenSaveWidth; - this.inst.height = this.tweenSaveHeight; - } - if (!isCurrent) { - if (!this.reverse) { - this.inst.width = this.inst.width * ix; - this.inst.height = this.inst.height * iy; - } else { - this.inst.width = this.inst.width * tx; - this.inst.height = this.inst.height * ty; - } - } - this.initialX = this.inst.width; - this.initialY = this.inst.height; - this.tweenInitialX = this.initialX; - this.tweenInitialY = this.initialY; - if (!this.reverse) { - this.targetX = this.initialX * tx; - this.targetY = this.initialY * ty; - } else { - this.targetX = this.initialX * ix/tx; - this.targetY = this.initialY * iy/ty; - } - this.tweenTargetX = this.targetX; - this.tweenTargetY = this.targetY; - } else { - if (!isCurrent) { - if (!this.reverse) { - this.inst.width = this.tweenSaveWidth * ix; - this.inst.height = this.tweenSaveHeight * iy; - } else { - this.inst.width = this.tweenSaveWidth * tx; - this.inst.height = this.tweenSaveHeight * ty; - } - } - this.initialX = this.inst.width; - this.initialY = this.inst.height; - this.tweenInitialX = this.initialX; - this.tweenInitialY = this.initialY; - if (!this.reverse) { - this.targetX = this.tweenSaveWidth * tx; - this.targetY = this.tweenSaveHeight * ty; - } else { - this.targetX = this.tweenSaveWidth * ix; - this.targetY = this.tweenSaveHeight * iy; - } - this.tweenTargetX = this.targetX; - this.tweenTargetY = this.targetY; - } - if (this.playmode == -6) { - this.tweenTargetX = this.tweenSaveWidth * ix; - this.tweenTargetY = this.tweenSaveHeight * iy; - } - } else if (this.tweened == 4) { - if (targetIsCurrent) this.target = cr.to_degrees(this.inst.angle); - if (this.initial != "current") { - if (!this.reverse) { - if (this.playmode != 1) { //if repeat, don't initialize - this.inst.angle = cr.to_radians(parseFloat(this.initial.split(",")[0])); - } - } - } - if (this.coord_mode == 1) { - if (this.loop) { - this.inst.angle = this.tweenSaveAngle; - } - this.initialX = this.inst.angle; - if (this.reverse) { - this.targetX = this.inst.angle - cr.to_radians(parseFloat(this.target.split(",")[0])); - } else { - this.targetX = this.inst.angle + cr.to_radians(parseFloat(this.target.split(",")[0])); - } - this.tweenInitialX = this.initialX; - this.tweenTargetX = cr.to_degrees(this.targetX); - } else { - if (this.reverse) { - this.inst.angle = cr.to_radians(parseFloat(this.target.split(",")[0]));; - this.initialX = this.inst.angle; - this.targetX = this.tweenSaveAngle; - this.tweenInitialX = this.initialX; - this.tweenTargetX = cr.to_degrees(this.targetX); - } else { - this.inst.angle = this.tweenSaveAngle; - this.initialX = this.inst.angle; - this.targetX = cr.to_radians(parseFloat(this.target.split(",")[0])); - this.tweenInitialX = this.initialX; - this.tweenTargetX = cr.to_degrees(this.targetX); - } - } - if (this.playmode == -6) { - this.tweenTargetX = cr.to_degrees(this.tweenSaveAngle); - } - this.tweenTargetAngle = cr.to_radians(this.tweenTargetX); - } else if (this.tweened == 5) { - if (this.initial == "current") this.initial = this.inst.opacity; - if (targetIsCurrent) this.target = ""+this.inst.opacity; - if (!isCurrent) { - if (!this.reverse) { - if (this.playmode != 1) { //if repeat, don't initialize - this.inst.opacity = parseFloat(this.initial.split(",")[0]) / 100; - } - } - } - if (this.coord_mode == 1) { - if (this.loop) { - this.inst.opacity = this.tweenSaveOpacity; - } - this.initialX = this.inst.opacity; - this.tweenInitialX = this.initialX; - if (!this.reverse) { - this.targetX = parseFloat(this.target.split(",")[0]) / 100; - } else { - this.targetX = -parseFloat(this.target.split(",")[0]) / 100; - } - this.tweenTargetX = this.tweenInitialX + this.targetX; - } else { - this.initialX = this.inst.opacity; - if (!this.reverse) { - this.tweenInitialX = this.initialX; - this.targetX = parseFloat(this.target.split(",")[0]) / 100; - } else { - this.tweenInitialX = parseFloat(this.target.split(",")[0]) / 100; - this.targetX = parseFloat(this.initial.split(",")[0]) / 100; - } - this.tweenTargetX = this.targetX; - } - if (this.playmode == -6) { - this.tweenTargetX = this.tweenSaveOpacity; - } - } else if (this.tweened == 6) { - if (isNaN(this.value)) this.value = 0; - if (this.initial == "current") this.initial = ""+this.value; - if (targetIsCurrent) this.target = ""+this.value; - if (!isCurrent) { - if (!this.reverse) { - if (this.playmode != 1) { //if repeat, don't initialize - this.value = parseFloat(this.initial.split(",")[0]); - } - } - } - if (this.coord_mode == 1) { - if (this.loop) { - this.value = this.tweenSaveValue; - } - if (!isCurrent) { - if (!this.reverse) { - this.value = parseFloat(this.initial.split(",")[0]); - } else { - this.value = parseFloat(this.target.split(",")[0]); - } - } - this.initialX = this.value; - if (!this.reverse) { - this.targetX = this.initialX + parseFloat(this.target.split(",")[0]); - } else { - this.targetX = this.initialX - parseFloat(this.target.split(",")[0]); - } - this.tweenInitialX = this.initialX; - this.tweenTargetX = this.targetX; - } else { - if (!isCurrent) { - if (!this.reverse) { - this.value = parseFloat(this.initial.split(",")[0]); - } else { - this.value = parseFloat(this.target.split(",")[0]); - } - } - this.initialX = this.value; - if (!this.reverse) { - this.targetX = parseFloat(this.target.split(",")[0]); - } else { - this.targetX = parseFloat(this.initial.split(",")[0]); - } - this.tweenInitialX = this.initialX; - this.tweenTargetX = this.targetX; - } - if (this.playmode == -6) { - this.tweenTargetX = this.tweenSaveValue; - } - } else if (this.tweened == 7) { - if (targetIsCurrent) this.target = this.inst.width + "," + this.inst.height; - if (this.initial != "current") { - if (!this.reverse) { - if (this.playmode != 1) { //if repeat, don't initialize - this.inst.width = parseFloat(this.initial.split(",")[0]); - this.inst.height = parseFloat(this.initial.split(",")[1]); - } - } - } - this.doTweenX = true; - var tx = parseFloat(this.target.split(",")[0]); - if ((tx < 0) || (isNaN(tx))) this.doTweenX = false; - this.doTweenY = true; - var ty = parseFloat(this.target.split(",")[1]); - if ((ty < 0) || (isNaN(ty))) this.doTweenY = false; - if (this.coord_mode == 1) { - if (this.loop) { - this.inst.width = this.tweenSaveWidth; - this.inst.height = this.tweenSaveHeight; - } - this.initialX = this.inst.width; - this.initialY = this.inst.height; - if (!this.reverse) { - this.targetX = this.initialX + parseFloat(this.target.split(",")[0]); - this.targetY = this.initialY + parseFloat(this.target.split(",")[1]); - } else { - this.targetX = this.initialX - parseFloat(this.target.split(",")[0]); - this.targetY = this.initialY - parseFloat(this.target.split(",")[1]); - } - this.tweenInitialX = this.initialX; - this.tweenInitialY = this.initialY; - this.tweenTargetX = this.targetX; - this.tweenTargetY = this.targetY; - } else { - if (!isCurrent) { - if (!this.reverse) { - this.inst.width = this.tweenSaveWidth; - this.inst.height = this.tweenSaveHeight; - } else { - this.inst.width = parseFloat(this.target.split(",")[0]); - this.inst.height = parseFloat(this.target.split(",")[1]); - } - } - this.initialX = this.inst.width; - this.initialY = this.inst.height; - if (!this.reverse) { - this.targetX = parseFloat(this.target.split(",")[0]); - this.targetY = parseFloat(this.target.split(",")[1]); - } else { - this.targetX = this.tweenSaveWidth; - this.targetY = this.tweenSaveHeight; - } - this.tweenInitialX = this.initialX; - this.tweenInitialY = this.initialY; - this.tweenTargetX = this.targetX; - this.tweenTargetY = this.targetY; - } - if (this.playmode == -6) { - this.tweenTargetX = this.tweenSaveWidth; - this.tweenTargetY = this.tweenSaveHeight; - } - } else { -; - } - this.lastKnownValue = this.tweenInitialX; - this.lastKnownX = this.tweenInitialX; - this.lastKnownY = this.tweenInitialY; - this.initiating = parseFloat(this.wait.split(",")[0]); - this.cooldown = parseFloat(this.wait.split(",")[1]); - if ((this.initiating < 0) || (isNaN(this.initiating))) this.initiating = 0; - if ((this.cooldown < 0) || (isNaN(this.cooldown))) this.cooldown = 0; - if (isCurrent) this.initial = "current"; - if (targetIsCurrent) this.target = "current"; - if (isTargettingObject) this.target = "OBJ"; - }; - function easeOutBounce(t,b,c,d) { - if ((t/=d) < (1/2.75)) { - return c*(7.5625*t*t) + b; - } else if (t < (2/2.75)) { - return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; - } else if (t < (2.5/2.75)) { - return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; - } else { - return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; - } - } - behinstProto.easeFunc = function (t, b, c, d) - { - switch (this.easing) { - case 0: // linear - return c*t/d + b; - case 1: // easeInQuad - return c*(t/=d)*t + b; - case 2: // easeOutQuad - return -c *(t/=d)*(t-2) + b; - case 3: // easeInOutQuad - if ((t/=d/2) < 1) return c/2*t*t + b; - return -c/2 * ((--t)*(t-2) - 1) + b; - case 4: // easeInCubic - return c*(t/=d)*t*t + b; - case 5: // easeOutCubic - return c*((t=t/d-1)*t*t + 1) + b; - case 6: // easeInOutCubic - if ((t/=d/2) < 1) - return c/2*t*t*t + b; - return c/2*((t-=2)*t*t + 2) + b; - case 7: // easeInQuart - return c*(t/=d)*t*t*t + b; - case 8: // easeOutQuart - return -c * ((t=t/d-1)*t*t*t - 1) + b; - case 9: // easeInOutQuart - if ((t/=d/2) < 1) return c/2*t*t*t*t + b; - return -c/2 * ((t-=2)*t*t*t - 2) + b; - case 10: // easeInQuint - return c*(t/=d)*t*t*t*t + b; - case 11: // easeOutQuint - return c*((t=t/d-1)*t*t*t*t + 1) + b; - case 12: // easeInOutQuint - if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; - return c/2*((t-=2)*t*t*t*t + 2) + b; - case 13: // easeInCircle - return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; - case 14: // easeOutCircle - return c * Math.sqrt(1 - (t=t/d-1)*t) + b; - case 15: // easeInOutCircle - if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; - return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; - case 16: // easeInBack - var s = 0; - if (s==0) s = 1.70158; - return c*(t/=d)*t*((s+1)*t - s) + b; - case 17: // easeOutBack - var s = 0; - if (s==0) s = 1.70158; - return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; - case 18: // easeInOutBack - var s = 0; - if (s==0) s = 1.70158; - if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; - return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; - case 19: //easeInElastic - var a = 0; - var p = 0; - if (t==0) return b; if ((t/=d)==1) return b+c; if (p==0) p=d*.3; - if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - case 20: //easeOutElastic - var a = 0; - var p = 0; - if (t==0) return b; if ((t/=d)==1) return b+c; if (p == 0) p=d*.3; - if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return (a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b); - case 21: //easeInOutElastic - var a = 0; - var p = 0; - if (t==0) return b; - if ((t/=d/2)==2) return b+c; - if (p==0) p=d*(.3*1.5); - if (a==0 || a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; - case 22: //easeInBounce - return c - easeOutBounce(d-t, 0, c, d) + b; - case 23: //easeOutBounce - return easeOutBounce(t,b,c,d); - case 24: //easeInOutBounce - if (t < d/2) return (c - easeOutBounce(d-(t*2), 0, c, d) + b) * 0.5 +b; - else return easeOutBounce(t*2-d, 0, c, d) * .5 + c*.5 + b; - case 25: //easeInSmoothstep - var mt = (t/d) / 2; - return (2*(mt * mt * (3 - 2*mt))); - case 26: //easeOutSmoothstep - var mt = ((t/d) + 1) / 2; - return ((2*(mt * mt * (3 - 2*mt))) - 1); - case 27: //easeInOutSmoothstep - var mt = (t / d); - return (mt * mt * (3 - 2*mt)); - }; - return 0; - }; - behinstProto.saveToJSON = function () - { - return { - "i": this.i, - "active": this.active, - "tweened": this.tweened, - "easing": this.easing, - "initial": this.initial, - "target": this.target, - "duration": this.duration, - "wait": this.wait, - "playmode": this.playmode, - "value": this.value, - "coord_mode": this.coord_mode, - "forceInit": this.forceInit, - "group": this.group, - "targetObject": this.targetObject, - "pingpongCounter": this.pingpongCounter, - "isPaused": this.isPaused, - "initialX": this.initialX, - "initialY": this.initialY, - "targetX": this.targetX, - "targetY": this.targetY, - "tweenSaveWidth": this.tweenSaveWidth, - "tweenSaveHeight": this.tweenSaveHeight, - "tweenSaveAngle": this.tweenSaveAngle, - "tweenSaveX": this.tweenSaveX, - "tweenSaveY": this.tweenSaveY, - "tweenSaveValue": this.tweenSaveValue, - "tweenInitialX": this.tweenInitialX, - "tweenInitialY": this.tweenInitialY, - "tweenTargetX": this.tweenTargetX, - "tweenTargetY": this.tweenTargetY, - "tweenTargetAngle": this.tweenTargetAngle, - "ratio": this.ratio, - "reverse": this.reverse, - "rewindMode": this.rewindMode, - "doTweenX": this.doTweenX, - "doTweenY": this.doTweenY, - "loop": this.loop, - "initiating": this.initiating, - "cooldown": this.cooldown, - "lastPlayMode": this.lastPlayMode, - "lastKnownValue": this.lastKnownValue, - "lastKnownX": this.lastKnownX, - "lastKnownY": this.lastKnownY, - "onStarted": this.onStarted, - "onStartedDone": this.onStartedDone, - "onWaitEnd": this.onWaitEnd, - "onWaitEndDone": this.onWaitEndDone, - "onEnd": this.onEnd, - "onEndDone": this.onEndDone, - "onCooldown": this.onCooldown, - "onCooldownDone": this.onCooldownDone - }; - }; - behinstProto.loadFromJSON = function (o) - { - this.i = o["i"]; - this.active = o["active"]; - this.tweened = o["tweened"]; - this.easing = o["easing"]; - this.initial = o["initial"]; - this.target = o["target"]; - this.duration = o["duration"]; - this.wait = o["wait"]; - this.playmode = o["playmode"]; - this.value = o["value"]; - this.coord_mode = o["coord_mode"]; - this.forceInit = o["forceInit"]; - this.group = o["group"]; - this.targetObject = o["targetObject"]; - this.pingpongCounter = o["pingpongCounter"]; - this.isPaused = o["isPaused"]; - this.initialX = o["initialX"]; - this.initialY = o["initialY"]; - this.targetX = o["targetX"]; - this.targetY = o["targetY"]; - this.tweenSaveWidth = o["tweenSaveWidth"]; - this.tweenSaveHeight = o["tweenSaveHeight"]; - this.tweenSaveAngle = o["tweenSaveAngle"]; - this.tweenSaveX = o["tweenSaveX"]; - this.tweenSaveY = o["tweenSaveY"]; - this.tweenSaveValue = o["tweenSaveValue"]; - this.tweenInitialX = o["tweenInitialX"]; - this.tweenInitialY = o["tweenInitialY"]; - this.tweenTargetX = o["tweenTargetX"]; - this.tweenTargetY = o["tweenTargetY"]; - this.tweenTargetAngle = o["tweenTargetAngle"]; - this.ratio = o["ratio"]; - this.reverse = o["reverse"]; - this.rewindMode = o["rewindMode"]; - this.doTweenX = o["doTweenX"]; - this.doTweenY = o["doTweenY"]; - this.loop = o["loop"]; - this.initiating = o["initiating"]; - this.cooldown = o["cooldown"]; - this.lastPlayMode = o["lastPlayMode"]; - this.lastKnownValue = o["lastKnownValue"]; - this.lastKnownX = o["lastKnownX"]; - this.lastKnownY = o["lastKnownY"]; - this.onStarted = o["onStarted"]; - this.onStartedDone = o["onStartedDone"]; - this.onWaitEnd = o["onWaitEnd"]; - this.onWaitEndDone = o["onWaitEndDone"] - this.onEnd = o["onEnd"]; - this.onEndDone = o["onEndDone"]; - this.onCooldown = o["onCooldown"]; - this.onCooldownDone = o["onCooldownDone"]; - this.groupSync(); - }; - behinstProto.tick = function () - { - var dt = this.runtime.getDt(this.inst); - var isForceStop = (this.i == -1); - if (!this.active || dt === 0) - return; - if (this.i == 0) { - if (!this.onStarted) { - this.onStarted = true; - this.onStartedDone = false; - this.onWaitEnd = false; - this.onWaitEndDone = false; - this.onEnd = false; - this.onEndDone = false; - this.onCooldown = false; - this.onCooldownDone = false; - this.runtime.trigger(cr.behaviors.lunarray_Tween.prototype.cnds.OnStart, this.inst); - this.onStartedDone = true; - } - } - if (this.i == -1) { - this.i = this.initiating + this.duration + this.cooldown; - } else { - this.i += dt; - } - if (this.i <= this.initiating) { - return; - } else { - if (this.onWaitEnd == false) { - this.onWaitEnd = true; - this.runtime.trigger(cr.behaviors.lunarray_Tween.prototype.cnds.OnWaitEnd, this.inst); - this.onWaitEndDone = true; - } - } - if (this.i <= (this.duration + this.initiating)) { - var factor = this.easeFunc(this.i-this.initiating, 0, 1, this.duration); - if (this.tweened == 0) { - if (this.coord_mode == 1) { - if (this.inst.x !== this.lastKnownX) { - this.tweenInitialX += (this.inst.x - this.lastKnownX); - this.tweenTargetX += (this.inst.x - this.lastKnownX); - } - if (this.inst.y !== this.lastKnownY) { - this.tweenInitialY += (this.inst.y - this.lastKnownY); - this.tweenTargetY += (this.inst.y - this.lastKnownY); - } - } else { - if (this.inst.x !== this.lastKnownX) - this.tweenInitialX += (this.inst.x - this.lastKnownX); - if (this.inst.y !== this.lastKnownY) - this.tweenInitialY += (this.inst.y - this.lastKnownY); - } - this.inst.x = this.tweenInitialX + (this.tweenTargetX - this.tweenInitialX) * factor; - this.inst.y = this.tweenInitialY + (this.tweenTargetY - this.tweenInitialY) * factor; - this.lastKnownX = this.inst.x; - this.lastKnownY = this.inst.y; - } else if ((this.tweened == 1) || (this.tweened == 2) || (this.tweened == 3)) { - if (this.inst.width !== this.lastKnownX) - this.tweenInitialX = this.inst.width; - if (this.inst.height !== this.lastKnownY) - this.tweenInitialY = this.inst.height; - if (this.doTweenX) { - this.inst.width = this.tweenInitialX + (this.tweenTargetX - this.tweenInitialX) * factor; - } - if (this.doTweenY) { - this.inst.height = this.tweenInitialY + (this.tweenTargetY - this.tweenInitialY) * factor; - } else { - if (this.tweened == 1) { - this.inst.height = this.inst.width * this.ratio; - } - } - this.lastKnownX = this.inst.width; - this.lastKnownY = this.inst.height; - } else if (this.tweened == 4) { - var tangle = this.tweenInitialX + (this.tweenTargetAngle - this.tweenInitialX) * factor; - if (this.i >= (this.duration + this.initiating)) - tangle = this.tweenTargetAngle; - this.inst.angle = cr.clamp_angle(tangle); - } else if (this.tweened == 5) { - if (this.coord_mode == 1) { - if (this.inst.opacity !== this.lastKnownX) - this.tweenInitialX = this.inst.opacity; - } - this.inst.opacity = this.tweenInitialX + (this.tweenTargetX - this.tweenInitialX) * factor; - this.lastKnownX = this.inst.opacity; - } else if (this.tweened == 6) { - this.value = this.tweenInitialX + (this.tweenTargetX - this.tweenInitialX) * factor; - } else if (this.tweened == 7) { - if (this.coord_mode == 1) { - if (this.inst.width !== this.lastKnownX) - this.tweenInitialX = this.inst.width; - if (this.inst.height !== this.lastKnownY) - this.tweenInitialY = this.inst.height; - } - if (this.doTweenX) this.inst.width = this.tweenInitialX + (this.tweenTargetX - this.tweenInitialX) * factor; - if (this.doTweenY) this.inst.height = this.tweenInitialY + (this.tweenTargetY - this.tweenInitialY) * factor; - this.lastKnownX = this.inst.width; - this.lastKnownY = this.inst.height; - } - this.inst.set_bbox_changed(); - } - if (this.i >= this.duration + this.initiating) { - this.doEndFrame(isForceStop); - this.inst.set_bbox_changed(); - if (this.onEnd == false) { - this.onEnd = true; - this.runtime.trigger(cr.behaviors.lunarray_Tween.prototype.cnds.OnEnd, this.inst); - this.onEndDone = true; - } - }; - }; - behinstProto.doEndFrame = function (isForceStop) - { - switch (this.tweened) { - case 0: // position - this.inst.x = this.tweenTargetX; - this.inst.y = this.tweenTargetY; - break; - case 1: // size - if (this.doTweenX) this.inst.width = this.tweenTargetX; - if (this.doTweenY) { - this.inst.height = this.tweenTargetY; - } else { - this.inst.height = this.inst.width * this.ratio; - } - break; - case 2: // width - this.inst.width = this.tweenTargetX; - break; - case 3: // height - this.inst.height = this.tweenTargetY; - break; - case 4: // angle - var tangle = this.tweenTargetAngle; - this.inst.angle = cr.clamp_angle(tangle); - this.lastKnownValue = this.inst.angle; - break; - case 5: // opacity - this.inst.opacity = this.tweenTargetX; - break; - case 6: // value - this.value = this.tweenTargetX; - break; - case 7: // size - if (this.doTweenX) this.inst.width = this.tweenTargetX; - if (this.doTweenY) this.inst.height = this.tweenTargetY; - break; - } - if (this.i >= this.duration + this.initiating + this.cooldown) { - if (this.playmode == 0) { - this.active = false; - this.reverse = false; - this.i = this.duration + this.initiating + this.cooldown; - } else if (this.playmode == 1) { - this.i = 0; - this.init(); - this.active = true; - } else if (this.playmode == 2) { - if (isForceStop) { - this.reverse = false; - this.init(); - } else { - this.reverse = !this.reverse; - this.i = 0; - this.init(); - this.active = true; - } - } else if (this.playmode == 3) { - this.runtime.DestroyInstance(this.inst); - } else if (this.playmode == 4) { - this.loop = true; - this.i = 0; - this.init(); - this.active = true; - } else if (this.playmode == 5) { - if (isForceStop) { - this.reverse = false; - this.init(); - } else { - if (this.pingpongCounter <= 0) { - this.i = this.duration + this.initiating + this.cooldown; - this.active = false; - } else { - if (!this.reverse) { - this.pingpongCounter -= 1; - this.reverse = true; - this.i = 0; - this.init(); - this.active = true; - } else { - this.pingpongCounter -= 1; - this.reverse = false; - this.i = 0; - this.init(); - this.active = true; - } - } - } - } else if (this.playmode == -6) { - this.playmode = this.lastPlayMode; - this.reverse = false; - this.i = 0; - this.active = false; - } else if (this.playmode == 6) { - this.reverse = false; - this.i = this.duration + this.initiating + this.cooldown; - this.active = false; - } - } - if (this.onCooldown == false) { - this.onCooldown = true; - this.runtime.trigger(cr.behaviors.lunarray_Tween.prototype.cnds.OnCooldownEnd, this.inst); - this.onCooldownDone = true; - } - } - behaviorProto.cnds = {}; - var cnds = behaviorProto.cnds; - cnds.IsActive = function () - { - return this.active; - }; - cnds.CompareGroupProgress = function (cmp, v) - { - var x = []; - cr.lunarray_tweenGroup[this.group].forEach(function (value) { - x.push((value.i / (value.duration + value.initiating + value.cooldown))); - } ); - return cr.do_cmp( Math.min.apply(null, x), cmp, v ); - } - cnds.CompareProgress = function (cmp, v) - { - return cr.do_cmp((this.i / (this.duration + this.initiating + this.cooldown)), cmp, v); - }; - cnds.OnStart = function () - { - if (this.onStartedDone === false) { - return this.onStarted; - } - }; - cnds.OnWaitEnd = function () - { - if (this.onWaitEndDone === false) { - return this.onWaitEnd; - } - }; - cnds.OnEnd = function (a, b, c) - { - if (this.onEndDone === false) { - return this.onEnd; - } - }; - cnds.OnCooldownEnd = function () - { - if (this.onCooldownDone === false) { - return this.onCooldown; - } - }; - behaviorProto.acts = {}; - var acts = behaviorProto.acts; - acts.SetActive = function (a) - { - this.active = (a === 1); - }; - acts.StartGroup = function (force, sgroup) - { - if (sgroup === "") sgroup = this.group; - var groupReady = (force === 1) || cr.lunarray_tweenGroup[sgroup].every(function(value2) { return !value2.active; } ); - if ( groupReady ) { - cr.lunarray_tweenGroup[sgroup].forEach( - function(value) { - if (force === 1) { - acts.Force.apply(value); - } else { - acts.Start.apply(value); - } - } - ); - } - } - acts.StopGroup = function (stopmode, sgroup) - { - if (sgroup === "") sgroup = this.group; - cr.lunarray_tweenGroup[sgroup].forEach( function(value) { - acts.Stop.apply(value, [stopmode]); - } ); - } - acts.ReverseGroup = function (force, rewindMode, sgroup) - { - if (sgroup === "") sgroup = this.group; - var groupReady = (force === 1) || cr.lunarray_tweenGroup[sgroup].every(function(value2) { return !value2.active; } ); - if ( groupReady ) { - cr.lunarray_tweenGroup[sgroup].forEach( - function(value) { - if (force === 1) { - acts.ForceReverse.apply(value, [rewindMode]); - } else { - acts.Reverse.apply(value, [rewindMode]); - } - } - ); - } - } - acts.Force = function () - { - this.loop = (this.playmode === 4); - if (this.playmode == 5) this.pingpongCounter = 1; - if ((this.playmode == 6) || (this.playmode == -6)) { - if (this.i < this.duration + this.cooldown + this.initiating) { - this.reverse = false; - this.init(); - this.active = true; - } - } else { - this.reverse = false; - this.i = 0; - this.init(); - this.active = true; - } - }; - acts.ForceReverse = function (rewindMode) - { - this.rewindMode = (rewindMode == 1); - this.loop = (this.playmode === 4); - if (this.playmode == 5) this.pingpongCounter = 1; - if ((this.playmode == 6) || (this.playmode == -6)) { - if (this.i < this.duration + this.cooldown + this.initiating) { - this.reverse = true; - this.init(); - this.active = true; - } - } else { - if (rewindMode) { - if (this.pingpongCounter == 1) { - if (this.i >= this.duration + this.cooldown + this.initiating) { - this.reverse = true; - this.i = 0; - this.pingpongCounter = 2; - this.init(); - this.active = true; - } - } - } else { - this.reverse = true; - this.i = 0; - this.init(); - this.active = true; - } - } - }; - acts.Start = function () - { - if (!this.active) { - this.loop = (this.playmode === 4); - if (this.playmode == 5) this.pingpongCounter = 1; - if ((this.playmode == 6) || (this.playmode == -6)) { - if (this.i < this.duration + this.cooldown + this.initiating) { - this.reverse = false; - this.init(); - this.active = true; - } - } else { - this.pingpongCounter = 1; - this.reverse = false; - this.i = 0; - this.init(); - this.active = true; - } - } - }; - acts.Stop = function (stopmode) - { - if (this.active) { - if ((this.playmode == 2) || (this.playmode == 4)) { - if (this.reverse) { - this.i = 0; - } else { - this.i = -1; - } - } else { - if (stopmode == 1) { - this.saveState(); - } else if (stopmode == 0) { - this.i = this.initiating + this.cooldown + this.duration; - } else { - this.i = 0; - } - } - this.tick(); - this.active = false; - } - }; - acts.Pause = function () { - if (this.active) { - this.isPaused = true; - this.active = false; - } - } - acts.Resume = function () { - if (this.isPaused) { - this.active = true; - this.isPaused = false; - } else { - if (!this.active) { - this.reverse = false; - this.i = 0; - this.init(); - this.active = true; - } - } - } - acts.Reverse = function (rewindMode) - { - this.rewindMode = (rewindMode == 1); - if (!this.active) { - this.loop = (this.playmode === 4); - if (this.playmode == 5) this.pingpongCounter = 1; - if ((this.playmode == 6) || (this.playmode == -6)) { - if (this.i < this.duration + this.cooldown + this.initiating) { - this.reverse = true; - this.init(); - this.active = true; - } - } else { - if (rewindMode) { - if (this.pingpongCounter == 1) { - if (this.i >= this.duration + this.cooldown + this.initiating) { - this.reverse = true; - this.i = 0; - this.pingpongCounter = 2; - this.init(); - this.active = true; - } - } - } else { - this.reverse = true; - this.i = 0; - this.init(); - this.active = true; - } - } - } - }; - acts.SetDuration = function (x) - { - this.duration = x; - }; - acts.SetWait = function (x) - { - this.wait = x; - this.initiating = parseFloat(this.wait.split(",")[0]); - this.cooldown = parseFloat(this.wait.split(",")[1]); - if ((this.initiating < 0) || (isNaN(this.initiating))) this.initiating = 0; - if ((this.cooldown < 0) || (isNaN(this.cooldown))) this.cooldown = 0; - }; - acts.SetTarget = function (x) - { - if (typeof(x) == "string") { - this.target = x; - this.targetX = parseFloat(x.split(",")[0]); - this.targetY = parseFloat(x.split(",")[1]); - } else { - this.target = x; - this.targetX = x; - } - if (!this.active) { - this.init(); - } else { - } - }; - acts.SetTargetObject = function (obj) - { - if (!obj) - return; - var otherinst = obj.getFirstPicked(); - if (!otherinst) - return; - this.targetObject = otherinst; - this.target = "OBJ"; - }; - acts.SetTargetX = function (x) - { - if ((this.tweened == 2) || (this.tweened == 3) || (this.tweened == 4) || (this.tweened == 5) || (this.tweened == 6)) { - if (typeof(x) == "string") { - this.target = parseFloat(x.split(",")[0]); - } else { - this.target = ""+x+","+this.targetY; - } - this.targetX = this.target; - } else { - var currY = this.target.split(",")[1]; - this.target = String(x) + "," + currY; - this.targetX = parseFloat(this.target.split(",")[0]); - this.targetY = parseFloat(this.target.split(",")[1]); - } - if (!this.active) { - this.saveState(); - this.init(); - } else { - } - }; - acts.SetTargetY = function (x) - { - if ((this.tweened == 2) || (this.tweened == 3) || (this.tweened == 4) || (this.tweened == 5) || (this.tweened == 6)) { - if (typeof(x) == "string") { - this.target = parseFloat(x)+""; - } else { - this.target = this.targetX+","+x; - } - this.targetX = this.target; - } else { - var currX = this.target.split(",")[0]; - this.target = currX + "," + String(x); - this.targetX = parseFloat(this.target.split(",")[0]); - this.targetY = parseFloat(this.target.split(",")[1]); - } - if (!this.active) { - this.saveState(); - this.init(); - } else { - } - }; - acts.SetInitial = function (x) - { - if (typeof(x) == "string") { - this.initial = x; - this.initialX = parseFloat(x.split(",")[0]); - this.initialY = parseFloat(x.split(",")[1]); - } else { - this.initial = ""+x; - this.initialX = x; - } - if (this.tweened == 6) { - this.value = this.initialX; - } - if (!this.active) { - this.saveState(); - this.init(); - } else { - } - }; - acts.SetInitialX = function (x) - { - if ((this.tweened == 2) || (this.tweened == 3) || (this.tweened == 4) || (this.tweened == 5) || (this.tweened == 6)) { - if (typeof(x) == "string") { - this.initial = parseFloat(x); - } else { - this.initial = ""+x+","+this.initialY; - } - this.initialX = this.initial; - } else { - if (this.initial == "") this.initial = "current"; - if (this.initial == "current") { - var currY = this.tweenSaveY; - } else { - var currY = this.initial.split(",")[1]; - } - this.initial = String(x) + "," + currY; - this.initialX = parseFloat(this.initial.split(",")[0]); - this.initialY = parseFloat(this.initial.split(",")[1]); - } - if (this.tweened == 6) { - this.value = this.initialX; - } - if (!this.active) { - this.saveState(); - this.init(); - } else { - } - }; - acts.SetInitialY = function (x) - { - if ((this.tweened == 2) || (this.tweened == 3) || (this.tweened == 4) || (this.tweened == 5) || (this.tweened == 6)) { - if (typeof(x) == "string") { - this.initial = parseFloat(x); - } else { - this.initial = ""+this.initialX+","+x; - } - this.initialX = this.initial; - } else { - if (this.initial == "") this.initial = "current"; - if (this.initial == "current") { - var currX = this.tweenSaveX; - } else { - var currX = this.initial.split(",")[0]; - } - this.initial = currX + "," + String(x); - this.initialX = parseFloat(this.initial.split(",")[0]); - this.initialY = parseFloat(this.initial.split(",")[1]); - } - if (!this.active) { - this.saveState(); - this.init(); - } else { - } - }; - acts.SetValue = function (x) - { - this.value = x; - }; - acts.SetTweenedProperty = function (m) - { - this.tweened = m; - }; - acts.SetEasing = function (w) - { - this.easing = w; - }; - acts.SetPlayback = function (x) - { - this.playmode = x; - }; - acts.SetParameter = function (tweened, playmode, easefunction, initial, target, duration, wait, cmode) - { - this.tweened = tweened; - this.playmode = playmode; - this.easing = easefunction; - acts.SetInitial.apply(this, [initial]); - acts.SetTarget.apply(this, [target]); - acts.SetDuration.apply(this, [duration]); - acts.SetWait.apply(this, [wait]); - this.coord_mode = cmode; - this.saveState(); - }; - behaviorProto.exps = {}; - var exps = behaviorProto.exps; - exps.Progress = function (ret) - { - ret.set_float(this.i / (this.duration + this.initiating + this.cooldown)); - }; - exps.ProgressTime = function (ret) - { - ret.set_float(this.i); - }; - exps.Duration = function (ret) - { - ret.set_float(this.duration); - }; - exps.Initiating = function (ret) - { - ret.set_float(this.initiating); - }; - exps.Cooldown = function (ret) - { - ret.set_float(this.cooldown); - }; - exps.Target = function (ret) - { - ret.set_string(this.target); - }; - exps.Value = function (ret) - { - ret.set_float(this.value); - }; - exps.isPaused = function (ret) - { - ret.set_int(this.isPaused ? 1: 0); - }; -}()); cr.getObjectRefTable = function () { return [ + cr.plugins_.SenaPlugin, + cr.plugins_.Sprite, + cr.plugins_.Touch, cr.plugins_.Audio, cr.plugins_.Browser, cr.plugins_.Function, - cr.plugins_.SenaPlugin, - cr.plugins_.Sprite, - cr.plugins_.SpriteFontPlus, - cr.plugins_.Touch, - cr.plugins_.video, cr.behaviors.Pin, cr.behaviors.Fade, - cr.behaviors.DragnDrop, cr.behaviors.Rotate, cr.behaviors.Rex_Rotate, cr.behaviors.lunarray_LiteTween, cr.behaviors.Rex_MoveTo, - cr.behaviors.lunarray_Tween, - cr.behaviors.Flash, cr.behaviors.Sin, cr.system_object.prototype.cnds.OnLayoutStart, cr.plugins_.SenaPlugin.prototype.acts.Load, cr.behaviors.Pin.prototype.acts.Pin, cr.plugins_.Sprite.prototype.acts.SetSize, cr.plugins_.Sprite.prototype.acts.Destroy, - cr.plugins_.Sprite.prototype.acts.SetInstanceVar, - cr.plugins_.Sprite.prototype.exps.X, - cr.plugins_.Sprite.prototype.exps.Y, - cr.plugins_.Sprite.prototype.acts.SetPos, - cr.system_object.prototype.acts.SetLayerVisible, + cr.plugins_.Audio.prototype.acts.Play, cr.system_object.prototype.cnds.ForEach, cr.system_object.prototype.acts.Wait, cr.plugins_.Sprite.prototype.acts.SetAngle, @@ -27511,37 +24400,34 @@ cr.getObjectRefTable = function () { return [ cr.plugins_.Sprite.prototype.acts.SetOpacity, cr.system_object.prototype.cnds.EveryTick, cr.behaviors.Rex_Rotate.prototype.cnds.CompareSpeed, + cr.plugins_.Audio.prototype.acts.Stop, cr.plugins_.Sprite.prototype.cnds.IsOverlapping, cr.plugins_.Audio.prototype.cnds.IsAnyPlaying, - cr.plugins_.Audio.prototype.acts.Play, cr.system_object.prototype.cnds.Compare, + cr.plugins_.Sprite.prototype.exps.Y, cr.system_object.prototype.cnds.TriggerOnce, cr.plugins_.Function.prototype.acts.CallFunction, + cr.system_object.prototype.acts.SetLayerVisible, cr.system_object.prototype.acts.CreateObject, cr.plugins_.Sprite.prototype.acts.SetAnim, cr.plugins_.Sprite.prototype.exps.AnimationName, - cr.plugins_.SpriteFontPlus.prototype.acts.MoveToTop, - cr.plugins_.SpriteFontPlus.prototype.acts.SetText, - cr.plugins_.SenaPlugin.prototype.exps.getOptionsValue, cr.behaviors.Rex_MoveTo.prototype.acts.SetTargetPos, + cr.plugins_.SenaPlugin.prototype.acts.Finish, + cr.plugins_.SenaPlugin.prototype.acts.PauseGame, cr.plugins_.Function.prototype.cnds.OnFunction, - cr.plugins_.Audio.prototype.acts.Stop, cr.plugins_.Sprite.prototype.cnds.CompareInstanceVar, cr.system_object.prototype.cnds.Else, - cr.system_object.prototype.cnds.Every, - cr.plugins_.Sprite.prototype.acts.SetVisible, - cr.behaviors.Sin.prototype.acts.SetActive, - cr.behaviors.lunarray_Tween.prototype.acts.StartGroup, - cr.behaviors.lunarray_Tween.prototype.acts.ReverseGroup, cr.plugins_.SenaPlugin.prototype.cnds.OnPause, cr.plugins_.SenaPlugin.prototype.cnds.OnResume, + cr.plugins_.Sprite.prototype.acts.SetInstanceVar, + cr.plugins_.Sprite.prototype.exps.X, + cr.plugins_.Sprite.prototype.acts.SetPos, cr.system_object.prototype.cnds.LayerVisible, cr.plugins_.Sprite.prototype.cnds.CompareY, cr.behaviors.Rex_MoveTo.prototype.acts.SetTargetPosOnObject, cr.plugins_.Sprite.prototype.cnds.CompareFrame, cr.plugins_.Sprite.prototype.acts.SetAnimFrame, cr.plugins_.Audio.prototype.acts.SetSilent, - cr.plugins_.SenaPlugin.prototype.acts.PauseGame, cr.plugins_.SenaPlugin.prototype.acts.ResumeGame ];}; diff --git a/GameSenaSpin/data.js b/GameSenaSpin/data.js index fe7acbc..ff4eb04 100644 --- a/GameSenaSpin/data.js +++ b/GameSenaSpin/data.js @@ -1 +1 @@ -{"project": [null,null,[[0,true,false,false,false,false,false,false,false,false],[1,true,false,false,false,false,false,false,false,false],[2,true,false,false,false,false,false,false,false,false],[3,true,false,false,false,false,false,false,false,false],[4,false,true,true,true,true,true,true,true,false],[5,false,true,true,true,true,true,true,true,true],[6,true,false,false,false,false,false,false,false,false],[7,false,true,true,true,false,true,true,true,false]],[["t0",4,false,[],0,0,null,[["Default",5,false,1,0,false,608304330997377,[["images/bg-sheet0.png",3323745,0,0,2200,1467,1,0.5,0.5003408193588257,[],[],1]]]],[],false,false,937218673824410,[],null],["t1",4,false,[],0,0,null,[["Default",5,false,1,0,false,263667017063557,[["images/koala_rmbg_-sheet0.png",1040452,0,0,774,922,1,0.5,0.5,[],[-0.2894060015678406,0.1757050156593323,0.03746801614761353,-0.4989154040813446,0.2945740222930908,0.2342730164527893,0.1860470175743103,-0.005423009395599365,0.3888890147209168,-0.1659440100193024,0.03746801614761353,0.4707159996032715,-0.3255810141563416,-0.1561819911003113,-0.2080099880695343,-0.005423009395599365],0]]]],[],false,false,211571706253870,[],null],["t2",4,false,[],0,0,null,[["Default",5,false,1,0,false,705861054208629,[["images/khung_thoai3-sheet0.png",113964,0,0,489,279,1,0.4989775121212006,0.5017921328544617,[],[0.4621674716472626,-0.003584146499633789,0.4008184969425201,0.322580873966217,0.002044469118118286,0.3440858721733093,-0.4028625190258026,0.3297488689422607,-0.4723924994468689,-0.003584146499633789,-0.4478525221347809,-0.4121864438056946,0.002044469118118286,-0.4695340394973755,0.4437625110149384,-0.4014341235160828],0]]]],[],false,false,185992229644132,[],null],["t3",4,false,[],0,0,null,[["Default",5,false,1,0,false,300827033297912,[["images/khung_vuong-sheet0.png",66767,0,0,314,310,1,0.5,0.5,[],[-0.4299362897872925,-0.4290322959423065,0,-0.470967710018158,0.442674994468689,-0.4419355094432831,0.4585989713668823,0,0.4076430201530457,0.4064520001411438,-0.4012739062309265,0.3999999761581421,-0.4363057017326355,0],0]]]],[],false,false,110535902487407,[],null],["t4",4,false,[751346677519345,522304440949263,101433130601468],3,0,null,[["Eraser",5,false,1,0,false,416342249955092,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Book",5,false,1,0,false,306846376137486,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Pen",5,false,1,0,false,563267055566273,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Chair",5,false,1,0,false,958525156627650,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Crayon",5,false,1,0,false,128884799891266,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Ruler",5,false,1,0,false,925057756694909,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Desk",5,false,1,0,false,383769889615892,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Pencil",5,false,1,0,false,451329570027092,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]]],[["Pin",8,478442691895062],["FadeOut",9,884820765678024],["FadeIn",9,901857630961457]],false,false,853816451167270,[],null],["t5",4,false,[704682344040960,614048360529043,990278695841407],1,0,null,[["Default",0,false,1,0,false,229160272155844,[["images/no-sheet0.png",11267,0,0,100,100,1,0.5,0.5,[],[-0.4438444972038269,-0.4438202083110809,-0.0002160072326660156,-0.499567836523056,0.4438440203666687,-0.4438202083110809,0.4991359710693359,0,0.4438440203666687,0.4438199996948242,-0.0002160072326660156,0.499567985534668,-0.4438444972038269,0.4438199996948242,-0.4995680451393127,0],0],["images/no-sheet1.png",10498,0,0,100,100,1,0.5,0.5,[],[-0.4438444972038269,-0.4438202083110809,-0.0002160072326660156,-0.499567836523056,0.4438440203666687,-0.4438202083110809,0.499567985534668,0,0.4438440203666687,0.4438199996948242,-0.0002160072326660156,0.499567985534668,-0.4438444972038269,0.4438199996948242,-0.4991360604763031,0],0]]]],[["DragDrop",10,179060741715720]],false,false,600292045480576,[],null],["t6",5,false,[],0,0,["images/spritefont.png",31121,0],null,[],false,false,280936403053560,[],null],["t7",4,false,[],0,0,null,[["Default",5,true,1,0,false,933127705023712,[["images/soundon-sheet0.png",21351,1,1,150,150,1,0.5,0.5,[],[0.5,0,0.5,0.5,0,0.5,-0.5,0.5,-0.5,0,-0.5,-0.5,0,-0.5,0.5,-0.5],0],["images/soundon-sheet0.png",21351,153,1,150,150,1,0.5,0.5,[],[0.5,0,0.5,0.5,0,0.5,-0.5,0.5,-0.5,0,-0.5,-0.5,0,-0.5,0.5,-0.5],0],["images/soundon-sheet0.png",21351,305,1,150,150,1,0.5,0.5,[],[0.5,0,0.5,0.5,0,0.5,-0.5,0.5,-0.5,0,-0.5,-0.5,0,-0.5,0.5,-0.5],0],["images/soundon-sheet0.png",21351,1,153,150,150,1,0.5,0.5,[],[0.5,0,0.5,0.5,0,0.5,-0.5,0.5,-0.5,0,-0.5,-0.5,0,-0.5,0.5,-0.5],0]]]],[],false,false,495517108032707,[],null],["t8",4,false,[980541179847782],0,0,null,[["Default",5,false,1,0,false,990891376271759,[["images/khung_vuong-sheet0.png",66767,0,0,314,310,1,0.5,0.5,[],[-0.4299362897872925,-0.4290322959423065,0,-0.470967710018158,0.442674994468689,-0.4419355094432831,0.4585989713668823,0,0.4076430201530457,0.4064520001411438,-0.4012739062309265,0.3999999761581421,-0.4363057017326355,0],0]]]],[],false,false,272123799336216,[],null],["t9",4,false,[],0,0,null,[["Default",5,false,1,0,false,834859944727123,[["images/frame-sheet0.png",113517,0,0,954,750,1,0.5,0.5,[],[0.009433984756469727,-0.4959999918937683,0.4979040026664734,-0.02666699886322022,0.009433984756469727,0.4959999918937683,-0.4979035556316376,-0.02666699886322022],0]]]],[],false,false,381240756792944,[],null],["t10",4,false,[],2,0,null,[["Default",5,false,1,0,false,189210358139647,[["images/spin-sheet0.png",185347,0,0,500,500,1,0.5019999742507935,0.5320000052452087,[],[-0.3048239946365356,-0.3348240256309509,-0.002234965562820435,-0.4562352895736694,0.3008240461349487,-0.3348240256309509,0.4471760392189026,-0.03223499655723572,0.3314120173454285,0.3014119863510132,-0.002234965562820435,0.4487059712409973,-0.3354119658470154,0.3014119863510132,-0.4511764645576477,-0.03223499655723572],0]]]],[["Rotate",11,420932769701722],["Rotate2",12,774796829699409]],false,false,958324520401604,[],null],["t11",4,false,[],0,0,null,[["Default",5,false,1,0,false,623831582571937,[["images/pen-sheet0.png",19089,0,0,154,838,1,0.5,0.5,[],[0.1493510007858276,-0.5,0.1363639831542969,-0.3721010088920593,-0.1168830096721649,-0.3792610168457031,-0.08441498875617981,-0.5],0]]]],[],false,false,392497683092522,[],null],["t12",4,false,[],0,0,null,[["Default",5,false,1,0,false,450867069352665,[["images/circle-sheet0.png",58697,0,0,336,336,1,0.5,0.5,[],[-0.3541669845581055,-0.3541669845581055,0,-0.5,0.3541669845581055,-0.3541669845581055,0.5,0,0.3541669845581055,0.3541669845581055,0,0.5,-0.3541669845581055,0.3541669845581055,-0.5,0],0]]]],[],false,false,258648466138199,[],null],["t13",6,false,[],0,0,null,null,[],false,false,574804345139398,[],null,[1]],["t14",4,false,[],0,0,null,[["Default",0,false,1,0,false,602983831848129,[["images/txt-sheet0.png",29442,1,88,507,73,1,0.5009862184524536,0.5068492889404297,[],[-0.5009862184524536,-0.5068492889404297,-0.1282052099704742,-0.4246574938297272,0.1360948085784912,0.2465757131576538,0.2406308054924011,0.3698627352714539,-0.4990138411521912,0.3835617303848267],0],["images/txt-sheet0.png",29442,1,163,507,73,1,0.5009862184524536,0.5068492889404297,[],[-0.5009862184524536,-0.5068492889404297,-0.001972228288650513,-0.3835612833499908,0.4063118100166321,0.1369867324829102,0.4852067828178406,0.3972607254981995,-0.001972228288650513,-0.2054792940616608,-0.4852071106433868,0.3835617303848267],0],["images/txt-sheet0.png",29442,1,238,507,73,1,0.5009862184524536,0.5068492889404297,[],[-0.5009862184524536,-0.5068492889404297,-0.1104532182216644,0.1506847143173218,0.1794867515563965,0.191780686378479,0.2662717700004578,0.3972607254981995,-0.4852071106433868,0.3835617303848267],0],["images/txt-sheet0.png",29442,1,313,507,73,1,0.5009862184524536,0.5068492889404297,[],[-0.5009862184524536,-0.5068492889404297,-0.1026372313499451,-0.5068492889404297,0.2829977869987488,-0.4109588861465454,0.196124792098999,-0.1643832921981812,-0.1026372313499451,0.3972607254981995,-0.4840352237224579,0.3835617303848267],0],["images/txt-sheet0.png",29442,1,1,440,85,1,0.5,0.5176470875740051,[],[-0.2247979938983917,-0.209955096244812,0.001103997230529785,-0.3099550902843475,0.2579100131988525,-0.3714931011199951,0.4992640018463135,0.009275913238525391,0.2108169794082642,0.143890917301178,0.001103997230529785,0.2823529243469238,-0.2247979938983917,0.2285069227218628,-0.4963208138942719,0.009275913238525391],0]]]],[],false,false,907085390566484,[],null],["t15",1,false,[],0,0,null,null,[],false,false,789966150229088,[],null,[]],["t16",2,false,[],0,0,null,null,[],false,false,326196499488777,[],null,[]],["t17",4,false,[],0,0,null,[["Default",5,false,1,0,false,988234233340493,[["images/quit-sheet0.png",19324,0,0,190,80,1,0.5,0.5,[],[0.4677420258522034,-0.003311008214950562,0.32949298620224,0.2549669742584229,0.002304017543792725,0.2682120203971863,-0.2880179882049561,0.1953639984130859,-0.343317985534668,-0.003311008214950562,-0.3387100100517273,-0.2682120203971863,0.002304017543792725,-0.4536423981189728,0.421658992767334,-0.3874170184135437],0]]]],[],false,false,750541282122570,[],null],["t18",0,false,[],0,0,null,null,[],false,false,543108428148727,[],null,[0,0,0,1,1,600,600,10000,1]],["t19",4,false,[],0,0,null,[["Default",5,false,1,0,false,375876834511343,[["images/quit2-sheet0.png",15442,0,0,125,125,1,0.4959999918937683,0.5040000081062317,[],[0.4717420339584351,-0.007311016321182251,0.3334929943084717,0.2509669661521912,0.006304025650024414,0.2642120122909546,-0.2840179800987244,0.1913639903068543,-0.3393179774284363,-0.007311016321182251,-0.3347100019454956,-0.272212028503418,0.006304025650024414,-0.4576424062252045,0.4256590008735657,-0.3914170265197754],0]]]],[],false,false,164538542971898,[],null],["t20",4,false,[],0,0,null,[["Default",5,false,1,0,false,958466002588718,[["images/logogame-sheet0.png",320222,0,0,500,474,1,0.5,0.5,[],[],0]]]],[],false,false,314081496619358,[],null],["t21",4,false,[],0,0,null,[["Default",5,false,1,0,false,881403519882319,[["images/quit3-sheet0.png",67682,0,0,357,133,1,0.5014005899429321,0.5037593841552734,[],[0.1008403897285461,-0.4736841917037964,0.2408964037895203,-0.4736841917037964,0.1708683967590332,0.406014621257782],0]]]],[],false,false,222596792410079,[],null],["t22",4,false,[736956649960879],1,0,null,[["Default",5,false,1,0,false,481159122229861,[["images/sprite-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[-0.06400001049041748,-0.5,0.06799900531768799,-0.5,0.05999898910522461,0.5,-0.06400001049041748,0.5],3]]]],[["Pin",8,572280489523181]],false,false,664757919521699,[],null],["t23",4,false,[189046694235268],1,0,null,[["Default",5,false,1,0,false,545684962658321,[["images/sprite-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[-0.06400001049041748,-0.5,0.06799900531768799,-0.5,0.05999898910522461,0.5,-0.06400001049041748,0.5],3]]]],[["Pin",8,889962702223611]],false,false,767450782808439,[],null],["t24",4,false,[],0,0,null,[["Default",5,false,1,0,false,975983663858818,[["images/back-sheet0.png",17807,0,0,118,109,1,0.5,0.5045871734619141,[],[],0]]]],[],false,false,514240690883732,[],null],["t25",7,false,[],0,0,null,null,[],false,false,787918145938257,[],null],["t26",4,false,[488237723243052,600776782803620,185642401226140],5,0,null,[["Eraser",5,false,1,0,false,164304031800011,[["images/result-sheet0.png",95838,1,1,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Book",5,false,1,0,false,907020487205276,[["images/result-sheet0.png",95838,378,1,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Pen",5,false,1,0,false,488374178841920,[["images/result-sheet1.png",116023,378,378,313,313,1,0.5015974640846252,0.5015974640846252,[],[],0]]],["Chair",5,false,1,0,false,725894544042313,[["images/result-sheet0.png",95838,1,378,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Crayon",5,false,1,0,false,969840291148002,[["images/result-sheet0.png",95838,378,378,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Ruler",5,false,1,0,false,898483305089896,[["images/result-sheet1.png",116023,1,1,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Desk",5,false,1,0,false,693156262202361,[["images/result-sheet1.png",116023,378,1,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]],["Pencil",5,false,1,0,false,295399102409457,[["images/result-sheet1.png",116023,1,378,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]]],[["Pin",8,421989966141643],["FadeOut",9,761299751047976],["FadeIn",9,226753802910959],["LiteTween",13,567435221335929],["MoveTo",14,379085265728954]],false,false,444523267144551,[],null],["t27",4,false,[],0,0,null,[["Default",5,false,1,0,false,737685265353060,[["images/koala-sheet0.png",293242,0,0,362,531,1,0.5,0.5009416341781616,[],[-0.4116021990776062,-0.4406779408454895,0,-0.4632768332958221,0.4337019920349121,-0.4557439386844635,0.2817680239677429,0.3502823710441589,0,0.4990583658218384,-0.2209939956665039,0.3088513612747192,-0.2209939956665039,-0.001883625984191895],0]]]],[],false,false,690724650464989,[],null],["t28",4,false,[],0,0,null,[["Default",5,false,1,0,false,565336187182829,[["images/eddy-sheet0.png",218309,0,0,290,592,1,0.5,0.5,[],[-0.2620689868927002,-0.3834460079669952,0,-0.4611485898494721,0.3310340046882629,-0.4172297120094299,0.2793099880218506,0,0.2862070202827454,0.3952699899673462,0,0.5,-0.1482760012149811,0.3277029991149902,-0.4655171930789948,0],0]]]],[],false,false,495667469133117,[],null],["t29",4,false,[],0,0,null,[["Default",5,false,1,0,false,711050001120424,[["images/eddy_schatbox-sheet0.png",21513,0,0,805,318,1,0.5006211400032044,0.5,[],[-0.472049742937088,-0.4276729822158814,-0.001242130994796753,-0.5,0.4708078503608704,-0.4276729822158814,0.4981368780136108,0,0.416148841381073,0.2893080115318298,-0.4173913300037384,0.2893080115318298,-0.499378889799118,0],0]]]],[],false,false,430364105501934,[],null],["t30",4,false,[],2,0,null,[["Default",5,false,1,0,false,257687040068948,[["images/pic-sheet0.png",1462027,0,0,1344,768,1,0.5,0.5,[],[],1]]]],[["MoveTo",14,280765918067363],["EaseTween",15,787230508466721]],false,false,249709480518347,[],null],["t31",4,false,[],0,0,null,[["Default",5,false,1,0,false,826106571519227,[["images/school_khungvuong2-sheet0.png",294828,0,0,488,464,1,0.5,0.5,[],[-0.4590164124965668,-0.4568966031074524,0,-0.4956896603107452,0.4569669961929321,-0.4547413885593414,0.4959020018577576,0,0.4590160250663757,0.4568970203399658,0,0.4956899881362915,-0.4590164124965668,0.4568970203399658,-0.4938524663448334,0],0]]]],[],false,false,121211870677391,[],null],["t32",4,false,[],2,0,null,[["Default",5,false,1,0,false,655591028092990,[["images/khunganh-sheet0.png",142748,0,0,796,884,1,0.5,0.5,[],[-0.4610553085803986,-0.4649320840835571,0,-0.4886878132820129,0.4396989941596985,-0.445701390504837,0.4510049819946289,0,0.4296479821205139,0.4366520047187805,0,0.460407018661499,-0.4472362101078033,0.4524890184402466,-0.491206020116806,0],0]]]],[["MoveTo",14,958350366095909],["EaseTween",15,241199917321149]],false,false,675997467907298,[],null],["t33",4,false,[],1,0,null,[["Default",5,false,1,0,false,347940820183195,[["images/button-sheet0.png",29987,0,0,280,152,1,0.5,0.5,[],[-0.4428570866584778,-0.3947370052337647,0,-0.4605262875556946,0.3714290261268616,-0.263157993555069,0.375,0,0.3428570032119751,0.2105259895324707,0,0.2697370052337647,-0.3714289963245392,0.2631580233573914,-0.4749999940395355,0],0]]]],[["Flash",16,173404254989957]],false,false,228378473514548,[],null],["t34",4,false,[769123904801514],1,0,null,[["Default",5,false,1,0,false,215051303104662,[["images/zoom-sheet0.png",17004,0,0,500,500,1,0.5,0.5,[],[-0.2380000054836273,-0.2380000054836273,0,-0.2680000066757202,0.1320000290870667,-0.1319999992847443,0.1420000195503235,0,0.3040000200271606,0.3040000200271606,0,0.1579999923706055,-0.2339999973773956,0.234000027179718,-0.300000011920929,0],0]]]],[["Sine",17,911902985126981]],false,false,627663274639245,[],null],["t35",4,false,[],0,0,null,[["Default",5,false,1,0,false,864010333970024,[["images/back2-sheet0.png",31716,0,0,392,434,1,0.5,0.5,[],[-0.4234693944454193,-0.4308755993843079,0,-0.5,0.4260200262069702,-0.4331797063350678,0.4948980212211609,0,0.3903059959411621,0.4009220004081726,0,0.4400920271873474,-0.3877550065517426,0.3986179828643799,-0.4897958934307098,0],0]]]],[],false,false,551614772158799,[],null],["t36",3,false,[],0,0,null,null,[],false,false,809229743887590,[],null,["G2800S1T30"]],["t37",5,false,[],0,0,["images/txt_question.png",182666,0],null,[],false,false,132665655978085,[],null],["t38",4,false,[],0,0,null,[["Default",5,false,1,0,false,797250728583019,[["images/btn_setting-sheet0.png",13202,0,0,99,91,1,0.505050003528595,0.505495011806488,[],[-0.3656859993934631,-0.3547010123729706,-0.006272017955780029,-0.5028495192527771,0.3555859923362732,-0.3547010123729706,0.4851700067520142,-0.005495011806488037,0.360476016998291,0.3490020036697388,-0.006272017955780029,0.4865679740905762,-0.3681309819221497,0.346356987953186,-0.4977150559425354,-0.005495011806488037],0]]]],[],false,false,398028461964802,[],null],["t39",4,false,[857921985728470,278950321777539],1,0,null,[["Default",5,false,1,0,false,200061264830262,[["images/btn_pause-sheet0.png",11757,0,0,99,91,1,0.505050003528595,0.505495011806488,[],[-0.3657470047473908,-0.3577380180358887,-0.005050003528594971,-0.5028564929962158,0.355646014213562,-0.3577380180358887,0.4899749755859375,-0.006814002990722656,0.3581339716911316,0.3493859767913818,-0.005050003528594971,0.4892280101776123,-0.3657470047473908,0.3467479944229126,-0.4975873231887817,-0.006814002990722656],0]]]],[["MoveTo",14,830881134364014]],false,false,361004780292219,[],null],["t40",4,false,[236270558495095,629382498328285],1,0,null,[["Default",0,false,1,0,false,515736049933236,[["images/btn_music-sheet0.png",13358,0,0,99,91,1,0.505050003528595,0.505495011806488,[],[],0],["images/btn_music-sheet1.png",14207,0,0,99,91,1,0.505050003528595,0.505495011806488,[],[],0]]]],[["MoveTo",14,498162712626499]],false,false,830302404899779,[],null],["t41",4,false,[],0,0,null,[["Default",5,false,1,0,false,815533558905939,[["images/panel_pause-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,599049261153219,[],null],["t42",4,false,[],1,0,null,[["Default",5,false,1,0,false,307040591112583,[["images/layer-sheet0.png",111520,0,0,400,376,1,0.5,0.5,[],[-0.362500011920929,-0.3537229895591736,0,-0.5,0.362500011920929,-0.3537229895591736,0.497499942779541,0,0.3650000095367432,0.3563830256462097,0,0.5,-0.3650000095367432,0.3563830256462097,-0.5,0],0]]]],[["Sine",17,609989149541772]],false,false,295009651324700,[],null]],[],[["Game2",1400,900,false,"Event sheet 2",672285313999718,[["Main",0,179267880835612,true,[255,255,255],true,0,0,1,false,false,0,0,0,[[[737,460,0,750,750,0,0,1,0.5019999742507935,0.5320000052452087,0,0,[]],10,18,[],[[0,0],[0,1,180,0]],[0,"Default",0,1]],[[896,304,0,100,100,0,0.7853981852531433,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,25,[[2],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Book",0,1]],[[956,457,0,100,100,0,1.570796370506287,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,26,[[3],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Pen",0,1]],[[516,462,0,100,100,0,-1.57115375995636,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,27,[[4],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Desk",0,1]],[[736,681,0,100,100,0,3.141592741012573,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,28,[[5],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Crayon",0,1]],[[580,614,0,100,100,0,-2.356194734573364,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,29,[[6],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Ruler",0,1]],[[890,616,0,100,100,0,2.356194496154785,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,30,[[7],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Chair",0,1]],[[585,307,0,100,100,0,-0.7853984832763672,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,31,[[0],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Pencil",0,1]],[[737,267,0,37,183,0,0,1,0.5,0.5,0,0,[]],22,42,[[1]],[[]],[0,"Default",0,1]],[[620,339,0,37,183,0,-0.7853984832763672,1,0.5,0.5,0,0,[]],22,43,[[0]],[[]],[0,"Default",0,1]],[[737,625,0,37,183,0,0,1,0.5,0.5,0,0,[]],22,44,[[5]],[[]],[0,"Default",0,1]],[[625,570,0,37,183,0,-2.356194734573364,1,0.5,0.5,0,0,[]],22,45,[[6]],[[]],[0,"Default",0,1]],[[856,336,0,37,183,0,-2.356194734573364,1,0.5,0.5,0,0,[]],22,46,[[2]],[[]],[0,"Default",0,1]],[[588,460,0,37,183,0,-1.570796489715576,1,0.5,0.5,0,0,[]],22,47,[[7]],[[]],[0,"Default",0,1]],[[904,459,0,37,183,0,-1.570796489715576,1,0.5,0.5,0,0,[]],22,48,[[3]],[[]],[0,"Default",0,1]],[[855,573,0,37,183,0,-0.7853984832763672,1,0.5,0.5,0,0,[]],22,49,[[4]],[[]],[0,"Default",0,1]],[[737,457,0,36.35491943359375,197.8274230957031,0,0,1,0.5,0.5,0,0,[]],11,23,[],[],[0,"Default",0,1]],[[738,463,0,84.62268829345703,84.62268829345703,0,0,1,0.5,0.5,0,0,[]],12,24,[],[],[0,"Default",0,1]],[[736,240,0,100,100,0,0,1,0.5013333559036255,0.5013333559036255,0,0,[]],4,19,[[1],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[-911,768,0,583.698486328125,333.5420227050781,0,0,1,0.5,0.5,0,0,[]],30,2,[],[[1,1200,0,0],[0,7,0,"current","683, 433",0.5,"0,0",0,0,1,0,"zoom"]],[0,"Default",0,1]],[[-897,797,0,673,466,0,0,1,0.5,0.5,0,0,[]],32,3,[],[[1,1200,0,0],[0,7,0,"current","773, 460",0.5,"0,0",0,0,1,0,"zoom"]],[0,"Default",0,1]],[[-911,980,0,182.72509765625,99.66823577880859,0,0,1,0.5,0.5,0,0,[]],33,1,[],[[]],[0,"Default",0,1]],[[-922,968,0,84.59067535400391,84.59067535400391,0,0,1,0.5,0.5,0,0,[]],34,4,[[0]],[[0,2,0,1,0,0,0,10,0]],[0,"Default",0,1]],[[-720,199,0,120,120,0,0,1,0.5,0.5,0,0,[]],35,5,[],[],[1,"Default",0,1]],[[1332,744,0,82.66699981689453,75.98699951171875,0,0,1,0.505050003528595,0.505495011806488,0,0,[]],39,8,[[0],[0]],[[1,400,0,0]],[0,"Default",0,1]],[[1331,653,0,82.66699981689453,75.98699951171875,0,0,1,0.505050003528595,0.505495011806488,0,0,[]],40,9,[[0],[0]],[[1,400,0,0]],[0,"Default",0,1]],[[1332,835,0,82.66677093505859,75.98662567138672,0,0,1,0.505050003528595,0.505495011806488,0,0,[]],38,10,[],[],[0,"Default",0,1]]],[]],["Layer 1",1,189470759924483,true,[255,255,255],true,0,0,1,false,false,0,0,0,[[[736,458,0,545,190,0,0,1,0.5,0.5,0,0,[]],37,7,[],[],[73,98,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#\"'&()[]|`/@°+=*$£€<>%ÁÀẢẠÃĂẰẮẶẲẴÂẦẤẬẨẪĐÉÈẺẸẼÊỀẾỆỂỄÍÌỊỈĨÓÒỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÚÙỤỦŨƯỪỨỰỬỮÝỲỴỶỸáàảạãăằắặẳẵâầấậẩẫđéèẻẹẽêềếệểễíìịỉĩóòọỏõôồốộổỗơờớợởỡúùụủũưừứựửữýỳỵỷỹ","",0.85,0,1,1,1,0,0,0,"{\"\"c2array\"\":true,\"\"size\"\":[2,45,1],\"\"data\"\":[[[20],[11],[13],[14],[15],[16],[18],[19],[21],[22],[23],[24],[25],[26],[29],[30],[31],[32],[33],[34],[36],[37],[38],[39],[40],[41],[42],[43],[44],[45],[46],[47],[48],[49],[50],[51],[52],[53],[54],[56],[57],[59],[62],[69],[71]],[[\"\" \"\"],[\"\"|\"\"],[\"\"il\"\"],[\"\"I.:'\"\"],[\"\";!\"\"],[\"\",ỊỈịỉ\"\"],[\"\"Ííì\"\"],[\"\"`Ì\"\"],[\"\")\"\"],[\"\"(/\"\"],[\"\"[\"\"],[\"\"j]\"\"],[\"\"-\"\"],[\"\"°\"\"],[\"\"t1ĩ\"\"],[\"\"\\\"\"Ĩ\"\"],[\"\"r\"\"],[\"\"f\"\"],[\"\"*\"\"],[\"\"ẺẸẼỆỄ\"\"],[\"\"sảạăằắặẳẵậẫ\"\"],[\"\"kx\"\"],[\"\"Jhnuẻẹẽệễúùụủũ\"\"],[\"\"v7?+=<>Ể\"\"],[\"\"Faceyz0238áàãâéèêý\"\"],[\"\"L569_~$ẩ\"\"],[\"\"bdgopqểóòõô\"\"],[\"\"P#ọỏộỗỳỵỷỹ\"\"],[\"\"EXÉÈÊỀẾầềổ\"\"],[\"\"S4€ỤỦŨ\"\"],[\"\"Y£Ýấđơờớợởỡ\"\"],[\"\"BNRỲỴỶỸế\"\"],[\"\"DHKTUÚÙồưừứựửữ\"\"],[\"\"VZố\"\"],[\"\"C\"\"],[\"\"AÁÀÃÂ\"\"],[\"\"&\"\"],[\"\"GMỌỎỒỘỔỖ\"\"],[\"\"OẢẠĂẰẮẶẲẴẦẤẬẨẪĐÓÒÕÔỐ\"\"],[\"\"ƯỪỨỰỬỮ\"\"],[\"\"Q\"\"],[\"\"mwƠỜỚỢỞỠ\"\"],[\"\"%\"\"],[\"\"W\"\"],[\"\"@\"\"]]]}",-1]],[[737,461,0,75,75,0,0,1,0.5013333559036255,0.5013333559036255,0,0,[]],26,0,[[6],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0],[1,9,23,"2",0,1,1],[1,800,0,0]],[0,"takeAShower",0,1]]],[]],["Pause",2,779407424838293,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[699.9999389648438,450,0,1946.036010742188,1251.02294921875,0,0,1,0.5,0.5,0,0,[]],41,11,[],[],[0,"Default",0,1]],[[699.9999389648438,450,0,400,376,0,0,1,0.5,0.5,0,0,[]],42,12,[],[[1,2,0,3,0,0,0,50,0]],[0,"Default",0,1]]],[]],["Logo",3,821328890454595,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[148,127,0,233.7526397705078,221.5975036621094,0,0,1,0.5,0.5,0,0,[]],20,41,[],[],[0,"Default",0,1]]],[]]],[],[]]],[["Event sheet 2",[[1,"isPick",0,0,false,false,260397142300872,false],[1,"isSpin",0,0,false,false,850028566707603,false],[1,"isFinish",0,0,false,false,400133471677362,false],[1,"Paused",0,0,false,false,827669030611856,false],[0,null,false,null,326923712719050,[[-1,18,null,1,false,false,false,393120088090712,false]],[[36,19,null,141821412892623,false],[22,20,"Pin",640354251719937,false,[[4,10],[3,0]]],[4,21,null,212713042017176,false,[[0,[0,120]],[0,[0,120]]]],[26,22,null,141978992715472,false],[39,23,null,839974325222810,false,[[10,0],[7,[20,39,24,false,null]]]],[39,23,null,866131371078543,false,[[10,1],[7,[20,39,25,false,null]]]],[39,26,null,529118408989343,false,[[0,[20,38,24,false,null]],[0,[20,38,25,false,null]]]],[40,23,null,115589341811880,false,[[10,0],[7,[20,40,24,false,null]]]],[40,23,null,162671542071248,false,[[10,1],[7,[20,40,25,false,null]]]],[40,26,null,178467576999743,false,[[0,[20,38,24,false,null]],[0,[20,38,25,false,null]]]],[-1,27,null,120412075444862,false,[[5,[2,"Pause"]],[3,0]]]],[[0,null,false,null,855866295876321,[[-1,28,null,0,true,false,false,357559140131146,false,[[4,4]]]],[[4,20,"Pin",877592026563873,false,[[4,10],[3,0]]]]],[0,null,false,null,754466701972036,[],[[-1,29,null,367416488446375,false,[[0,[1,0.1]]]],[10,30,null,299747642226430,false,[[0,[19,31,[[0,0],[0,350]]]]]]]]]],[0,null,false,null,946444113718006,[[36,32,null,1,false,false,false,992702251633266,false]],[[15,33,null,651608518392822,false,[[3,0],[7,[2,"Load dữ liệu xong"]]]],[15,33,null,235362025728903,false,[[3,0],[7,[20,36,34,true,null]]]]],[[0,null,false,null,944026446238678,[],[[36,35,null,404980567624956,false]]]]],[0,null,false,null,673648449966889,[[36,36,null,1,false,false,false,989782416815969,false]],[[15,33,null,722860375493846,false,[[3,0],[7,[10,[10,[10,[2,"Question :"],[20,36,37,true,null]],[2," with value : "]],[20,36,38,true,null]]]]],[15,33,null,332852034219400,false,[[3,0],[7,[10,[10,[10,[2,"Request :"],[20,36,39,true,null]],[2," with value : "]],[20,36,40,true,null]]]]],[15,33,null,351622917939549,false,[[3,0],[7,[10,[2,"Options Count :"],[20,36,41,false,null]]]]],[15,33,null,418040732556019,false,[[3,0],[7,[10,[2,"Hint Count :"],[20,36,42,false,null]]]]]]],[0,null,false,null,714518450290961,[[13,43,null,1,false,false,false,103339942296012,false,[[4,12]]],[-1,44,null,0,false,false,false,604463923346944,false,[[11,"isFinish"],[8,0],[7,[0,0]]]]],[[-1,45,null,804427421197410,false,[[11,"isSpin"],[7,[0,1]]]],[10,46,"Rotate2",635657467692846,false,[[3,1]]],[10,47,"Rotate2",512831691592449,false,[[0,[0,360]]]],[4,48,"FadeIn",941402807328041,false],[4,49,null,620641890676562,false,[[0,[0,100]]]],[4,21,null,284655109401994,false,[[0,[0,150]],[0,[0,150]]]]]],[0,null,false,null,801999007055380,[[-1,50,null,0,false,false,false,406533940383443,false]],[],[[0,null,false,null,566329800412062,[[10,51,"Rotate2",0,false,false,false,298168821486408,false,[[8,4],[0,[0,10]]]],[-1,44,null,0,false,false,false,823412158593859,false,[[11,"isSpin"],[8,0],[7,[0,1]]]]],[],[[0,null,false,null,670734289407612,[[11,52,null,0,false,false,false,374058760689301,false,[[4,22]]],[18,53,null,0,false,true,false,650546078523896,false]],[[18,54,null,666662405801226,false,[[2,["click",false]],[3,0],[0,[0,0]],[1,[2,""]]]]]]]],[0,null,false,null,506020280821878,[[10,51,"Rotate2",0,false,false,false,405751718113891,false,[[8,3],[0,[0,0]]]]],[[10,46,"Rotate2",296454219663360,false,[[3,0]]]]],[0,null,false,null,164878968048687,[[10,51,"Rotate2",0,false,false,false,197348805157567,false,[[8,3],[0,[0,10]]]]],[[10,47,"Rotate2",158740452420725,false,[[0,[0,0]]]]],[[0,null,false,null,953544344411942,[[11,52,null,0,false,false,false,217099074764117,false,[[4,22]]],[-1,55,null,0,false,false,false,141969485661203,false,[[7,[20,22,25,false,null]],[8,3],[7,[20,11,25,false,null]]]],[-1,56,null,0,false,false,false,609918431247866,false]],[[10,47,"Rotate2",208991309183481,false,[[0,[0,0]]]],[10,46,"Rotate2",599093266742347,false,[[3,0]]],[-1,45,null,399649430329398,false,[[11,"isPick"],[7,[21,22,false,null,0]]]],[16,57,null,248950825458957,false,[[1,[2,"Anim"]],[13]]],[-1,45,null,108493634118107,false,[[11,"isSpin"],[7,[0,0]]]]],[[0,null,false,null,278446103010288,[[-1,28,null,0,true,false,false,888894215646174,false,[[4,4]]]],[],[[0,null,false,null,617563677313954,[[22,52,null,0,false,false,false,305231661511527,false,[[4,4]]]],[[-1,29,null,231995691284044,false,[[0,[0,1]]]],[-1,27,null,244008286331510,false,[[5,[2,"Layer 1"]],[3,1]]],[-1,58,null,721978553122792,false,[[4,26],[5,[2,"Layer 1"]],[0,[0,737]],[0,[0,461]]]],[26,21,null,417439853155922,false,[[0,[0,100]],[0,[0,100]]]],[-1,45,null,552418896077661,false,[[11,"isFinish"],[7,[0,1]]]],[26,59,null,426925891746609,false,[[1,[20,4,60,true,null]],[3,1]]],[37,61,null,896756542190345,false],[37,62,null,760722328302773,false,[[7,[20,36,63,true,null,[[0,0]]]]]],[26,48,"FadeIn",649364872967198,false],[18,54,null,585036260097271,false,[[2,["pop-402324",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[26,64,"MoveTo",794136487542371,false,[[0,[0,737]],[0,[0,461]]]]]],[0,null,false,null,813797364605918,[],[[-1,29,null,639068190323292,false,[[0,[1,0.5]]]],[4,48,"FadeOut",375093031966086,false]]]]]]]]],[0,null,false,null,658318280936979,[[10,51,"Rotate2",0,false,false,false,978029976402493,false,[[8,5],[0,[0,480]]]]],[[10,47,"Rotate2",616517686904130,false,[[0,[0,-60]]]]]]]],[0,null,false,null,279835097319765,[[16,65,null,2,false,false,false,447230031312203,false,[[1,[2,"Anim"]]]]],[[18,66,null,963469800567149,false,[[1,[2,"bg"]]]]],[[0,null,false,null,951524108922792,[[23,52,null,0,false,false,false,884936147796590,false,[[4,4]]]],[[4,21,null,721622510324151,false,[[0,[0,220]],[0,[0,220]]]]]],[0,null,false,null,949165971768047,[[-1,28,null,0,true,false,false,200683748681145,false,[[4,4]]]],[],[[0,null,false,null,125658291466330,[[4,52,null,0,false,false,false,815578331634846,false,[[4,22]]],[22,67,null,0,false,false,false,424767694448606,false,[[10,0],[8,0],[7,[23,"isPick"]]]]],[]],[0,null,false,null,914338506819357,[[-1,68,null,0,false,false,false,477542400066241,false]],[[4,48,"FadeOut",680502296192025,false],[4,49,null,878548530969899,false,[[0,[0,0]]]]]]]]]],[0,null,false,null,486294633918644,[[-1,69,null,0,false,false,false,121993880373133,false,[[0,[1,0.01]]]]],[]],[0,null,false,null,163266992228022,[],[]],[0,null,false,null,785565938926690,[[13,43,null,1,false,false,false,511172151672437,false,[[4,26]]],[-1,44,null,0,false,false,false,760092456489208,false,[[11,"isFinish"],[8,0],[7,[0,1]]]]],[[37,62,null,573328368439864,false,[[7,[2,""]]]],[26,22,null,621149372628348,false],[-1,27,null,878454330351439,false,[[5,[2,"Layer 1"]],[3,0]]],[-1,45,null,952139886560872,false,[[11,"isFinish"],[7,[0,0]]]],[4,48,"FadeIn",985536928341181,false]]],[0,null,false,null,714613120519718,[[16,65,null,2,false,false,false,989246628400364,false,[[1,[2,"SetInvis"]]]]],[[33,70,null,690652725517815,false,[[3,0]]],[34,70,null,496703766227730,false,[[3,0]]],[20,70,null,466940008635923,false,[[3,0]]],[12,70,null,923973450787670,false,[[3,0]]],[11,70,null,602717921640155,false,[[3,0]]],[10,70,null,598662050023081,false,[[3,0]]],[4,70,null,737727302317705,false,[[3,0]]],[26,70,null,497344253957416,false,[[3,0]]]]],[0,null,false,null,803924498809169,[[16,65,null,2,false,false,false,921382347875365,false,[[1,[2,"SetVis"]]]]],[[33,70,null,153949505849823,false,[[3,1]]],[34,70,null,631071687831380,false,[[3,1]]],[20,70,null,360005967197505,false,[[3,1]]],[12,70,null,863521351424152,false,[[3,1]]],[11,70,null,605977800365071,false,[[3,1]]],[10,70,null,666611262424331,false,[[3,1]]],[4,70,null,976393933608392,false,[[3,1]]],[26,70,null,672710735343752,false,[[3,1]]]]],[0,null,false,null,727037005300431,[[13,43,null,1,false,false,false,678177739612010,false,[[4,34]]],[34,67,null,0,false,false,false,778009415952112,false,[[10,0],[8,0],[7,[0,0]]]]],[[34,23,null,912040215903953,false,[[10,0],[7,[0,1]]]],[18,54,null,856053461189024,false,[[2,["click",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[34,71,"Sine",373543351029763,false,[[3,1]]],[-1,29,null,984286881600908,false,[[0,[1,1]]]],[34,71,"Sine",227272757738973,false,[[3,0]]],[16,57,null,506340677953220,false,[[1,[2,"SetInvis"]],[13]]],[30,64,"MoveTo",263274513561599,false,[[0,[0,700]],[0,[0,450]]]],[32,64,"MoveTo",998027548362045,false,[[0,[0,700]],[0,[0,450]]]],[30,72,"EaseTween",670948067844686,false,[[3,0],[1,[2,"zoom"]]]],[-1,29,null,811952087960987,false,[[0,[1,0.5]]]],[35,70,null,815060685792611,false,[[3,1]]]]],[0,null,false,null,716811976799001,[[13,43,null,1,false,false,false,486796560295412,false,[[4,35]]],[34,67,null,0,false,false,false,951542804576471,false,[[10,0],[8,0],[7,[0,1]]]]],[[34,23,null,325374560928888,false,[[10,0],[7,[0,0]]]],[18,54,null,432258843012147,false,[[2,["pop-402324",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[30,64,"MoveTo",399238117396221,false,[[0,[0,330]],[0,[0,481]]]],[32,64,"MoveTo",835419607343001,false,[[0,[0,344]],[0,[0,510]]]],[30,73,"EaseTween",801818621655430,false,[[3,0],[3,0],[1,[2,"zoom"]]]],[16,57,null,577830406446813,false,[[1,[2,"SetVis"]],[13]]],[-1,29,null,201407019598290,false,[[0,[1,0.5]]]],[35,70,null,898763776630049,false,[[3,0]]]]],[0,null,false,null,340372991147662,[[13,43,null,1,false,false,false,717039722106719,false,[[4,33]]],[34,67,null,0,false,false,false,300036315971633,false,[[10,0],[8,0],[7,[0,0]]]]],[[34,23,null,274210902153921,false,[[10,0],[7,[0,1]]]],[18,54,null,309471991546452,false,[[2,["click",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[34,71,"Sine",235038041844086,false,[[3,1]]],[-1,29,null,979563504785285,false,[[0,[1,1]]]],[34,71,"Sine",943570521339738,false,[[3,0]]],[16,57,null,413308321144224,false,[[1,[2,"SetInvis"]],[13]]],[30,64,"MoveTo",884056864368810,false,[[0,[0,700]],[0,[0,450]]]],[32,64,"MoveTo",572885481512186,false,[[0,[0,700]],[0,[0,450]]]],[30,72,"EaseTween",318812049522805,false,[[3,0],[1,[2,"zoom"]]]],[-1,29,null,179160070986911,false,[[0,[1,0.5]]]],[35,70,null,329590251970565,false,[[3,1]]]]],[0,null,false,null,414587908104687,[[36,74,null,1,false,false,false,105303256318349,false]],[[-1,45,null,482337701539321,false,[[11,"Paused"],[7,[0,1]]]]]],[0,null,false,null,991296400253445,[[36,75,null,1,false,false,false,880040756377610,false]],[[-1,45,null,543507125121051,false,[[11,"Paused"],[7,[0,0]]]]]],[0,null,false,null,180881678581376,[[13,43,null,1,false,false,false,481404224003889,false,[[4,38]]],[-1,76,null,0,false,false,false,881130796878403,false,[[5,[0,1]]]]],[],[[0,null,false,null,842221625580659,[[40,77,null,0,false,false,false,588236782171116,false,[[8,0],[0,[20,38,25,false,null]]]]],[[18,54,null,745791371750607,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[39,64,"MoveTo",513481530441118,false,[[0,[21,39,false,null,0]],[0,[21,39,false,null,1]]]],[40,64,"MoveTo",907324538917356,false,[[0,[21,40,false,null,0]],[0,[21,40,false,null,1]]]]]],[0,null,false,null,163333411332265,[[40,77,null,0,false,false,false,979714096398328,false,[[8,0],[0,[21,40,false,null,1]]]]],[[18,54,null,851813207416539,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[39,78,"MoveTo",211274190567556,false,[[4,38]]],[40,78,"MoveTo",507650679316821,false,[[4,38]]]]]]],[0,null,false,null,312961481445051,[[13,43,null,1,false,false,false,608577790509582,false,[[4,40]]],[40,77,null,0,false,false,false,631867841248847,false,[[8,0],[0,[21,40,false,null,1]]]]],[[18,54,null,796805572960225,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]]],[[0,null,false,null,251559229836149,[[40,79,null,0,false,false,false,317055662976157,false,[[8,0],[0,[0,0]]]]],[[40,80,null,278289493719102,false,[[0,[0,1]]]],[18,81,null,341976030064486,false,[[3,0]]]]],[0,null,false,null,292595118730999,[[-1,68,null,0,false,false,false,691086836653884,false]],[[40,80,null,203372118659168,false,[[0,[0,0]]]],[18,81,null,844867328047264,false,[[3,1]]]]]]],[0,null,false,null,863495544702288,[[13,43,null,1,false,false,false,418131373880719,false,[[4,39]]],[39,77,null,0,false,false,false,153854049016260,false,[[8,0],[0,[21,39,false,null,1]]]]],[[18,54,null,252586885563963,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[36,82,null,215334604496720,false],[39,78,"MoveTo",394410649624689,false,[[4,38]]],[40,78,"MoveTo",390632710687239,false,[[4,38]]],[-1,29,null,215936183700494,false,[[0,[1,0.5]]]],[-1,27,null,277484612561240,false,[[5,[0,1]],[3,0]]],[-1,27,null,397648768766403,false,[[5,[0,2]],[3,1]]]]],[0,null,false,null,767783676876446,[[13,43,null,1,false,false,false,308224020909332,false,[[4,42]]],[-1,76,null,0,false,false,false,887886883011628,false,[[5,[0,2]]]]],[[18,54,null,977958333911538,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[36,83,null,411667776373077,false],[-1,27,null,679937820119128,false,[[5,[0,1]],[3,1]]],[-1,27,null,463905164508483,false,[[5,[0,2]],[3,0]]]]]]]],[["click.m4a",2444],["click.ogg",5621],["correct.m4a",10198],["correct.ogg",12421],["fail.m4a",29104],["fail.ogg",24343],["sound_bg.m4a",26584],["sound_bg.ogg",25433],["0909.m4a",2122],["0909.ogg",4799],["pop-402324.m4a",14038],["pop-402324.ogg",11710],["correct-156911.ogg",7703],["error-04-199275.ogg",11946],["pop-402324-1.m4a",14038],["successed-295058.ogg",22120],["wrong-answer-129254.ogg",16900]],"media/",false,1400,900,3,true,true,true,"1.0.0.0",true,false,3,0,50,false,true,1,true,"Family-G5-U5-L3-1",0,[]]} \ No newline at end of file +{"project": [null,null,[[0,true,false,false,false,false,false,false,false,false],[1,false,true,true,true,true,true,true,true,false],[2,true,false,false,false,false,false,false,false,false],[3,true,false,false,false,false,false,false,false,false],[4,true,false,false,false,false,false,false,false,false],[5,true,false,false,false,false,false,false,false,false]],[["t0",1,false,[751346677519345,522304440949263,101433130601468],3,0,null,[["Eraser",5,false,1,0,false,416342249955092,[["images/slot-sheet0.png",152414,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]]],[["Pin",6,478442691895062],["FadeOut",7,884820765678024],["FadeIn",7,901857630961457]],false,false,853816451167270,[],null],["t1",1,false,[],2,0,null,[["Default",5,false,1,0,false,189210358139647,[["images/spin-sheet0.png",185347,0,0,500,500,1,0.5019999742507935,0.5320000052452087,[],[-0.3048239946365356,-0.3348240256309509,-0.002234965562820435,-0.4562352895736694,0.3008240461349487,-0.3348240256309509,0.4471760392189026,-0.03223499655723572,0.3314120173454285,0.3014119863510132,-0.002234965562820435,0.4487059712409973,-0.3354119658470154,0.3014119863510132,-0.4511764645576477,-0.03223499655723572],0]]]],[["Rotate",8,420932769701722],["Rotate2",9,774796829699409]],false,false,958324520401604,[],null],["t2",1,false,[],0,0,null,[["Default",5,false,1,0,false,623831582571937,[["images/pen-sheet0.png",19089,0,0,154,838,1,0.5,0.5,[],[0.1493510007858276,-0.5,0.1363639831542969,-0.3721010088920593,-0.1168830096721649,-0.3792610168457031,-0.08441498875617981,-0.5],0]]]],[],false,false,392497683092522,[],null],["t3",1,false,[],0,0,null,[["Default",5,false,1,0,false,450867069352665,[["images/btn_circle-sheet0.png",58697,0,0,336,336,1,0.5,0.5,[],[-0.3541669845581055,-0.3541669845581055,0,-0.5,0.3541669845581055,-0.3541669845581055,0.5,0,0.3541669845581055,0.3541669845581055,0,0.5,-0.3541669845581055,0.3541669845581055,-0.5,0],0]]]],[],false,false,258648466138199,[],null],["t4",2,false,[],0,0,null,null,[],false,false,574804345139398,[],null,[1]],["t5",4,false,[],0,0,null,null,[],false,false,789966150229088,[],null,[]],["t6",5,false,[],0,0,null,null,[],false,false,326196499488777,[],null,[]],["t7",3,false,[],0,0,null,null,[],false,false,543108428148727,[],null,[0,0,0,1,1,600,600,10000,1]],["t8",1,false,[],0,0,null,[["Default",5,false,1,0,false,958466002588718,[["images/logo_senaspin-sheet0.png",320222,0,0,500,474,1,0.5,0.5,[],[],0]]]],[],false,false,314081496619358,[],null],["t9",1,false,[736956649960879],1,0,null,[["Default",5,false,1,0,false,481159122229861,[["images/sprite-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[-0.06400001049041748,-0.5,0.06799900531768799,-0.5,0.05999898910522461,0.5,-0.06400001049041748,0.5],3]]]],[["Pin",6,572280489523181]],false,false,664757919521699,[],null],["t10",1,false,[488237723243052,600776782803620,185642401226140],5,0,null,[["Eraser",5,false,1,0,false,164304031800011,[["images/result-sheet0.png",34224,0,0,375,375,1,0.5013333559036255,0.5013333559036255,[],[],0]]]],[["Pin",6,421989966141643],["FadeOut",7,761299751047976],["FadeIn",7,226753802910959],["LiteTween",10,567435221335929],["MoveTo",11,379085265728954]],false,false,444523267144551,[],null],["t11",0,false,[],0,0,null,null,[],false,false,809229743887590,[],null,["G2800S1T30"]],["t12",1,false,[],0,0,null,[["Default",5,false,1,0,false,797250728583019,[["images/btn_setting-sheet0.png",13202,0,0,99,91,1,0.5050504803657532,0.5054945349693298,[],[-0.3656864762306213,-0.3547005355358124,-0.006272494792938232,-0.5028490424156189,0.355585515499115,-0.3547005355358124,0.485169529914856,-0.005494534969329834,0.3604755401611328,0.349002480506897,-0.006272494792938232,0.4865684509277344,-0.3681314587593079,0.3463574647903442,-0.4977155327796936,-0.005494534969329834],0]]]],[],false,false,398028461964802,[],null],["t13",1,false,[857921985728470,278950321777539],1,0,null,[["Default",5,false,1,0,false,200061264830262,[["images/btn_pause-sheet0.png",11757,0,0,99,91,1,0.5050504803657532,0.5054945349693298,[],[-0.365747481584549,-0.3577375411987305,-0.005050480365753174,-0.5028560161590576,0.3556455373764038,-0.3577375411987305,0.4899744987487793,-0.006813526153564453,0.3581334948539734,0.34938645362854,-0.005050480365753174,0.4892284870147705,-0.365747481584549,0.3467484712600708,-0.4975878000259399,-0.006813526153564453],0]]]],[["MoveTo",11,830881134364014]],false,false,361004780292219,[],null],["t14",1,false,[236270558495095,629382498328285],1,0,null,[["Default",0,false,1,0,false,515736049933236,[["images/btn_music-sheet0.png",13358,0,0,99,91,1,0.5050504803657532,0.5054945349693298,[],[],0],["images/btn_music-sheet1.png",14207,0,0,99,91,1,0.5050504803657532,0.5054945349693298,[],[],0]]]],[["MoveTo",11,498162712626499]],false,false,830302404899779,[],null],["t15",1,false,[],0,0,null,[["Default",5,false,1,0,false,815533558905939,[["images/panel_pause-sheet0.png",168,0,0,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,599049261153219,[],null],["t16",1,false,[],1,0,null,[["Default",5,false,1,0,false,307040591112583,[["images/btn_play-sheet0.png",111520,0,0,400,376,1,0.5,0.5,[],[-0.362500011920929,-0.3537229895591736,0,-0.5,0.362500011920929,-0.3537229895591736,0.497499942779541,0,0.3650000095367432,0.3563830256462097,0,0.5,-0.3650000095367432,0.3563830256462097,-0.5,0],0]]]],[["Sine",12,609989149541772]],false,false,295009651324700,[],null]],[],[["GameSenaSpin",1200,1200,false,"ev_game",672285313999718,[["Main",0,179267880835612,true,[255,255,255],true,0,0,1,false,false,0,0,0,[[[601.5,624,0,750,750,0,0,1,0.5019999742507935,0.5320000052452087,0,0,[]],1,18,[],[[0,0],[0,1,180,0]],[0,"Default",0,1]],[[760.5,468,0,100,100,0,0.7853981852531433,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,25,[[2],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[820.5,621,0,100,100,0,1.570796370506287,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,26,[[3],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[380.4999694824219,626,0,100,100,0,-1.57115375995636,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,27,[[4],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[600.5,845,0,100,100,0,3.141592741012573,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,28,[[5],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[444.4999694824219,778,0,100,100,0,-2.356194734573364,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,29,[[6],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[754.5,780,0,100,100,0,2.356194496154785,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,30,[[7],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[449.4999694824219,471,0,100,100,0,-0.7853984832763672,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,31,[[0],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[601.5,431,0,37,183,0,0,1,0.5,0.5,0,0,[]],9,42,[[1]],[[]],[0,"Default",0,1]],[[484.4999694824219,503,0,37,183,0,-0.7853984832763672,1,0.5,0.5,0,0,[]],9,43,[[0]],[[]],[0,"Default",0,1]],[[601.5,789,0,37,183,0,0,1,0.5,0.5,0,0,[]],9,44,[[5]],[[]],[0,"Default",0,1]],[[489.4999694824219,734,0,37,183,0,-2.356194734573364,1,0.5,0.5,0,0,[]],9,45,[[6]],[[]],[0,"Default",0,1]],[[720.5,500,0,37,183,0,-2.356194734573364,1,0.5,0.5,0,0,[]],9,46,[[2]],[[]],[0,"Default",0,1]],[[452.4999694824219,624,0,37,183,0,-1.570796489715576,1,0.5,0.5,0,0,[]],9,47,[[7]],[[]],[0,"Default",0,1]],[[768.5,623,0,37,183,0,-1.570796489715576,1,0.5,0.5,0,0,[]],9,48,[[3]],[[]],[0,"Default",0,1]],[[719.5,737,0,37,183,0,-0.7853984832763672,1,0.5,0.5,0,0,[]],9,49,[[4]],[[]],[0,"Default",0,1]],[[601.5,621,0,36.35491943359375,197.8274230957031,0,0,1,0.5,0.5,0,0,[]],2,23,[],[],[0,"Default",0,1]],[[602.5,627,0,84.62268829345703,84.62268829345703,0,0,1,0.5,0.5,0,0,[]],3,24,[],[],[0,"Default",0,1]],[[600.5,404,0,100,100,0,0,1,0.5013333559036255,0.5013333559036255,0,0,[]],0,19,[[1],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0]],[0,"Eraser",0,1]],[[1119,1028,0,82.66699981689453,75.98699951171875,0,0,1,0.5050504803657532,0.5054945349693298,0,0,[]],13,8,[[0],[0]],[[1,400,0,0]],[0,"Default",0,1]],[[1118,937,0,82.66699981689453,75.98699951171875,0,0,1,0.5050504803657532,0.5054945349693298,0,0,[]],14,9,[[0],[0]],[[1,400,0,0]],[0,"Default",0,1]],[[1119,1119,0,82.66677093505859,75.98662567138672,0,0,1,0.5050504803657532,0.5054945349693298,0,0,[]],12,10,[],[],[0,"Default",0,1]]],[]],["Layer 1",1,189470759924483,true,[255,255,255],true,0,0,1,false,false,0,0,0,[[[601.5,625,0,75,75,0,0,1,0.5013333559036255,0.5013333559036255,0,0,[]],10,0,[[6],[0],[0]],[[],[0,0,0,0.5,0],[0,0.5,0,0,0],[1,9,23,"2",0,1,1],[1,800,0,0]],[0,"takeAShower",0,1]]],[]],["Pause",2,779407424838293,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[600,600,0,2200,2200,0,0,1,0.5,0.5,0,0,[]],15,11,[],[],[0,"Default",0,1]],[[600,600,0,400,376,0,0,1,0.5,0.5,0,0,[]],16,12,[],[[1,2,0,3,0,0,0,50,0]],[0,"Default",0,1]]],[]],["Logo",3,821328890454595,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[139,132,0,233.7526397705078,221.5975036621094,0,0,1,0.5,0.5,0,0,[]],8,41,[],[],[0,"Default",0,1]]],[]]],[],[]]],[["ev_game",[[2,"btn",false],[1,"isPick",0,0,false,false,260397142300872,false],[1,"isSpin",0,0,false,false,850028566707603,false],[1,"isFinish",0,0,false,false,400133471677362,false],[1,"Paused",0,0,false,false,827669030611856,false],[0,null,false,null,326923712719050,[[-1,13,null,1,false,false,false,393120088090712,false]],[[11,14,null,141821412892623,false],[9,15,"Pin",640354251719937,false,[[4,1],[3,0]]],[0,16,null,212713042017176,false,[[0,[0,120]],[0,[0,120]]]],[10,17,null,141978992715472,false],[7,18,null,532131868741698,false,[[2,["freepik-jolly-vibes",false]],[3,1],[0,[0,-5]],[1,[2,"bg"]]]]],[[0,null,false,null,855866295876321,[[-1,19,null,0,true,false,false,357559140131146,false,[[4,0]]]],[[0,15,"Pin",877592026563873,false,[[4,1],[3,0]]]]],[0,null,false,null,754466701972036,[],[[-1,20,null,367416488446375,false,[[0,[1,0.1]]]],[1,21,null,299747642226430,false,[[0,[19,22,[[0,0],[0,350]]]]]]]]]],[0,null,false,null,946444113718006,[[11,23,null,1,false,false,false,992702251633266,false]],[[5,24,null,651608518392822,false,[[3,0],[7,[2,"Load dữ liệu xong"]]]],[5,24,null,235362025728903,false,[[3,0],[7,[20,11,25,true,null]]]]],[[0,null,false,null,944026446238678,[],[[11,26,null,404980567624956,false]]]]],[0,null,false,null,673648449966889,[[11,27,null,1,false,false,false,989782416815969,false]],[[5,24,null,722860375493846,false,[[3,0],[7,[10,[10,[10,[2,"Question :"],[20,11,28,true,null]],[2," with value : "]],[20,11,29,true,null]]]]],[5,24,null,332852034219400,false,[[3,0],[7,[10,[10,[10,[2,"Request :"],[20,11,30,true,null]],[2," with value : "]],[20,11,31,true,null]]]]],[5,24,null,351622917939549,false,[[3,0],[7,[10,[2,"Options Count :"],[20,11,32,false,null]]]]],[5,24,null,418040732556019,false,[[3,0],[7,[10,[2,"Hint Count :"],[20,11,33,false,null]]]]]]],[0,null,false,null,714518450290961,[[4,34,null,1,false,false,false,103339942296012,false,[[4,3]]],[-1,35,null,0,false,false,false,604463923346944,false,[[11,"isFinish"],[8,0],[7,[0,0]]]],[-1,35,null,0,false,false,false,178401232092900,false,[[11,"Paused"],[8,0],[7,[0,0]]]]],[[-1,36,null,804427421197410,false,[[11,"isSpin"],[7,[0,1]]]],[-1,36,null,552418896077661,false,[[11,"isFinish"],[7,[0,1]]]],[1,37,"Rotate2",635657467692846,false,[[3,1]]],[1,38,"Rotate2",512831691592449,false,[[0,[0,360]]]],[0,39,"FadeIn",941402807328041,false],[0,40,null,620641890676562,false,[[0,[0,100]]]],[0,16,null,284655109401994,false,[[0,[0,150]],[0,[0,150]]]]]],[0,null,false,null,801999007055380,[[-1,41,null,0,false,false,false,406533940383443,false]],[],[[0,null,false,null,566329800412062,[[1,42,"Rotate2",0,false,false,false,298168821486408,false,[[8,4],[0,[0,10]]]],[-1,35,null,0,false,false,false,823412158593859,false,[[11,"isSpin"],[8,0],[7,[0,1]]]]],[[7,43,null,963469800567149,false,[[1,[2,"bg"]]]]],[[0,null,false,null,670734289407612,[[2,44,null,0,false,false,false,374058760689301,false,[[4,9]]],[7,45,null,0,false,true,false,650546078523896,false]],[[7,18,null,666662405801226,false,[[2,["click",false]],[3,0],[0,[0,10]],[1,[2,""]]]]]]]],[0,null,false,null,506020280821878,[[1,42,"Rotate2",0,false,false,false,405751718113891,false,[[8,3],[0,[0,0]]]]],[[1,37,"Rotate2",296454219663360,false,[[3,0]]]]],[0,null,false,null,164878968048687,[[1,42,"Rotate2",0,false,false,false,197348805157567,false,[[8,3],[0,[0,10]]]]],[[1,38,"Rotate2",158740452420725,false,[[0,[0,0]]]]],[[0,null,false,null,953544344411942,[[2,44,null,0,false,false,false,217099074764117,false,[[4,9]]],[-1,46,null,0,false,false,false,141969485661203,false,[[7,[20,9,47,false,null]],[8,3],[7,[20,2,47,false,null]]]],[-1,48,null,0,false,false,false,609918431247866,false]],[[1,38,"Rotate2",208991309183481,false,[[0,[0,0]]]],[1,37,"Rotate2",599093266742347,false,[[3,0]]],[-1,36,null,399649430329398,false,[[11,"isPick"],[7,[21,9,false,null,0]]]],[6,49,null,248950825458957,false,[[1,[2,"Anim"]],[13]]],[-1,36,null,108493634118107,false,[[11,"isSpin"],[7,[0,0]]]]],[[0,null,false,null,278446103010288,[[-1,19,null,0,true,false,false,888894215646174,false,[[4,0]]]],[],[[0,null,false,null,617563677313954,[[9,44,null,0,false,false,false,305231661511527,false,[[4,0]]]],[[-1,20,null,231995691284044,false,[[0,[0,1]]]],[-1,50,null,244008286331510,false,[[5,[2,"Layer 1"]],[3,1]]],[-1,51,null,721978553122792,false,[[4,10],[5,[2,"Layer 1"]],[0,[0,737]],[0,[0,461]]]],[10,16,null,417439853155922,false,[[0,[0,100]],[0,[0,100]]]],[10,52,null,426925891746609,false,[[1,[20,0,53,true,null]],[3,1]]],[10,39,"FadeIn",649364872967198,false],[7,18,null,585036260097271,false,[[2,["pop-402324",false]],[3,0],[0,[0,0]],[1,[2,""]]]],[10,54,"MoveTo",794136487542371,false,[[0,[1,601.5]],[0,[0,625]]]],[11,55,null,806320990857713,false,[[7,[2,"Slot.num"]]]],[11,56,null,270849675777937,false]]],[0,null,false,null,813797364605918,[],[[-1,20,null,639068190323292,false,[[0,[1,0.5]]]],[0,39,"FadeOut",375093031966086,false]]]]]]]]],[0,null,false,null,658318280936979,[[1,42,"Rotate2",0,false,false,false,978029976402493,false,[[8,5],[0,[0,480]]]]],[[1,38,"Rotate2",616517686904130,false,[[0,[0,-60]]]]]]]],[0,null,false,null,279835097319765,[[6,57,null,2,false,false,false,447230031312203,false,[[1,[2,"Anim"]]]]],[],[[0,null,false,null,949165971768047,[[-1,19,null,0,true,false,false,200683748681145,false,[[4,0]]]],[],[[0,null,false,null,125658291466330,[[0,44,null,0,false,false,false,815578331634846,false,[[4,9]]],[9,58,null,0,false,false,false,424767694448606,false,[[10,0],[8,0],[7,[23,"isPick"]]]]],[]],[0,null,false,null,914338506819357,[[-1,59,null,0,false,false,false,477542400066241,false]],[[0,39,"FadeOut",680502296192025,false],[0,40,null,878548530969899,false,[[0,[0,0]]]]]]]]]],[0,null,false,null,785565938926690,[[4,34,null,1,false,false,false,511172151672437,false,[[4,10]]],[-1,35,null,0,false,false,false,760092456489208,false,[[11,"isFinish"],[8,0],[7,[0,1]]]],[-1,35,null,0,false,false,false,617754812537580,false,[[11,"Paused"],[8,0],[7,[0,0]]]]],[[10,17,null,621149372628348,false],[-1,50,null,878454330351439,false,[[5,[2,"Layer 1"]],[3,0]]],[-1,36,null,952139886560872,false,[[11,"isFinish"],[7,[0,0]]]],[0,39,"FadeIn",985536928341181,false]]],[0,null,false,null,414587908104687,[[11,60,null,1,false,false,false,105303256318349,false]],[[-1,36,null,482337701539321,false,[[11,"Paused"],[7,[0,1]]]]]],[0,null,false,null,991296400253445,[[11,61,null,1,false,false,false,880040756377610,false]],[[-1,36,null,543507125121051,false,[[11,"Paused"],[7,[0,0]]]]]]]],["btn",[[0,null,false,null,970133209687090,[[-1,13,null,1,false,false,false,931701427158563,false]],[[-1,50,null,312456359573087,false,[[5,[2,"Pause"]],[3,0]]],[13,62,null,412519227371237,false,[[10,0],[7,[20,13,63,false,null]]]],[13,62,null,567518695162292,false,[[10,1],[7,[20,13,47,false,null]]]],[13,64,null,842724708703146,false,[[0,[20,12,63,false,null]],[0,[20,12,47,false,null]]]],[14,62,null,618399757534769,false,[[10,0],[7,[20,14,63,false,null]]]],[14,62,null,814845487670743,false,[[10,1],[7,[20,14,47,false,null]]]],[14,64,null,549277435680073,false,[[0,[20,12,63,false,null]],[0,[20,12,47,false,null]]]]]],[0,null,false,null,207844448419337,[[4,34,null,1,false,false,false,753984974046090,false,[[4,12]]],[-1,65,null,0,false,false,false,300709261758841,false,[[5,[2,"Main"]]]],[-1,35,null,0,false,false,false,557916420915488,false,[[11,"Paused"],[8,0],[7,[0,0]]]]],[],[[0,null,false,null,855448137374781,[[14,66,null,0,false,false,false,660639756406562,false,[[8,0],[0,[20,12,47,false,null]]]]],[[7,18,null,758469297454495,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[13,54,"MoveTo",297154488082806,false,[[0,[21,13,false,null,0]],[0,[21,13,false,null,1]]]],[14,54,"MoveTo",805752852528212,false,[[0,[21,14,false,null,0]],[0,[21,14,false,null,1]]]]]],[0,null,false,null,920812534579926,[[14,66,null,0,false,false,false,606600468651463,false,[[8,0],[0,[21,14,false,null,1]]]]],[[7,18,null,432346780945783,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[13,67,"MoveTo",298609382673148,false,[[4,12]]],[14,67,"MoveTo",939775229377749,false,[[4,12]]]]]]],[0,null,false,null,346728652143791,[[4,34,null,1,false,false,false,423707932753962,false,[[4,14]]],[14,66,null,0,false,false,false,677211523548698,false,[[8,0],[0,[21,14,false,null,1]]]],[-1,35,null,0,false,false,false,912684378286095,false,[[11,"Paused"],[8,0],[7,[0,0]]]]],[[7,18,null,667738595423673,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]]],[[0,null,false,null,859993253312825,[[14,68,null,0,false,false,false,587413026567287,false,[[8,0],[0,[0,0]]]]],[[14,69,null,663054391364066,false,[[0,[0,1]]]],[7,70,null,885678763472832,false,[[3,0]]]]],[0,null,false,null,688972582139091,[[-1,59,null,0,false,false,false,577396874853351,false]],[[14,69,null,732128961548779,false,[[0,[0,0]]]],[7,70,null,863375260517197,false,[[3,1]]]]]]],[0,null,false,null,777401463254941,[[4,34,null,1,false,false,false,519557743169325,false,[[4,13]]],[13,66,null,0,false,false,false,624830033686692,false,[[8,0],[0,[21,13,false,null,1]]]],[-1,35,null,0,false,false,false,832041475046481,false,[[11,"Paused"],[8,0],[7,[0,0]]]]],[[7,18,null,244484960215834,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[11,56,null,359528604867164,false],[13,67,"MoveTo",942383830784799,false,[[4,12]]],[14,67,"MoveTo",786054649985767,false,[[4,12]]],[-1,20,null,926504593024435,false,[[0,[1,0.5]]]],[-1,50,null,153969149421628,false,[[5,[2,"Main"]],[3,0]]],[-1,50,null,899659088091637,false,[[5,[2,"Pause"]],[3,1]]]]],[0,null,false,null,125056227818137,[[4,34,null,1,false,false,false,737358601057824,false,[[4,16]]],[-1,65,null,0,false,false,false,536957875058432,false,[[5,[2,"Pause"]]]]],[[7,18,null,433421125159382,false,[[2,["click",false]],[3,0],[0,[0,-2]],[1,[2,""]]]],[11,71,null,431416984383351,false],[-1,50,null,612830316490482,false,[[5,[2,"Main"]],[3,1]]],[-1,50,null,986253621997318,false,[[5,[2,"Pause"]],[3,0]]]]]]]],[["click.ogg",5621],["pop-402324.ogg",11710],["freepik-jolly-vibes.ogg",829688]],"media/",false,1200,1200,4,true,true,true,"1.0.0.0",true,false,3,0,50,false,true,1,true,"GameSenaSpin",0,[]]} \ No newline at end of file diff --git a/GameSenaSpin/images/back-sheet0.png b/GameSenaSpin/images/back-sheet0.png deleted file mode 100644 index 2618da6..0000000 Binary files a/GameSenaSpin/images/back-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/back2-sheet0.png b/GameSenaSpin/images/back2-sheet0.png deleted file mode 100644 index ac3c19b..0000000 Binary files a/GameSenaSpin/images/back2-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/bg-sheet0.png b/GameSenaSpin/images/bg-sheet0.png deleted file mode 100644 index 2ea0e6b..0000000 Binary files a/GameSenaSpin/images/bg-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/circle-sheet0.png b/GameSenaSpin/images/btn_circle-sheet0.png similarity index 100% rename from GameSenaSpin/images/circle-sheet0.png rename to GameSenaSpin/images/btn_circle-sheet0.png diff --git a/GameSenaSpin/images/layer-sheet0.png b/GameSenaSpin/images/btn_play-sheet0.png similarity index 100% rename from GameSenaSpin/images/layer-sheet0.png rename to GameSenaSpin/images/btn_play-sheet0.png diff --git a/GameSenaSpin/images/button-sheet0.png b/GameSenaSpin/images/button-sheet0.png deleted file mode 100644 index c1ed491..0000000 Binary files a/GameSenaSpin/images/button-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/eddy-sheet0.png b/GameSenaSpin/images/eddy-sheet0.png deleted file mode 100644 index 8e41a11..0000000 Binary files a/GameSenaSpin/images/eddy-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/eddy_schatbox-sheet0.png b/GameSenaSpin/images/eddy_schatbox-sheet0.png deleted file mode 100644 index a76333e..0000000 Binary files a/GameSenaSpin/images/eddy_schatbox-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/frame-sheet0.png b/GameSenaSpin/images/frame-sheet0.png deleted file mode 100644 index f5ea5aa..0000000 Binary files a/GameSenaSpin/images/frame-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/khung_thoai3-sheet0.png b/GameSenaSpin/images/khung_thoai3-sheet0.png deleted file mode 100644 index 327f690..0000000 Binary files a/GameSenaSpin/images/khung_thoai3-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/khung_vuong-sheet0.png b/GameSenaSpin/images/khung_vuong-sheet0.png deleted file mode 100644 index 3b1b867..0000000 Binary files a/GameSenaSpin/images/khung_vuong-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/khunganh-sheet0.png b/GameSenaSpin/images/khunganh-sheet0.png deleted file mode 100644 index 5c6fb9a..0000000 Binary files a/GameSenaSpin/images/khunganh-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/koala-sheet0.png b/GameSenaSpin/images/koala-sheet0.png deleted file mode 100644 index a031c0f..0000000 Binary files a/GameSenaSpin/images/koala-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/koala_rmbg_-sheet0.png b/GameSenaSpin/images/koala_rmbg_-sheet0.png deleted file mode 100644 index ccba0a6..0000000 Binary files a/GameSenaSpin/images/koala_rmbg_-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/logogame-sheet0.png b/GameSenaSpin/images/logo_senaspin-sheet0.png similarity index 100% rename from GameSenaSpin/images/logogame-sheet0.png rename to GameSenaSpin/images/logo_senaspin-sheet0.png diff --git a/GameSenaSpin/images/no-sheet0.png b/GameSenaSpin/images/no-sheet0.png deleted file mode 100644 index 6294866..0000000 Binary files a/GameSenaSpin/images/no-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/no-sheet1.png b/GameSenaSpin/images/no-sheet1.png deleted file mode 100644 index 7dd259b..0000000 Binary files a/GameSenaSpin/images/no-sheet1.png and /dev/null differ diff --git a/GameSenaSpin/images/pic-sheet0.png b/GameSenaSpin/images/pic-sheet0.png deleted file mode 100644 index f1407ba..0000000 Binary files a/GameSenaSpin/images/pic-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/quit-sheet0.png b/GameSenaSpin/images/quit-sheet0.png deleted file mode 100644 index b4edf44..0000000 Binary files a/GameSenaSpin/images/quit-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/quit2-sheet0.png b/GameSenaSpin/images/quit2-sheet0.png deleted file mode 100644 index 519818d..0000000 Binary files a/GameSenaSpin/images/quit2-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/quit3-sheet0.png b/GameSenaSpin/images/quit3-sheet0.png deleted file mode 100644 index 5fdcfde..0000000 Binary files a/GameSenaSpin/images/quit3-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/result-sheet0.png b/GameSenaSpin/images/result-sheet0.png index 3be3744..6b79522 100644 Binary files a/GameSenaSpin/images/result-sheet0.png and b/GameSenaSpin/images/result-sheet0.png differ diff --git a/GameSenaSpin/images/result-sheet1.png b/GameSenaSpin/images/result-sheet1.png deleted file mode 100644 index 71dc87e..0000000 Binary files a/GameSenaSpin/images/result-sheet1.png and /dev/null differ diff --git a/GameSenaSpin/images/school_khungvuong2-sheet0.png b/GameSenaSpin/images/school_khungvuong2-sheet0.png deleted file mode 100644 index cd682af..0000000 Binary files a/GameSenaSpin/images/school_khungvuong2-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/soundon-sheet0.png b/GameSenaSpin/images/soundon-sheet0.png deleted file mode 100644 index bd786b8..0000000 Binary files a/GameSenaSpin/images/soundon-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/spritefont.png b/GameSenaSpin/images/spritefont.png deleted file mode 100644 index a99dab2..0000000 Binary files a/GameSenaSpin/images/spritefont.png and /dev/null differ diff --git a/GameSenaSpin/images/txt-sheet0.png b/GameSenaSpin/images/txt-sheet0.png deleted file mode 100644 index 4f42b65..0000000 Binary files a/GameSenaSpin/images/txt-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/images/txt_question.png b/GameSenaSpin/images/txt_question.png deleted file mode 100644 index 8d761bd..0000000 Binary files a/GameSenaSpin/images/txt_question.png and /dev/null differ diff --git a/GameSenaSpin/images/zoom-sheet0.png b/GameSenaSpin/images/zoom-sheet0.png deleted file mode 100644 index 7f8b9a5..0000000 Binary files a/GameSenaSpin/images/zoom-sheet0.png and /dev/null differ diff --git a/GameSenaSpin/index.html b/GameSenaSpin/index.html index 95d9ecd..780f521 100644 --- a/GameSenaSpin/index.html +++ b/GameSenaSpin/index.html @@ -3,7 +3,7 @@ - Family-G5-U5-L3-1 + GameSenaSpin @@ -64,7 +64,7 @@ - + diff --git a/GameSenaSpin/media/0909.m4a b/GameSenaSpin/media/0909.m4a deleted file mode 100644 index 99163c6..0000000 Binary files a/GameSenaSpin/media/0909.m4a and /dev/null differ diff --git a/GameSenaSpin/media/0909.ogg b/GameSenaSpin/media/0909.ogg deleted file mode 100644 index a197397..0000000 Binary files a/GameSenaSpin/media/0909.ogg and /dev/null differ diff --git a/GameSenaSpin/media/click.m4a b/GameSenaSpin/media/click.m4a deleted file mode 100644 index 8874ebe..0000000 Binary files a/GameSenaSpin/media/click.m4a and /dev/null differ diff --git a/GameSenaSpin/media/correct-156911.ogg b/GameSenaSpin/media/correct-156911.ogg deleted file mode 100644 index 1fe9aad..0000000 Binary files a/GameSenaSpin/media/correct-156911.ogg and /dev/null differ diff --git a/GameSenaSpin/media/correct.m4a b/GameSenaSpin/media/correct.m4a deleted file mode 100644 index e796026..0000000 Binary files a/GameSenaSpin/media/correct.m4a and /dev/null differ diff --git a/GameSenaSpin/media/correct.ogg b/GameSenaSpin/media/correct.ogg deleted file mode 100644 index 0d86e4f..0000000 Binary files a/GameSenaSpin/media/correct.ogg and /dev/null differ diff --git a/GameSenaSpin/media/error-04-199275.ogg b/GameSenaSpin/media/error-04-199275.ogg deleted file mode 100644 index 950272d..0000000 Binary files a/GameSenaSpin/media/error-04-199275.ogg and /dev/null differ diff --git a/GameSenaSpin/media/fail.m4a b/GameSenaSpin/media/fail.m4a deleted file mode 100644 index eb8f31f..0000000 Binary files a/GameSenaSpin/media/fail.m4a and /dev/null differ diff --git a/GameSenaSpin/media/fail.ogg b/GameSenaSpin/media/fail.ogg deleted file mode 100644 index 2a4f445..0000000 Binary files a/GameSenaSpin/media/fail.ogg and /dev/null differ diff --git a/GameSenaSpin/media/freepik-jolly-vibes.ogg b/GameSenaSpin/media/freepik-jolly-vibes.ogg new file mode 100644 index 0000000..c9ba045 Binary files /dev/null and b/GameSenaSpin/media/freepik-jolly-vibes.ogg differ diff --git a/GameSenaSpin/media/pop-402324-1.m4a b/GameSenaSpin/media/pop-402324-1.m4a deleted file mode 100644 index 2d615ff..0000000 Binary files a/GameSenaSpin/media/pop-402324-1.m4a and /dev/null differ diff --git a/GameSenaSpin/media/pop-402324.m4a b/GameSenaSpin/media/pop-402324.m4a deleted file mode 100644 index 2d615ff..0000000 Binary files a/GameSenaSpin/media/pop-402324.m4a and /dev/null differ diff --git a/GameSenaSpin/media/sound_bg.m4a b/GameSenaSpin/media/sound_bg.m4a deleted file mode 100644 index f15983f..0000000 Binary files a/GameSenaSpin/media/sound_bg.m4a and /dev/null differ diff --git a/GameSenaSpin/media/sound_bg.ogg b/GameSenaSpin/media/sound_bg.ogg deleted file mode 100644 index 7fed22b..0000000 Binary files a/GameSenaSpin/media/sound_bg.ogg and /dev/null differ diff --git a/GameSenaSpin/media/successed-295058.ogg b/GameSenaSpin/media/successed-295058.ogg deleted file mode 100644 index 0f80508..0000000 Binary files a/GameSenaSpin/media/successed-295058.ogg and /dev/null differ diff --git a/GameSenaSpin/media/wrong-answer-129254.ogg b/GameSenaSpin/media/wrong-answer-129254.ogg deleted file mode 100644 index ba7e16f..0000000 Binary files a/GameSenaSpin/media/wrong-answer-129254.ogg and /dev/null differ diff --git a/GameSenaSpin/offline.js b/GameSenaSpin/offline.js index 32bd9ce..c405109 100644 --- a/GameSenaSpin/offline.js +++ b/GameSenaSpin/offline.js @@ -1,65 +1,26 @@ { - "version": 1770088038, + "version": 1770201980, "fileList": [ "data.js", "c2runtime.js", "jquery-3.4.1.min.js", "offlineClient.js", - "images/bg-sheet0.png", - "images/koala_rmbg_-sheet0.png", - "images/khung_thoai3-sheet0.png", - "images/khung_vuong-sheet0.png", "images/slot-sheet0.png", - "images/no-sheet0.png", - "images/no-sheet1.png", - "images/spritefont.png", - "images/soundon-sheet0.png", - "images/frame-sheet0.png", "images/spin-sheet0.png", "images/pen-sheet0.png", - "images/circle-sheet0.png", - "images/txt-sheet0.png", - "images/quit-sheet0.png", - "images/quit2-sheet0.png", - "images/logogame-sheet0.png", - "images/quit3-sheet0.png", + "images/btn_circle-sheet0.png", + "images/logo_senaspin-sheet0.png", "images/sprite-sheet0.png", - "images/back-sheet0.png", "images/result-sheet0.png", - "images/result-sheet1.png", - "images/koala-sheet0.png", - "images/eddy-sheet0.png", - "images/eddy_schatbox-sheet0.png", - "images/pic-sheet0.png", - "images/school_khungvuong2-sheet0.png", - "images/khunganh-sheet0.png", - "images/button-sheet0.png", - "images/zoom-sheet0.png", - "images/back2-sheet0.png", - "images/txt_question.png", "images/btn_setting-sheet0.png", "images/btn_pause-sheet0.png", "images/btn_music-sheet0.png", "images/btn_music-sheet1.png", "images/panel_pause-sheet0.png", - "images/layer-sheet0.png", - "media/click.m4a", + "images/btn_play-sheet0.png", "media/click.ogg", - "media/correct.m4a", - "media/correct.ogg", - "media/fail.m4a", - "media/fail.ogg", - "media/sound_bg.m4a", - "media/sound_bg.ogg", - "media/0909.m4a", - "media/0909.ogg", - "media/pop-402324.m4a", "media/pop-402324.ogg", - "media/correct-156911.ogg", - "media/error-04-199275.ogg", - "media/pop-402324-1.m4a", - "media/successed-295058.ogg", - "media/wrong-answer-129254.ogg", + "media/freepik-jolly-vibes.ogg", "icon-16.png", "icon-32.png", "icon-114.png", diff --git a/GameSenaSpin/tdv_sdk.js b/GameSenaSpin/tdv_sdk.js index 604b3b6..a1bd6a1 100644 --- a/GameSenaSpin/tdv_sdk.js +++ b/GameSenaSpin/tdv_sdk.js @@ -1,105 +1,105 @@ -var tdv_sdk = {}; -tdv_sdk.listText = [ - { - id : 0, - value : "", - answer: [ - { - name: "Green", - isCorrect: 1 - }, - { - name: "Yellow", - isCorrect: 0 - } - ], - audio : "https://audio.senaai.vn/audio/en_female_1_i_have_colored_paper_but_i_dont_have_colored_penci.mp3" - }, - { - id : 1, - value : "", - answer: [ - { - name: "Red", - isCorrect: 1 - }, - { - name: "Pink", - isCorrect: 0 - } - ], - audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pear_but_i_dont_have_an_apple.mp3" - }, - { - id : 2, - value : "", - answer: [ - { - name: "Purple", - isCorrect: 1 - }, - { - name: "Orange", - isCorrect: 0 - } - ], - audio : "https://audio.senaai.vn/audio/en_female_1_i_have_rulers_but_i_dont_have_erasers.mp3" - }, - { - id : 3, - value : "", - answer: [ - { - name: "Black", - isCorrect: 1 - }, - { - name: "Gray", - isCorrect: 0 - } - ], - audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pencil_sharpener_but_i_dont_have_glue.mp3" - } -]; -tdv_sdk.index = 0; -tdv_sdk.getQuestion = function() { - tdv_sdk.question = tdv_sdk.listText[tdv_sdk.index]; - tdv_sdk.shuffleArray(tdv_sdk.question.answer); -}; -tdv_sdk.getQuestionID = function() { - return tdv_sdk.question.id; -}; -tdv_sdk.getAnswerNameByIndex = function(index) { - if (tdv_sdk.question && tdv_sdk.question.answer) { - return tdv_sdk.question.answer[index].name; - } - return 0; -}; -tdv_sdk.getAnswerCorrectByIndex = function(index) { - if (tdv_sdk.question && tdv_sdk.question.answer) { - return tdv_sdk.question.answer[index].isCorrect; - } - return 0; -}; -tdv_sdk.shuffleArray = function(array) { - for (let i = array.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [array[i], array[j]] = [array[j], array[i]]; - } -}; -tdv_sdk.nextQuestion = function() { - tdv_sdk.index++; -}; -tdv_sdk.getComplete = function() { - return tdv_sdk.index; -} -tdv_sdk.playSound = function() { - if (tdv_sdk.question && tdv_sdk.question.audio) { - const audio = new Audio(tdv_sdk.question.audio); - audio.play(); - } -}; -tdv_sdk.playIntroSound = function() { - const introAudio = new Audio("https://audio.senaai.vn/audio/en_female_1_spin_the_wheel_what_time_do_you_i_at_oclock.mp3"); - introAudio.play(); -}; +// var tdv_sdk = {}; +// tdv_sdk.listText = [ +// { +// id : 0, +// value : "", +// answer: [ +// { +// name: "Green", +// isCorrect: 1 +// }, +// { +// name: "Yellow", +// isCorrect: 0 +// } +// ], +// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_colored_paper_but_i_dont_have_colored_penci.mp3" +// }, +// { +// id : 1, +// value : "", +// answer: [ +// { +// name: "Red", +// isCorrect: 1 +// }, +// { +// name: "Pink", +// isCorrect: 0 +// } +// ], +// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pear_but_i_dont_have_an_apple.mp3" +// }, +// { +// id : 2, +// value : "", +// answer: [ +// { +// name: "Purple", +// isCorrect: 1 +// }, +// { +// name: "Orange", +// isCorrect: 0 +// } +// ], +// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_rulers_but_i_dont_have_erasers.mp3" +// }, +// { +// id : 3, +// value : "", +// answer: [ +// { +// name: "Black", +// isCorrect: 1 +// }, +// { +// name: "Gray", +// isCorrect: 0 +// } +// ], +// audio : "https://audio.senaai.vn/audio/en_female_1_i_have_a_pencil_sharpener_but_i_dont_have_glue.mp3" +// } +// ]; +// tdv_sdk.index = 0; +// tdv_sdk.getQuestion = function() { +// tdv_sdk.question = tdv_sdk.listText[tdv_sdk.index]; +// tdv_sdk.shuffleArray(tdv_sdk.question.answer); +// }; +// tdv_sdk.getQuestionID = function() { +// return tdv_sdk.question.id; +// }; +// tdv_sdk.getAnswerNameByIndex = function(index) { +// if (tdv_sdk.question && tdv_sdk.question.answer) { +// return tdv_sdk.question.answer[index].name; +// } +// return 0; +// }; +// tdv_sdk.getAnswerCorrectByIndex = function(index) { +// if (tdv_sdk.question && tdv_sdk.question.answer) { +// return tdv_sdk.question.answer[index].isCorrect; +// } +// return 0; +// }; +// tdv_sdk.shuffleArray = function(array) { +// for (let i = array.length - 1; i > 0; i--) { +// const j = Math.floor(Math.random() * (i + 1)); +// [array[i], array[j]] = [array[j], array[i]]; +// } +// }; +// tdv_sdk.nextQuestion = function() { +// tdv_sdk.index++; +// }; +// tdv_sdk.getComplete = function() { +// return tdv_sdk.index; +// } +// tdv_sdk.playSound = function() { +// if (tdv_sdk.question && tdv_sdk.question.audio) { +// const audio = new Audio(tdv_sdk.question.audio); +// audio.play(); +// } +// }; +// tdv_sdk.playIntroSound = function() { +// const introAudio = new Audio("https://audio.senaai.vn/audio/en_female_1_spin_the_wheel_what_time_do_you_i_at_oclock.mp3"); +// introAudio.play(); +// }; diff --git a/source/GameSenaSpin_v0.2.capx b/source/GameSenaSpin_v0.2.capx new file mode 100644 index 0000000..1e5ceed Binary files /dev/null and b/source/GameSenaSpin_v0.2.capx differ