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(e){const d=!1;e.PixiFiltersTools.registerFilterCreator("Scene3D::DirectionalLight",new class{makeFilter(u,c){return typeof THREE=="undefined"?new e.PixiFiltersTools.EmptyFilter:new class{constructor(){this._top="Z+";this._elevation=45;this._rotation=0;this._shadowMapSize=1024;this._minimumShadowBias=0;this._distanceFromCamera=1500;this._frustumSize=4e3;this._isEnabled=!1;this._shadowMapDirty=!0;this._shadowCameraDirty=!0;this._light=new THREE.DirectionalLight,d?this._shadowCameraHelper=new THREE.CameraHelper(this._light.shadow.camera):this._shadowCameraHelper=null,this._light.shadow.camera.updateProjectionMatrix()}_updateShadowCamera(){!this._shadowCameraDirty||(this._shadowCameraDirty=!1,this._light.shadow.camera.near=1,this._light.shadow.camera.far=this._distanceFromCamera+1e4,this._light.shadow.camera.right=this._frustumSize/2,this._light.shadow.camera.left=-this._frustumSize/2,this._light.shadow.camera.top=this._frustumSize/2,this._light.shadow.camera.bottom=-this._frustumSize/2)}_updateShadowMapSize(){!this._shadowMapDirty||(this._shadowMapDirty=!1,this._light.shadow.mapSize.set(this._shadowMapSize,this._shadowMapSize),this._light.shadow.map?.dispose(),this._light.shadow.map=null,this._light.shadow.needsUpdate=!0)}isEnabled(t){return this._isEnabled}setEnabled(t,i){return this._isEnabled===i?!0:i?this.applyEffect(t):this.removeEffect(t)}applyEffect(t){const i=t.get3DRendererObject();return i?(i.add(this._light),i.add(this._light.target),this._shadowCameraHelper&&i.add(this._shadowCameraHelper),this._isEnabled=!0,!0):!1}removeEffect(t){const i=t.get3DRendererObject();return i?(i.remove(this._light),i.remove(this._light.target),this._shadowCameraHelper&&i.remove(this._shadowCameraHelper),this._isEnabled=!1,!0):!1}updatePreRender(t){this._updateShadowCamera(),this._updateShadowMapSize();const i=this._shadowMapSize<1024?2:this._shadowMapSize<2048?1.25:1;if(this._light.shadow.bias=-this._minimumShadowBias*i,!t.getRuntimeLayer)return;const s=t.getRuntimeLayer(),_=s.getCameraX(),f=s.getCameraY(),m=s.getCameraZ(s.getInitialCamera3DFieldOfView()),a=Math.floor(_/100)*100,o=Math.floor(f/100)*100,r=Math.floor(m/100)*100;if(this._top==="Y-"){const h=a+this._distanceFromCamera*Math.cos(e.toRad(-this._rotation+90))*Math.cos(e.toRad(this._elevation)),n=o-this._distanceFromCamera*Math.sin(e.toRad(this._elevation)),l=r+this._distanceFromCamera*Math.sin(e.toRad(-this._rotation+90))*Math.cos(e.toRad(this._elevation));this._light.position.set(h,n,l),this._light.target.position.set(a,o,r)}else{const h=a+this._distanceFromCamera*Math.cos(e.toRad(this._rotation))*Math.cos(e.toRad(this._elevation)),n=o+this._distanceFromCamera*Math.sin(e.toRad(this._rotation))*Math.cos(e.toRad(this._elevation)),l=r+this._distanceFromCamera*Math.sin(e.toRad(this._elevation));this._light.position.set(h,n,l),this._light.target.position.set(a,o,r)}}updateDoubleParameter(t,i){t==="intensity"?this._light.intensity=i:t==="elevation"?this._elevation=i:t==="rotation"?this._rotation=i:t==="distanceFromCamera"?this._distanceFromCamera=i:t==="frustumSize"?this._frustumSize=i:t==="minimumShadowBias"&&(this._minimumShadowBias=i)}getDoubleParameter(t){return t==="intensity"?this._light.intensity:t==="elevation"?this._elevation:t==="rotation"?this._rotation:t==="distanceFromCamera"?this._distanceFromCamera:t==="frustumSize"?this._frustumSize:t==="minimumShadowBias"?this._minimumShadowBias:0}updateStringParameter(t,i){t==="color"&&(this._light.color=new THREE.Color(e.rgbOrHexStringToNumber(i))),t==="top"&&(this._top=i),t==="shadowQuality"&&(i==="low"&&this._shadowMapSize!==512&&(this._shadowMapSize=512,this._shadowMapDirty=!0),i==="medium"&&this._shadowMapSize!==1024&&(this._shadowMapSize=1024,this._shadowMapDirty=!0),i==="high"&&this._shadowMapSize!==2048&&(this._shadowMapSize=2048,this._shadowMapDirty=!0))}updateColorParameter(t,i){t==="color"&&this._light.color.setHex(i)}getColorParameter(t){return t==="color"?this._light.color.getHex():0}updateBooleanParameter(t,i){t==="isCastingShadow"&&(this._light.castShadow=i)}getNetworkSyncData(){return{i:this._light.intensity,c:this._light.color.getHex(),e:this._elevation,r:this._rotation,t:this._top}}updateFromNetworkSyncData(t){this._light.intensity=t.i,this._light.color.setHex(t.c),this._elevation=t.e,this._rotation=t.r,this._top=t.t}}}})})(gdjs||(gdjs={}));
//# sourceMappingURL=DirectionalLight.js.map
+2
View File
@@ -0,0 +1,2 @@
var gdjs;(function(i){i.PixiFiltersTools.registerFilterCreator("Scene3D::HemisphereLight",new class{makeFilter(o,r){return typeof THREE=="undefined"?new i.PixiFiltersTools.EmptyFilter:new class{constructor(){this._top="Z+";this._elevation=90;this._rotation=0;this._isEnabled=!1;this._light=new THREE.HemisphereLight,this.updateRotation()}isEnabled(t){return this._isEnabled}setEnabled(t,e){return this._isEnabled===e?!0:e?this.applyEffect(t):this.removeEffect(t)}applyEffect(t){const e=t.get3DRendererObject();return e?(e.add(this._light),this._isEnabled=!0,!0):!1}removeEffect(t){const e=t.get3DRendererObject();return e?(e.remove(this._light),this._isEnabled=!1,!0):!1}updatePreRender(t){}updateDoubleParameter(t,e){t==="intensity"?this._light.intensity=e:t==="elevation"?(this._elevation=e,this.updateRotation()):t==="rotation"&&(this._rotation=e,this.updateRotation())}getDoubleParameter(t){return t==="intensity"?this._light.intensity:t==="elevation"?this._elevation:t==="rotation"?this._rotation:0}updateStringParameter(t,e){t==="skyColor"&&(this._light.color=new THREE.Color(i.rgbOrHexStringToNumber(e))),t==="groundColor"&&(this._light.groundColor=new THREE.Color(i.rgbOrHexStringToNumber(e))),t==="top"&&(this._top=e,this.updateRotation())}updateColorParameter(t,e){t==="skyColor"&&this._light.color.setHex(e),t==="groundColor"&&this._light.groundColor.setHex(e)}getColorParameter(t){return t==="skyColor"?this._light.color.getHex():t==="groundColor"?this._light.groundColor.getHex():0}updateBooleanParameter(t,e){}updateRotation(){this._top==="Y-"?this._light.position.set(Math.cos(i.toRad(-this._rotation+90))*Math.cos(i.toRad(this._elevation)),-Math.sin(i.toRad(this._elevation)),Math.sin(i.toRad(-this._rotation+90))*Math.cos(i.toRad(this._elevation))):this._light.position.set(Math.cos(i.toRad(this._rotation))*Math.cos(i.toRad(this._elevation)),Math.sin(i.toRad(this._rotation))*Math.cos(i.toRad(this._elevation)),Math.sin(i.toRad(this._elevation)))}getNetworkSyncData(){return{i:this._light.intensity,sc:this._light.color.getHex(),gc:this._light.groundColor.getHex(),e:this._elevation,r:this._rotation,t:this._top}}updateFromNetworkSyncData(t){this._light.intensity=t.i,this._light.color.setHex(t.sc),this._light.groundColor.setHex(t.gc),this._elevation=t.e,this._rotation=t.r,this._top=t.t,this.updateRotation()}}}})})(gdjs||(gdjs={}));
//# sourceMappingURL=HemisphereLight.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
var gdjs;(function(s){class o{constructor(t,e){this._object=t;const i=e.getGame().getBitmapFontManager().obtainBitmapFont(t._bitmapFontResourceName,t._textureAtlasResourceName);this._pixiObject=new PIXI.BitmapText(t._text,{fontName:i.font,fontSize:i.size}),e.getLayer("").getRenderer().addRendererObject(this._pixiObject,t.getZOrder()),this.updateAlignment(),this.updateTextContent(),this.updateAngle(),this.updateOpacity(),this.updateScale(),this.updateWrappingWidth(),this.updateTint()}getRendererObject(){return this._pixiObject}onDestroy(){const t=this._pixiObject.fontName;this._pixiObject.destroy(),this._object.getInstanceContainer().getGame().getBitmapFontManager().releaseBitmapFont(t)}getFontSize(){return this._pixiObject.fontSize}updateFont(){const t=this._object.getInstanceContainer().getGame().getBitmapFontManager().obtainBitmapFont(this._object._bitmapFontResourceName,this._object._textureAtlasResourceName),e=this._pixiObject.fontName;this._pixiObject.fontName=t.font,this._pixiObject.fontSize=t.size,this._object.getInstanceContainer().getGame().getBitmapFontManager().releaseBitmapFont(e),this.updatePosition()}updateTint(){this._pixiObject.tint=s.rgbToHexNumber(this._object._tint[0],this._object._tint[1],this._object._tint[2]),this._pixiObject.dirty=!0}getTint(){return this._object._tint[0]+";"+this._object._tint[1]+";"+this._object._tint[2]}updateScale(){this._pixiObject.scale.set(Math.max(this._object._scaleX,0),Math.max(this._object._scaleY,0)),this.updatePosition()}getScale(){return Math.max(this._pixiObject.scale.x,this._pixiObject.scale.y)}updateWrappingWidth(){this._object._wrapping?(this._pixiObject.maxWidth=this._object._wrappingWidth/this._object._scaleX,this._pixiObject.dirty=!0):(this._pixiObject.maxWidth=0,this._pixiObject.dirty=!0),this.updatePosition()}updateTextContent(){this._pixiObject.text=this._object._text,this.updatePosition()}updateAlignment(){this._pixiObject.align=this._object._textAlign,this.updatePosition()}updatePosition(){if(this._object.isWrapping()&&this.getWidth()!==0){const e=this._object._textAlign==="right"?1:this._object._textAlign==="center"?.5:0,i=this._object.getWrappingWidth(),n=this.getWidth(),a=(i-n)*(e-.5);this._pixiObject.position.x=this._object.x+i/2,this._pixiObject.anchor.x=.5-a/n}else this._pixiObject.position.x=this._object.x+this.getWidth()/2,this._pixiObject.anchor.x=.5;const t=this._object._verticalTextAlignment==="bottom"?1:this._object._verticalTextAlignment==="center"?.5:0;this._pixiObject.position.y=this._object.y+this.getHeight()*(.5-t),this._pixiObject.anchor.y=.5}updateAngle(){this._pixiObject.rotation=s.toRad(this._object.angle)}updateOpacity(){this._pixiObject.alpha=this._object._opacity/255}getWidth(){return this._pixiObject.textWidth*this.getScale()}getHeight(){return this._pixiObject.textHeight*this.getScale()}}s.BitmapTextRuntimeObjectPixiRenderer=o,s.BitmapTextRuntimeObjectRenderer=o})(gdjs||(gdjs={}));
//# sourceMappingURL=bitmaptextruntimeobject-pixi-renderer.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
var gdjs;(function(e){let c;(function(r){let i;(function(a){a.pause=function(n){n.getGame().pause(!0)},a.log=function(n,t,o){e.Logger.getLoggerOutput().log(o,n,t,!1)},a.enableDebugDraw=function(n,t,o,p,u){n.enableDebugDraw(t,o,p,u)}})(i=r.debuggerTools||(r.debuggerTools={}))})(c=e.evtTools||(e.evtTools={}))})(gdjs||(gdjs={}));
//# sourceMappingURL=debuggertools.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
var gdjs;(function(i){class s extends i.RuntimeObject{constructor(e,t,r){super(e,t,r);this.opacity=255;this._objectData=t,this._rBorder=t.rightMargin,this._lBorder=t.leftMargin,this._tBorder=t.topMargin,this._bBorder=t.bottomMargin,this._tiled=t.tiled,this._width=t.width,this._height=t.height,this._renderer=new i.PanelSpriteRuntimeObjectRenderer(this,e,t.texture,t.tiled),this.onCreated()}updateFromObjectData(e,t){this._objectData=t,e.width!==t.width&&this.setWidth(t.width),e.height!==t.height&&this.setHeight(t.height);let r=!1;return e.rightMargin!==t.rightMargin&&(this._rBorder=t.rightMargin,r=!0),e.leftMargin!==t.leftMargin&&(this._lBorder=t.leftMargin,r=!0),e.topMargin!==t.topMargin&&(this._tBorder=t.topMargin,r=!0),e.bottomMargin!==t.bottomMargin&&(this._bBorder=t.bottomMargin,r=!0),e.texture!==t.texture&&(r=!0),r&&this.setTexture(t.texture,this.getRuntimeScene()),e.tiled===t.tiled}getNetworkSyncData(e){return{...super.getNetworkSyncData(e),op:this.getOpacity(),color:this.getColor()}}updateFromNetworkSyncData(e,t){super.updateFromNetworkSyncData(e,t),e.op!==void 0&&this.setOpacity(e.op),e.color!==void 0&&this.setColor(e.color)}getRendererObject(){return this._renderer.getRendererObject()}onDestroyed(){super.onDestroyed(),this._renderer.destroy()}update(e){this._renderer.ensureUpToDate()}extraInitializationFromInitialInstance(e){e.customSize&&(this.setWidth(e.width),this.setHeight(e.height)),this.setOpacity(e.opacity===void 0?255:e.opacity)}setX(e){super.setX(e),this._renderer.updatePosition()}setY(e){super.setY(e),this._renderer.updatePosition()}setTexture(e,t){this._renderer.setTexture(e,t)}setAngle(e){super.setAngle(e),this._renderer.updateAngle()}getWidth(){return this._width}getHeight(){return this._height}setWidth(e){this._width!==e&&(this._width=e,this._renderer.updateWidth(),this.invalidateHitboxes())}setHeight(e){this._height!==e&&(this._height=e,this._renderer.updateHeight(),this.invalidateHitboxes())}setSize(e,t){this.setWidth(e),this.setHeight(t)}getOriginalWidth(){return this._objectData.width}getOriginalHeight(){return this._objectData.height}setOpacity(e){e<0&&(e=0),e>255&&(e=255),this.opacity=e,this._renderer.updateOpacity()}getOpacity(){return this.opacity}setColor(e){this._renderer.setColor(e)}getColor(){return this._renderer.getColor()}getScale(){const e=Math.abs(this.getScaleX()),t=Math.abs(this.getScaleY());return e===t?e:Math.sqrt(e*t)}getScaleX(){return this._width/this._renderer.getTextureWidth()}getScaleY(){return this._height/this._renderer.getTextureHeight()}setScale(e){this.setWidth(this._renderer.getTextureWidth()*e),this.setHeight(this._renderer.getTextureHeight()*e)}setScaleX(e){this.setWidth(this._renderer.getTextureWidth()*e)}setScaleY(e){this.setHeight(this._renderer.getTextureHeight()*e)}}i.PanelSpriteRuntimeObject=s,i.registerObject("PanelSpriteObject::PanelSprite",i.PanelSpriteRuntimeObject)})(gdjs||(gdjs={}));
//# sourceMappingURL=panelspriteruntimeobject.js.map
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
var gdjs;(function(i){class s{constructor(e,t){this._justCreated=!0;this._object=e,this._fontManager=t.getGame().getFontManager(),this._text=new PIXI.Text(" ",{align:"left"}),this._text.anchor.x=.5,this._text.anchor.y=.5,t.getLayer("").getRenderer().addRendererObject(this._text,e.getZOrder()),this._text.text=e._str.length===0?" ":e._str,this.updateStyle(),this.updatePosition()}getRendererObject(){return this._text}ensureUpToDate(){this._justCreated&&(this._text.updateText(!1),this.updatePosition(),this._justCreated=!1)}updateStyle(){const e='"'+this._fontManager.getFontFamily(this._object._fontName)+'"',t=this._text.style;t.fontStyle=this._object._italic?"italic":"normal",t.fontWeight=this._object._bold?"bold":"normal",t.fontSize=this._object._characterSize,t.fontFamily=e,this._object._useGradient?t.fill=this._getGradientHex():t.fill=this._getColorHex(),this._object._gradientType==="LINEAR_VERTICAL"?t.fillGradientType=PIXI.TEXT_GRADIENT.LINEAR_VERTICAL:t.fillGradientType=PIXI.TEXT_GRADIENT.LINEAR_HORIZONTAL,t.align=this._object._textAlign,t.wordWrap=this._object._wrapping,t.wordWrapWidth=this._object._wrappingWidth,t.breakWords=!0,t.stroke=i.rgbToHexNumber(this._object._outlineColor[0],this._object._outlineColor[1],this._object._outlineColor[2]),t.strokeThickness=this._object._isOutlineEnabled?this._object._outlineThickness:0,t.dropShadow=this._object._shadow,t.dropShadowColor=i.rgbToHexNumber(this._object._shadowColor[0],this._object._shadowColor[1],this._object._shadowColor[2]),t.dropShadowAlpha=this._object._shadowOpacity/255,t.dropShadowBlur=this._object._shadowBlur,t.dropShadowAngle=i.toRad(this._object._shadowAngle),t.dropShadowDistance=this._object._shadowDistance;const o=t.dropShadow?t.dropShadowDistance+t.dropShadowBlur:0;t.padding=Math.ceil(this._object._padding+o),t.lineHeight=this._object._lineHeight,t.miterLimit=3,this.updatePosition(),this._text.dirty=!0}updatePosition(){if(this._object.isWrapping()&&this._text.width!==0){const t=this._object._textAlign==="right"?1:this._object._textAlign==="center"?.5:0,o=this._object.getWrappingWidth(),h=(o-this._text.width)*(t-.5);this._text.position.x=this._object.x+o/2,this._text.anchor.x=.5-h/this._text.width}else this._text.position.x=this._object.x+this._text.width/2,this._text.anchor.x=.5;const e=this._object._verticalTextAlignment==="bottom"?1:this._object._verticalTextAlignment==="center"?.5:0;this._text.position.y=this._object.y+this._text.height*(.5-e),this._text.anchor.y=.5}updateAngle(){this._text.rotation=i.toRad(this._object.angle)}updateOpacity(){this._text.alpha=this._object.opacity/255}updateString(){this._text.text=this._object._str.length===0?" ":this._object._str,this._text.updateText(!1)}getWidth(){return this._text.width}getHeight(){return this._text.height}_getColorHex(){return i.rgbToHexNumber(this._object._color[0],this._object._color[1],this._object._color[2])}_getGradientHex(){const e=[];for(let t=0;t<this._object._gradient.length;t++)e.push("#"+i.rgbToHex(this._object._gradient[t][0],this._object._gradient[t][1],this._object._gradient[t][2]));return e}getScaleX(){return this._text.scale.x}getScaleY(){return this._text.scale.y}setScale(e){this._text.scale.x=e,this._text.scale.y=e}setScaleX(e){this._text.scale.x=e}setScaleY(e){this._text.scale.y=e}destroy(){this._text.destroy(!0)}}i.TextRuntimeObjectRenderer=s})(gdjs||(gdjs={}));
//# sourceMappingURL=textruntimeobject-pixi-renderer.js.map
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long