Initial GDevelop project import

This commit is contained in:
2026-07-28 10:47:32 -04:00
parent 8a5417b59e
commit 8bf6a02036
137 changed files with 29483 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(a){let b;(function(p){let j;(function(r){r.setCameraX=function(t,e,n,s){!t.hasLayer(n)||t.getLayer(n).setCameraX(e,s)},r.setCameraY=function(t,e,n,s){!t.hasLayer(n)||t.getLayer(n).setCameraY(e,s)},r.getCameraX=function(t,e,n){return t.hasLayer(e)?t.getLayer(e).getCameraX():0},r.getCameraY=function(t,e,n){return t.hasLayer(e)?t.getLayer(e).getCameraY():0},r.getCameraWidth=function(t,e,n){return t.hasLayer(e)?t.getLayer(e).getCameraWidth():0},r.getCameraHeight=function(t,e,n){return t.hasLayer(e)?t.getLayer(e).getCameraHeight():0},r.getCameraBorderLeft=function(t,e,n){return t.hasLayer(e)?r.getCameraX(t,e,n)-r.getCameraWidth(t,e,n)/2:0},r.getCameraBorderRight=function(t,e,n){return t.hasLayer(e)?r.getCameraX(t,e,n)+r.getCameraWidth(t,e,n)/2:0},r.getCameraBorderTop=function(t,e,n){return t.hasLayer(e)?r.getCameraY(t,e,n)-r.getCameraHeight(t,e,n)/2:0},r.getCameraBorderBottom=function(t,e,n){return t.hasLayer(e)?r.getCameraY(t,e,n)+r.getCameraHeight(t,e,n)/2:0},r.showLayer=function(t,e){if(!!t.hasLayer(e))return t.getLayer(e).show(!0)},r.hideLayer=function(t,e){if(!!t.hasLayer(e))return t.getLayer(e).show(!1)},r.layerIsVisible=function(t,e){return t.hasLayer(e)&&t.getLayer(e).isVisible()},r.setCameraRotation=function(t,e,n,s){if(!!t.hasLayer(n))return t.getLayer(n).setCameraRotation(e,s)},r.getCameraRotation=function(t,e,n){return t.hasLayer(e)?t.getLayer(e).getCameraRotation(n):0},r.getCameraZoom=function(t,e,n){return t.hasLayer(e)?t.getLayer(e).getCameraZoom(n):0},r.setCameraZoom=function(t,e,n,s){if(!!t.hasLayer(n))return t.getLayer(n).setCameraZoom(e,s)},r.centerCamera=function(t,e,n,s,o){if(!t.hasLayer(s)||e==null)return;let f=0,i=0;if(n&&!e.hasNoForces()){const u=e.getAverageForce(),L=e.getElapsedTime()/1e3;f=u.getX()*L,i=u.getY()*L}const g=t.getLayer(s);g.setCameraX(e.getCenterXInScene()+f,o),g.setCameraY(e.getCenterYInScene()+i,o)},r.centerCameraWithinLimits=function(t,e,n,s,o,f,i,g,u){r.centerCamera(t,e,i,g,u),r.clampCamera(t,n,s,o,f,g,u)},r.clampCamera=function(t,e,n,s,o,f,i){if(!t.hasLayer(f))return;const g=t.getLayer(f),u=g.getCameraWidth(i)/2,L=g.getCameraHeight(i)/2,m=e+u,c=s-u,h=n+L,d=o-L,B=m<c?a.evtTools.common.clamp(g.getCameraX(i),m,c):(m+c)/2,E=h<d?a.evtTools.common.clamp(g.getCameraY(i),h,d):(h+d)/2;g.setCameraX(B,i),g.setCameraY(E,i)},r.setLayerEffectDoubleParameter=function(t,e,n,s,o){if(!!t.hasLayer(e))return t.getLayer(e).setEffectDoubleParameter(n,s,o)},r.setLayerEffectStringParameter=function(t,e,n,s,o){if(!!t.hasLayer(e))return t.getLayer(e).setEffectStringParameter(n,s,o)},r.setLayerEffectBooleanParameter=function(t,e,n,s,o){if(!!t.hasLayer(e))return t.getLayer(e).setEffectBooleanParameter(n,s,o)},r.enableLayerEffect=function(t,e,n,s){!t.hasLayer(e)||t.getLayer(e).enableEffect(n,s)},r.layerEffectEnabled=function(t,e,n){return t.hasLayer(e)?t.getLayer(e).isEffectEnabled(n):!0},r.setLayerTimeScale=function(t,e,n){if(!!t.hasLayer(e))return t.getLayer(e).setTimeScale(n)},r.getLayerTimeScale=function(t,e){return t.hasLayer(e)?t.getLayer(e).getTimeScale():1},r.setLayerDefaultZOrder=function(t,e,n){if(!!t.hasLayer(e))return t.getLayer(e).setDefaultZOrder(n)},r.getLayerDefaultZOrder=function(t,e){return t.hasLayer(e)?t.getLayer(e).getDefaultZOrder():0},r.setLayerAmbientLightColor=function(t,e,n){if(!t.hasLayer(e)||!t.getLayer(e).isLightingLayer())return;const s=a.rgbOrHexToRGBColor(n);return t.getLayer(e).setClearColor(s[0],s[1],s[2])}})(j=p.camera||(p.camera={}))})(b=a.evtTools||(a.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=cameratools.js.map
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(o){let s;(function(u){let p;(function(n){n.toNumber=function(t){return parseFloat(t)},n.toString=function(t){return""+t},n.logicalNegation=function(t){return!t},n.normalize=function(t,e,r){return e===r?r:(t-e)/(r-e)},n.clamp=function(t,e,r){return Math.min(Math.max(t,e),r)},n.acosh=function(t){return Math.log(t+Math.sqrt(t*t-1))},n.asinh=function(t){return Math.log(t+Math.sqrt(t*t+1))},n.atanh=function(t){return .5*Math.log((1+t)/(1-t))},n.cosh=function(t){return(Math.exp(t)+Math.exp(-t))/2},n.sinh=function(t){return(Math.exp(t)-Math.exp(-t))/2},n.tanh=function(t){return(Math.exp(t)-Math.exp(-t))/(Math.exp(t)+Math.exp(-t))},n.cot=function(t){return 1/Math.tan(t)},n.csc=function(t){return 1/Math.sin(t)},n.sec=function(t){return 1/Math.cos(t)},n.log10=function(t){return Math.log(t)/Math.LN10},n.log2=function(t){return Math.log(t)/Math.LN2},n.sign=function(t){return t===0?0:t>0?1:-1},n.cbrt=function(t){return Math.pow(t,1/3)},n.nthroot=function(t,e){return Math.pow(t,1/e)},n.mod=function(t,e){return t-e*Math.floor(t/e)},n.angleDifference=function(t,e){return o.evtTools.common.mod(o.evtTools.common.mod(t-e,360)+180,360)-180},n.angleBetweenPositions=function(t,e,r,i){return Math.atan2(i-e,r-t)*180/Math.PI},n.distanceBetweenPositions=function(t,e,r,i){return Math.sqrt((t-r)*(t-r)+(e-i)*(e-i))},n.lerp=function(t,e,r){return t+(e-t)*r},n.exponentialInterpolation=(t,e,r)=>{if(r===0)return t;if(r===1)return e;if(t<=0||e<=0)return 0;const i=Math.log(t),l=Math.log(e);return Math.exp(i+(l-i)*r)},n.trunc=function(t){return t|0},n.getXFromAngleAndDistance=function(t,e){return e*Math.cos(o.toRad(t))},n.getYFromAngleAndDistance=function(t,e){return e*Math.sin(o.toRad(t))},n.roundTo=function(t,e){return!e||!Number.isInteger(e)?Math.round(t):Math.round(t*Math.pow(10,e))/Math.pow(10,e)},n.floorTo=function(t,e){return!e||!Number.isInteger(e)?Math.floor(t):Math.floor(t*Math.pow(10,e))/Math.pow(10,e)},n.ceilTo=function(t,e){return!e||!Number.isInteger(e)?Math.ceil(t):Math.ceil(t*Math.pow(10,e))/Math.pow(10,e)},n.pi=function(){return Math.PI},n.lerpAngle=function(t,e,r){return t+o.evtTools.common.angleDifference(e,t)*r},n.resolveAsyncEventsFunction=t=>{!!t&&!!t.task&&!!t.task.resolve&&t.task.resolve()};const c=()=>{if(typeof cc!="undefined"&&cc.sys)return cc.sys.isMobile;if(typeof Cocoon!="undefined"&&Cocoon.App)return!0;if(typeof window!="undefined"&&window.cordova)return!0;if(typeof window!="undefined"){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))||/iPad|iPhone|iPod/.test(navigator.platform))return!0;if(/MacIntel/.test(navigator.platform))return!!navigator.maxTouchPoints&&navigator.maxTouchPoints>2}return!1};let a=null;n.isMobile=()=>a!==null?a:a=c()})(p=u.common||(u.common={}))})(s=o.evtTools||(o.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=commontools.js.map
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(u){let d;(function(g){let p;(function(r){r.sendAsyncRequest=function(e,s,i,c,a,o){const n=t=>{t instanceof ProgressEvent&&t.currentTarget&&t.currentTarget instanceof XMLHttpRequest&&t.currentTarget.status===0?o.setString("REQUEST_NOT_SENT"):o.setString(""+t)};try{const t=new XMLHttpRequest;t.onerror=n,t.ontimeout=n,t.onabort=n,t.onreadystatechange=()=>{t.readyState===XMLHttpRequest.DONE&&(t.status>=400&&n(""+t.status),a.setString(t.responseText))},t.open(i,e),t.setRequestHeader("Content-Type",c===""?"application/x-www-form-urlencoded":c),t.send(s)}catch(t){n(t)}},r.sendAwaitableAsyncRequest=(e,s,i,c,a,o)=>new u.PromiseTask(fetch(e,{body:i!=="GET"?s:void 0,method:i,headers:{"Content-Type":c||"application/x-www-form-urlencoded"}}).then(async n=>{const t=await n.text();n.status>=400&&o.setString(""+n.status),a.setString(t)},n=>{o.setString(""+n)}));const b=e=>new Promise(s=>setTimeout(s,e));r.retryIfFailed=async({times:e,delayInMs:s},i)=>{let c=0,a=null;for(;c<e;){c++,a=null;try{return await i()}catch(o){s&&await b(s),a=o}}throw a},r.sendDeprecatedSynchronousRequest=function(e,s,i,c,a,o){try{let n;if(typeof XMLHttpRequest!="undefined")n=new XMLHttpRequest;else{const t=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"];for(let l=0,f=t.length;l<f;l++)try{n=new ActiveXObject(t[l]);break}catch{}}if(n===void 0)return;n.open(c,e+s,!1),n.setRequestHeader("Content-Type",a===""?"application/x-www-form-urlencoded":a),n.send(i),o.setString(n.responseText)}catch{}},r.enableMetrics=function(e,s){e.getGame().enableMetrics(s)},r.variableStructureToJSON=function(e){return JSON.stringify(e.toJSObject())},r.objectVariableStructureToJSON=function(e,s){return JSON.stringify(s.toJSObject())},r._objectToVariable=function(e,s){s.fromJSObject(e)},r.jsonToVariableStructure=function(e,s){s.fromJSON(e)},r.jsonToObjectVariableStructure=function(e,s,i){i.fromJSON(e)}})(p=g.network||(g.network={}))})(d=u.evtTools||(u.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=networktools.js.map
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(r){let c;(function(i){let u;(function(s){s.sceneJustBegins=function(t){return t.getScene().getTimeManager().isFirstFrame()},s.sceneJustResumed=function(t){return t.getScene().sceneJustResumed()},s.getSceneName=function(t){return t.getScene().getName()},s.setBackgroundColor=function(t,e){const n=r.rgbOrHexToRGBColor(e);t.getScene().setBackgroundColor(n[0],n[1],n[2])},s.getElapsedTimeInSeconds=function(t){return t.getScene().getTimeManager().getElapsedTime()/1e3},s.setTimeScale=function(t,e){return t.getScene().getTimeManager().setTimeScale(e)},s.getTimeScale=function(t){return t.getScene().getTimeManager().getTimeScale()},s.timerElapsedTime=function(t,e,n){const a=t.getScene().getTimeManager();return a.hasTimer(n)?a.getTimer(n).getTime()/1e3>=e:(a.addTimer(n),!1)},s.timerPaused=function(t,e){const n=t.getScene().getTimeManager();return n.hasTimer(e)?n.getTimer(e).isPaused():!1},s.resetTimer=function(t,e){const n=t.getScene().getTimeManager();n.hasTimer(e)?n.getTimer(e).reset():n.addTimer(e)},s.pauseTimer=function(t,e){const n=t.getScene().getTimeManager();n.hasTimer(e)||n.addTimer(e),n.getTimer(e).setPaused(!0)},s.unpauseTimer=function(t,e){const n=t.getScene().getTimeManager();return n.hasTimer(e)||n.addTimer(e),n.getTimer(e).setPaused(!1)},s.removeTimer=function(t,e){t.getScene().getTimeManager().removeTimer(e)};class d extends r.AsyncTask{constructor(e){super();this.timeElapsedOnScene=0;this.duration=e}update(e){return this.timeElapsedOnScene+=e.getScene().getTimeManager().getElapsedTime(),this.timeElapsedOnScene>=this.duration}getNetworkSyncData(){return{type:"wait",duration:this.duration,timeElapsedOnScene:this.timeElapsedOnScene}}updateFromNetworkSyncData(e){this.duration=e.duration,this.timeElapsedOnScene=e.timeElapsedOnScene}}s.WaitTask=d,s.wait=t=>new d(t*1e3),s.getTimerElapsedTimeInSeconds=function(t,e){const n=t.getScene().getTimeManager();return n.hasTimer(e)?n.getTimer(e).getTime()/1e3:0},s.getTimerElapsedTimeInSecondsOrNaN=function(t,e){const n=t.getScene().getTimeManager();return n.hasTimer(e)?n.getTimer(e).getTime()/1e3:Number.NaN},s.getTimeFromStartInSeconds=function(t){return t.getScene().getTimeManager().getTimeFromStart()/1e3},s.getTime=function(t,e){if(e==="timestamp")return Date.now();const n=new Date;if(e==="hour")return n.getHours();if(e==="min")return n.getMinutes();if(e==="sec")return n.getSeconds();if(e==="mday")return n.getDate();if(e==="mon")return n.getMonth();if(e==="year")return n.getFullYear()-1900;if(e==="wday")return n.getDay();if(e==="yday"){const a=new Date(n.getFullYear(),0,0),g=n.getTime()-a.getTime(),o=1e3*60*60*24;return Math.floor(g/o)}return 0},s.replaceScene=function(t,e,n){!t.getGame().getSceneAndExtensionsData(e)||t.getScene().requestChange(n?r.SceneChangeRequest.CLEAR_SCENES:r.SceneChangeRequest.REPLACE_SCENE,e)},s.pushScene=function(t,e){!t.getGame().getSceneAndExtensionsData(e)||t.getScene().requestChange(r.SceneChangeRequest.PUSH_SCENE,e)},s.popScene=function(t){t.getScene().requestChange(r.SceneChangeRequest.POP_SCENE)},s.stopGame=function(t){t.getScene().requestChange(r.SceneChangeRequest.STOP_GAME)},s.createObjectsFromExternalLayout=function(t,e,n,a,g){const o=t.getGame().getExternalLayoutData(e);o!==null&&t.getScene().createObjectsFrom(o.instances,n,a,g||0,!1)},s.hasGameJustResumed=t=>t.getGame().hasJustResumed(),s.doesSceneExist=(t,e)=>t.getGame().hasScene(e),s.prioritizeLoadingOfScene=(t,e)=>{t.getGame().prioritizeLoadingOfScene(e)},s.getSceneLoadingProgress=(t,e)=>t.getGame().getSceneLoadingProgress(e),s.areSceneAssetsLoaded=(t,e)=>t.getGame().areSceneAssetsLoaded(e),s.loadObjectOrGroupAssets=(t,e,n)=>{t.getGame().loadObjectOrGroupAssets(e,n)},s.unloadObjectOrGroupAssets=(t,e,n)=>{t.getGame().unloadObjectOrGroupAssets(e,n)},s.areObjectOrGroupAssetsLoaded=(t,e,n)=>t.getGame().areObjectOrGroupAssetsLoaded(e,n)})(u=i.runtimeScene||(i.runtimeScene={}))})(c=r.evtTools||(r.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=runtimescenetools.js.map
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(u){let s;(function(i){let r;(function(o){o.getGlobalVolume=function(n){return n.getScene().getSoundManager().getGlobalVolume()},o.setGlobalVolume=function(n,t){n.getScene().getSoundManager().setGlobalVolume(t)},o.unloadAllAudio=function(n){n.getScene().getSoundManager().unloadAll()},o.playSound=function(n,t,e,g,a){n.getScene().getSoundManager().playSound(t,e,g,a)},o.playSoundOnChannel=function(n,t,e,g,a,c){n.getScene().getSoundManager().playSoundOnChannel(t,e,g,a,c)},o.stopSoundOnChannel=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);e&&e.stop()},o.pauseSoundOnChannel=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);e&&e.pause()},o.continueSoundOnChannel=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);e&&(e.playing()||e.play())},o.isSoundOnChannelPlaying=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);return e?e.playing():!1},o.isSoundOnChannelPaused=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);return e?e.paused():!1},o.isSoundOnChannelStopped=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);return e?e.stopped():!0},o.getSoundOnChannelVolume=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);return e?e.getVolume()*100:100},o.setSoundOnChannelVolume=function(n,t,e){const g=n.getScene().getSoundManager().getSoundOnChannel(t);g&&g.setVolume(e/100)},o.getSoundOnChannelPlayingOffset=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);return e?e.getSeek():0},o.setSoundOnChannelPlayingOffset=function(n,t,e){const g=n.getScene().getSoundManager().getSoundOnChannel(t);g&&g.setSeek(e)},o.getSoundOnChannelPitch=function(n,t){const e=n.getScene().getSoundManager().getSoundOnChannel(t);return e?e.getRate():1},o.setSoundOnChannelPitch=function(n,t,e){const g=n.getScene().getSoundManager().getSoundOnChannel(t);g&&g.setRate(e)},o.preloadSound=(n,t)=>n.getScene().getSoundManager().loadAudio(t,!1),o.unloadSound=(n,t)=>n.getScene().getSoundManager().unloadAudio(t,!1),o.playMusic=function(n,t,e,g,a){n.getScene().getSoundManager().playMusic(t,e,g,a)},o.playMusicOnChannel=function(n,t,e,g,a,c){n.getScene().getSoundManager().playMusicOnChannel(t,e,g,a,c)},o.stopMusicOnChannel=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);e&&e.stop()},o.pauseMusicOnChannel=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);e&&e.pause()},o.continueMusicOnChannel=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);e&&(e.playing()||e.play())},o.isMusicOnChannelPlaying=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);return e?e.playing():!1},o.isMusicOnChannelPaused=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);return e?e.paused():!1},o.isMusicOnChannelStopped=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);return e?e.stopped():!0},o.getMusicOnChannelVolume=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);return e?e.getVolume()*100:100},o.setMusicOnChannelVolume=function(n,t,e){const g=n.getScene().getSoundManager().getMusicOnChannel(t);g&&g.setVolume(e/100)},o.getMusicOnChannelPlayingOffset=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);return e?e.getSeek():0},o.setMusicOnChannelPlayingOffset=function(n,t,e){const g=n.getScene().getSoundManager().getMusicOnChannel(t);g&&g.setSeek(e)},o.getMusicOnChannelPitch=function(n,t){const e=n.getScene().getSoundManager().getMusicOnChannel(t);return e?e.getRate():1},o.setMusicOnChannelPitch=function(n,t,e){const g=n.getScene().getSoundManager().getMusicOnChannel(t);g&&g.setRate(e)},o.preloadMusic=(n,t)=>n.getScene().getSoundManager().loadAudio(t,!0),o.unloadMusic=(n,t)=>n.getScene().getSoundManager().unloadAudio(t,!0),o.fadeSoundVolume=(n,t,e,g)=>{const a=n.getScene().getSoundManager().getSoundOnChannel(t);a&&a.fade(a.getVolume(),e/100,g*1e3)},o.fadeMusicVolume=(n,t,e,g)=>{const a=n.getScene().getSoundManager().getMusicOnChannel(t);a&&a.fade(a.getVolume(),e/100,g*1e3)}})(r=i.sound||(i.sound={}))})(s=u.evtTools||(u.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=soundtools.js.map
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(S){const f=new S.Logger("Storage");let d;(function(p){let h;(function(a){let c=null;try{typeof cc!="undefined"?c=cc.sys.localStorage:typeof window!="undefined"&&(c=window.localStorage)}catch(t){f.error("Unable to get access to the localStorage: "+t)}c||f.error("Storage actions won't work as no localStorage was found.");const u=new Hashtable;a.loadJSONFileFromStorage=t=>{if(u.containsKey(t))return;let i=null;try{c&&(i=c.getItem("GDJS_"+t))}catch(l){f.error('Unable to load data from localStorage for "'+t+'": '+l)}let o={};try{i&&(o=JSON.parse(i))}catch(l){f.error('Unable to load data from "'+t+'" - data is not valid JSON: '+l)}u.put(t,o)},a.unloadJSONFile=t=>{if(!u.containsKey(t))return;const i=u.get(t),o=JSON.stringify(i);try{c&&c.setItem("GDJS_"+t,o)}catch(l){f.error('Unable to save data to localStorage for "'+t+'": '+l)}u.remove(t)};const g=(t,i)=>{let o=!1;u.containsKey(t)||(o=!0,a.loadJSONFileFromStorage(t));const l=i(u.get(t));return o&&a.unloadJSONFile(t),l};a.clearJSONFile=t=>g(t,i=>{for(const o in i)i.hasOwnProperty(o)&&delete i[o];return!0}),a.elementExistsInJSONFile=(t,i)=>g(t,o=>{const l=i.split("/");let n=o;for(let e=0;e<l.length;++e){if(!n[l[e]])return!1;n=n[l[e]]}return!0}),a.deleteElementFromJSONFile=(t,i)=>g(t,o=>{const l=i.split("/");let n=o;for(let e=0;e<l.length;++e){if(!n[l[e]])return!1;e===l.length-1?delete n[l[e]]:n=n[l[e]]}return!0}),a.writeNumberInJSONFile=(t,i,o)=>g(t,l=>{const n=i.split("/");let e=l;for(let r=0;r<n.length;++r)e[n[r]]||(e[n[r]]={}),r===n.length-1?e[n[r]].value=o:e=e[n[r]];return!0}),a.writeStringInJSONFile=(t,i,o)=>g(t,l=>{const n=i.split("/");let e=l;for(let r=0;r<n.length;++r)e[n[r]]||(e[n[r]]={}),r===n.length-1?e[n[r]].str=o:e=e[n[r]];return!0}),a.readNumberFromJSONFile=(t,i,o,l)=>g(t,n=>{const e=i.split("/");let r=n;for(let s=0;s<e.length;++s){if(!r[e[s]])return!1;s===e.length-1&&typeof r[e[s]].value!="undefined"?l.setNumber(r[e[s]].value):r=r[e[s]]}return!0}),a.readStringFromJSONFile=(t,i,o,l)=>g(t,n=>{const e=i.split("/");let r=n;for(let s=0;s<e.length;++s){if(!r[e[s]])return!1;s===e.length-1&&typeof r[e[s]].str!="undefined"?l.setString(r[e[s]].str):r=r[e[s]]}return!0})})(h=p.storage||(p.storage={}))})(d=S.evtTools||(S.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=storagetools.js.map
+3
View File
@@ -0,0 +1,3 @@
var gdjs;(function(s){let p;(function(c){let f;(function(e){e.newLine=function(){return`
`},e.fromCodePoint=function(t){return String.fromCodePoint(t)},e.toUpperCase=function(t){return t.toUpperCase()},e.toLowerCase=function(t){return t.toLowerCase()},e.subStr=function(t,n,r){return n<t.length&&n>=0?t.substr(n,r):""},e.strAt=function(t,n){return n<t.length&&n>=0?t.substr(n,1):""},e.strRepeat=function(t,n){let r="";for(let o=0;o<n;o++)r+=t;return r},e.strLen=function(t){return t.length},e.strFind=function(t,n){return t.indexOf(n)},e.strFindLast=function(t,n){return t.lastIndexOf(n)},e.strRFind=s.evtTools.string.strFindLast,e.strFindFrom=function(t,n,r){return t.indexOf(n,r)},e.strFindLastFrom=function(t,n,r){return t.lastIndexOf(n,r)},e.strReplaceOne=function(t,n,r){return t.replace(n,r)},e.strReplaceAll=function(t,n,r){let o=t,u=0,i=o.indexOf(n,u);for(;i!==-1&&(o=o.substring(0,i)+r+o.substring(i+n.length,o.length),u=i+r.length+(n.length===0?1:0),!(u>o.length));)i=o.indexOf(n,u);return o},e.strRFindFrom=s.evtTools.string.strFindLastFrom})(f=c.string||(c.string={}))})(p=s.evtTools||(s.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=stringtools.js.map
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(a){let l;(function(o){let i;(function(r){r.getVariableNumber=function(e){return e.getAsNumber()},r.getVariableString=function(e){return e.getAsString()},r.getVariableBoolean=function(e,t){return e.getAsBoolean()===t},r.setVariableBoolean=function(e,t){e.setBoolean(t)},r.toggleVariableBoolean=function(e){e.setBoolean(!e.getAsBoolean())},r.sceneVariableExists=function(e,t){return e.getScene().getVariables().has(t)},r.globalVariableExists=function(e,t){return e.getGame().getVariables().has(t)},r.variableChildExists=function(e,t){return e.hasChild(t)},r.variableRemoveChild=function(e,t){e.removeChild(t)},r.variableClearChildren=function(e){e.clearChildren()},r.variablePushCopy=function(e,t){e.pushVariableCopy(t)},r.valuePush=function(e,t){e.pushValue(t)},r.variableRemoveAt=function(e,t){e.removeAtIndex(t)},r.getVariableChildCount=function(e){return e.getChildrenCount()},r.getFirstVariableNumber=function(e){return e.getChildrenCount()===0?0:e.getAllChildrenArray()[0].getAsNumber()},r.getFirstVariableString=function(e){return e.getChildrenCount()===0?"":e.getAllChildrenArray()[0].getAsString()},r.getLastVariableNumber=function(e){const t=e.getAllChildrenArray();return t.length===0?0:t[t.length-1].getAsNumber()},r.getLastVariableString=function(e){const t=e.getAllChildrenArray();return t.length===0?"":t[t.length-1].getAsString()}})(i=o.variable||(o.variable={}));let s;(function(n){n.getVariableNumber=a.evtTools.variable.getVariableNumber,n.getVariableString=a.evtTools.variable.getVariableString,n.getVariableBoolean=a.evtTools.variable.getVariableBoolean,n.setVariableBoolean=a.evtTools.variable.setVariableBoolean,n.toggleVariableBoolean=a.evtTools.variable.toggleVariableBoolean,n.sceneVariableExists=a.evtTools.variable.sceneVariableExists,n.globalVariableExists=a.evtTools.variable.globalVariableExists,n.variableChildExists=a.evtTools.variable.variableChildExists,n.variableRemoveChild=a.evtTools.variable.variableRemoveChild,n.variableClearChildren=a.evtTools.variable.variableClearChildren,n.variablePushCopy=a.evtTools.variable.variablePushCopy,n.valuePush=a.evtTools.variable.valuePush,n.variableRemoveAt=a.evtTools.variable.variableRemoveAt,n.getVariableChildCount=a.evtTools.variable.getVariableChildCount})(s=o.common||(o.common={}))})(l=a.evtTools||(a.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=variabletools.js.map
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(r){let s;(function(u){let m;(function(t){t.setMargins=function(e,n,o,i,g){e.getGame().getRenderer().setMargins(n,o,i,g)},t.setFullScreen=function(e,n,o){e.getGame().getRenderer().keepAspectRatio(o),e.getGame().getRenderer().setFullScreen(n)},t.isFullScreen=function(e){return e.getGame().getRenderer().isFullScreen()},t.setWindowSize=function(e,n,o,i){e.getGame().getRenderer().setWindowSize(n,o),i&&e.getGame().setGameResolutionSize(n,o)},t.centerWindow=function(e){e.getGame().getRenderer().centerWindow()},t.setGameResolutionSize=function(e,n,o){e.getGame().setGameResolutionSize(n,o)},t.setGameResolutionResizeMode=function(e,n){e.getGame().setGameResolutionResizeMode(n)},t.setAdaptGameResolutionAtRuntime=function(e,n){e.getGame().setAdaptGameResolutionAtRuntime(n)},t.setWindowTitle=function(e,n){e.getGame().getRenderer().setWindowTitle(n)},t.getWindowTitle=function(e){return e.getGame().getRenderer().getWindowTitle()},t.getWindowInnerWidth=function(){return r.RuntimeGameRenderer&&r.RuntimeGameRenderer.getWindowInnerWidth?r.RuntimeGameRenderer.getWindowInnerWidth():typeof t!="undefined"?t.innerWidth:800},t.getWindowInnerHeight=function(){return r.RuntimeGameRenderer&&r.RuntimeGameRenderer.getWindowInnerHeight?r.RuntimeGameRenderer.getWindowInnerHeight():typeof t!="undefined"?t.innerHeight:800},t.getGameResolutionWidth=function(e){return e.getGame().getGameResolutionWidth()},t.getGameResolutionHeight=function(e){return e.getGame().getGameResolutionHeight()},t.openURL=function(e,n){return n.getGame().getRenderer().openURL(e)}})(m=u.window||(u.window={}))})(s=r.evtTools||(r.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=windowtools.js.map