From 070f4e3b24bda504bb8db7cd1eadd5a9e4530f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Mon, 3 Nov 2025 19:35:49 +0100 Subject: [PATCH] [3D platformer] Use variants for platforms --- examples/3d-platformer/3d-platformer.json | 1944 ++++++++++----------- 1 file changed, 961 insertions(+), 983 deletions(-) diff --git a/examples/3d-platformer/3d-platformer.json b/examples/3d-platformer/3d-platformer.json index dd640ec35..df4eb5ff3 100644 --- a/examples/3d-platformer/3d-platformer.json +++ b/examples/3d-platformer/3d-platformer.json @@ -1,7 +1,7 @@ { "firstLayout": "", "gdVersion": { - "build": 242, + "build": 244, "major": 5, "minor": 5, "revision": 0 @@ -87,7 +87,10 @@ "categories": [ "platformer" ], - "playableDevices": [], + "playableDevices": [ + "mobile", + "mobile" + ], "extensionProperties": [], "platforms": [ { @@ -410,13 +413,16 @@ "gridType": "rectangular", "gridWidth": 50, "gridHeight": 50, + "gridDepth": 32, "gridOffsetX": 0, "gridOffsetY": 0, + "gridOffsetZ": 0, "gridColor": 0, "gridAlpha": 0.05, "snap": true, - "zoomFactor": 0.12710233719928174, - "windowMask": false + "zoomFactor": 0.2550455473354629, + "windowMask": false, + "selectedLayer": "" }, "objectsGroups": [ { @@ -1062,6 +1068,7 @@ "width": 0, "x": 350, "y": 250, + "z": 52, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1078,6 +1085,7 @@ "width": 0, "x": 350, "y": 350, + "z": 52, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1094,6 +1102,7 @@ "width": 0, "x": 350, "y": 450, + "z": 52, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1110,6 +1119,7 @@ "width": 0, "x": 350, "y": 150, + "z": 52, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1126,7 +1136,7 @@ "width": 0, "x": 350, "y": 200, - "z": 100, + "z": 152, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1143,7 +1153,7 @@ "width": 0, "x": 350, "y": 300, - "z": 100, + "z": 152, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1160,7 +1170,7 @@ "width": 0, "x": 350, "y": 400, - "z": 100, + "z": 152, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1177,7 +1187,7 @@ "width": 0, "x": 350, "y": 350, - "z": 200, + "z": 252, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1194,7 +1204,7 @@ "width": 0, "x": 350, "y": 250, - "z": 200, + "z": 252, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -1211,7 +1221,7 @@ "width": 0, "x": 350, "y": 300, - "z": 300, + "z": 352, "zOrder": 40, "numberProperties": [], "stringProperties": [], @@ -2330,218 +2340,6 @@ "IsTiledOnY": false, "IsTiledOnZ": true, "IsTiledOnX": false - }, - "childrenContent": { - "Grass3": { - "content": { - "centerLocation": "BottomCenterZ", - "crossfadeDuration": 0, - "depth": 31.32753252983094, - "height": 37.94128954410554, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": true, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Nature\\Grass 3.glb", - "originLocation": "BottomCenterZ", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 0, - "width": 64.26115930080414, - "animations": [] - } - }, - "Platform": { - "variant": "", - "content": { - "IsTiledOnY": false, - "IsTiledOnZ": true, - "IsTiledOnX": false - }, - "childrenContent": { - "BottomCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100.00002384185794, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100.0000059604645, - "animations": [] - } - }, - "BottomCorner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "BottomSide": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "CenterCorner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "CenterSide": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 99.99999403953552, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 49.99999701976778, - "animations": [] - } - }, - "Placeholder": { - "content": { - "width": 100, - "height": 100, - "depth": 100, - "enableTextureTransparency": false, - "facesOrientation": "Z", - "frontFaceResourceName": "assets\\Grass.png", - "backFaceResourceName": "assets\\Soil.png", - "backFaceUpThroughWhichAxisRotation": "X", - "leftFaceResourceName": "assets\\Soil.png", - "rightFaceResourceName": "assets\\Soil.png", - "topFaceResourceName": "assets\\Soil.png", - "bottomFaceResourceName": "assets\\Soil.png", - "frontFaceVisible": true, - "backFaceVisible": true, - "leftFaceVisible": true, - "rightFaceVisible": true, - "topFaceVisible": true, - "bottomFaceVisible": true, - "frontFaceResourceRepeat": false, - "backFaceResourceRepeat": true, - "leftFaceResourceRepeat": true, - "rightFaceResourceRepeat": true, - "topFaceResourceRepeat": true, - "bottomFaceResourceRepeat": true, - "materialType": "Basic" - } - }, - "TopCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "TopCorner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 105.83594739437106, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.83598613739017, - "animations": [] - } - }, - "TopSide": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100.00002384185794, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.83592653274539, - "animations": [] - } - } - } - } } }, { @@ -2628,6 +2426,7 @@ { "assetStoreId": "", "name": "ThinPlatform", + "persistentUuid": "16a91d08-d4c6-4cbd-8c8a-b5915b497fa7", "type": "DecoratedPlatform::ThinPlatform", "variant": "", "variables": [], @@ -2662,171 +2461,7 @@ "massOverride": 0 } ], - "content": {}, - "childrenContent": { - "Grass3": { - "content": { - "centerLocation": "BottomCenterZ", - "crossfadeDuration": 0, - "depth": 31.32753252983094, - "height": 37.94128954410554, - "isCastingShadow": true, - "isReceivingShadow": true, - "keepAspectRatio": true, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Nature\\Grass 3.glb", - "originLocation": "BottomCenterZ", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 0, - "width": 64.26115930080414, - "animations": [] - } - }, - "New3DBox": { - "content": { - "width": 100, - "height": 100, - "depth": 100, - "enableTextureTransparency": false, - "facesOrientation": "Y", - "frontFaceResourceName": "", - "backFaceResourceName": "", - "backFaceUpThroughWhichAxisRotation": "X", - "leftFaceResourceName": "", - "rightFaceResourceName": "", - "topFaceResourceName": "", - "bottomFaceResourceName": "", - "frontFaceVisible": true, - "backFaceVisible": false, - "leftFaceVisible": true, - "rightFaceVisible": true, - "topFaceVisible": true, - "bottomFaceVisible": true, - "frontFaceResourceRepeat": false, - "backFaceResourceRepeat": false, - "leftFaceResourceRepeat": false, - "rightFaceResourceRepeat": false, - "topFaceResourceRepeat": false, - "bottomFaceResourceRepeat": false, - "materialType": "StandardWithoutMetalness", - "tint": "255;255;255", - "isCastingShadow": true, - "isReceivingShadow": true - } - }, - "Platform": { - "variant": "", - "content": {}, - "childrenContent": { - "BottomCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "Corner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 105.83601593971255, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\Single Height\\Cube Grass Corner.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.83598613739017, - "animations": [] - } - }, - "Placeholder": { - "content": { - "width": 100, - "height": 100, - "depth": 100, - "enableTextureTransparency": false, - "facesOrientation": "Z", - "frontFaceResourceName": "assets\\Grass.png", - "backFaceResourceName": "assets\\Soil.png", - "backFaceUpThroughWhichAxisRotation": "X", - "leftFaceResourceName": "assets\\Soil.png", - "rightFaceResourceName": "assets\\Soil.png", - "topFaceResourceName": "assets\\Soil.png", - "bottomFaceResourceName": "assets\\Soil.png", - "frontFaceVisible": true, - "backFaceVisible": true, - "leftFaceVisible": true, - "rightFaceVisible": true, - "topFaceVisible": true, - "bottomFaceVisible": true, - "frontFaceResourceRepeat": false, - "backFaceResourceRepeat": true, - "leftFaceResourceRepeat": true, - "rightFaceResourceRepeat": true, - "topFaceResourceRepeat": true, - "bottomFaceResourceRepeat": true, - "materialType": "Basic" - } - }, - "Side": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\Single Height\\Cube Grass Side.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.836, - "animations": [] - } - }, - "TopCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - } - } - } - } + "content": {} }, { "assetStoreId": "ef1e0acbeff96c2a750b169344ecb6d952d743dd82a07805fb2ea3a6427fa000", @@ -5032,6 +4667,7 @@ "ambientLightColorB": 196608, "ambientLightColorG": 0, "ambientLightColorR": 8126128, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 0.1, @@ -5096,6 +4732,7 @@ "ambientLightColorB": 8908016, "ambientLightColorG": 0, "ambientLightColorR": 6071712, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 0.1, @@ -18514,6 +18151,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -18540,6 +18178,7 @@ } ], "instances": [], + "editionSettings": {}, "eventsFunctions": [ { "fullName": "", @@ -25432,8 +25071,8 @@ "eventsBasedBehaviors": [], "eventsBasedObjects": [ { - "areaMaxX": 100, - "areaMaxY": 100, + "areaMaxX": 200, + "areaMaxY": 200, "areaMaxZ": 100, "areaMinX": 0, "areaMinY": 0, @@ -25449,8 +25088,9 @@ { "assetStoreId": "", "name": "Platform", + "persistentUuid": "9f3077c4-7f50-4851-a5b8-bd0746df48ef", "type": "Model9Patch3D::Model9Patch3DSingleDepth", - "variant": "", + "variant": "Grass platform 100", "variables": [], "effects": [], "behaviors": [ @@ -25465,114 +25105,7 @@ "useLegacyBottomAndRightAnchors": false } ], - "content": {}, - "childrenContent": { - "BottomCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "Corner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 105.83601593971255, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\Single Height\\Cube Grass Corner.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.83598613739017, - "animations": [] - } - }, - "Placeholder": { - "content": { - "width": 100, - "height": 100, - "depth": 100, - "enableTextureTransparency": false, - "facesOrientation": "Z", - "frontFaceResourceName": "assets\\Grass.png", - "backFaceResourceName": "assets\\Soil.png", - "backFaceUpThroughWhichAxisRotation": "X", - "leftFaceResourceName": "assets\\Soil.png", - "rightFaceResourceName": "assets\\Soil.png", - "topFaceResourceName": "assets\\Soil.png", - "bottomFaceResourceName": "assets\\Soil.png", - "frontFaceVisible": true, - "backFaceVisible": true, - "leftFaceVisible": true, - "rightFaceVisible": true, - "topFaceVisible": true, - "bottomFaceVisible": true, - "frontFaceResourceRepeat": false, - "backFaceResourceRepeat": true, - "leftFaceResourceRepeat": true, - "rightFaceResourceRepeat": true, - "topFaceResourceRepeat": true, - "bottomFaceResourceRepeat": true, - "materialType": "Basic" - } - }, - "Side": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\Single Height\\Cube Grass Side.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.836, - "animations": [] - } - }, - "TopCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - } - } + "content": {} }, { "assetStoreId": "", @@ -25598,44 +25131,6 @@ "width": 64.26115930080414, "animations": [] } - }, - { - "assetStoreId": "", - "name": "New3DBox", - "type": "Scene3D::Cube3DObject", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "width": 100, - "height": 100, - "depth": 100, - "enableTextureTransparency": false, - "facesOrientation": "Y", - "frontFaceResourceName": "", - "backFaceResourceName": "", - "backFaceUpThroughWhichAxisRotation": "X", - "leftFaceResourceName": "", - "rightFaceResourceName": "", - "topFaceResourceName": "", - "bottomFaceResourceName": "", - "frontFaceVisible": true, - "backFaceVisible": false, - "leftFaceVisible": true, - "rightFaceVisible": true, - "topFaceVisible": true, - "bottomFaceVisible": true, - "frontFaceResourceRepeat": false, - "backFaceResourceRepeat": false, - "leftFaceResourceRepeat": false, - "rightFaceResourceRepeat": false, - "topFaceResourceRepeat": false, - "bottomFaceResourceRepeat": false, - "materialType": "StandardWithoutMetalness", - "tint": "255;255;255", - "isCastingShadow": true, - "isReceivingShadow": true - } } ], "objectsFolderStructure": { @@ -25644,9 +25139,6 @@ { "objectName": "Platform" }, - { - "objectName": "New3DBox" - }, { "objectName": "Grass3" } @@ -25658,6 +25150,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -25699,24 +25192,24 @@ "numberProperties": [], "stringProperties": [], "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "keepRatio": true, - "layer": "", - "name": "New3DBox", - "persistentUuid": "bd5387d2-161c-4ed2-aa8f-ae83b2f300c7", - "width": 0, - "x": 51, - "y": 66, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] } ], + "editionSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridDepth": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridOffsetZ": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": false, + "zoomFactor": 2.5882505348610385, + "windowMask": false, + "selectedLayer": "" + }, "eventsFunctions": [ { "fullName": "", @@ -25800,9 +25293,9 @@ "variants": [] }, { - "areaMaxX": 100, - "areaMaxY": 100, - "areaMaxZ": 100, + "areaMaxX": 200, + "areaMaxY": 200, + "areaMaxZ": 200, "areaMinX": 0, "areaMinY": 0, "areaMinZ": 0, @@ -25842,8 +25335,9 @@ { "assetStoreId": "", "name": "Platform", + "persistentUuid": "f0227b0d-2344-4963-a677-d8f5c4e9961c", "type": "Model9Patch3D::Model9Patch3D", - "variant": "", + "variant": "Grass platform 100", "variables": [], "effects": [], "behaviors": [], @@ -25851,191 +25345,6 @@ "IsTiledOnY": false, "IsTiledOnZ": true, "IsTiledOnX": false - }, - "childrenContent": { - "BottomCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100.00002384185794, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100.0000059604645, - "animations": [] - } - }, - "BottomCorner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "BottomSide": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Bottom Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "CenterCorner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "CenterSide": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 99.99999403953552, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 49.99999701976778, - "animations": [] - } - }, - "Placeholder": { - "content": { - "width": 100, - "height": 100, - "depth": 100, - "enableTextureTransparency": false, - "facesOrientation": "Z", - "frontFaceResourceName": "assets\\Grass.png", - "backFaceResourceName": "assets\\Soil.png", - "backFaceUpThroughWhichAxisRotation": "X", - "leftFaceResourceName": "assets\\Soil.png", - "rightFaceResourceName": "assets\\Soil.png", - "topFaceResourceName": "assets\\Soil.png", - "bottomFaceResourceName": "assets\\Soil.png", - "frontFaceVisible": true, - "backFaceVisible": true, - "leftFaceVisible": true, - "rightFaceVisible": true, - "topFaceVisible": true, - "bottomFaceVisible": true, - "frontFaceResourceRepeat": false, - "backFaceResourceRepeat": true, - "leftFaceResourceRepeat": true, - "rightFaceResourceRepeat": true, - "topFaceResourceRepeat": true, - "bottomFaceResourceRepeat": true, - "materialType": "StandardWithoutMetalness", - "isReceivingShadow": false, - "isCastingShadow": false - } - }, - "TopCenter": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 50, - "height": 100, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Center Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 100, - "animations": [] - } - }, - "TopCorner": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 105.83594739437106, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.83598613739017, - "animations": [] - } - }, - "TopSide": { - "content": { - "centerLocation": "ModelOrigin", - "crossfadeDuration": 0, - "depth": 100, - "height": 100.00002384185794, - "isCastingShadow": false, - "isReceivingShadow": false, - "keepAspectRatio": false, - "materialType": "StandardWithoutMetalness", - "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Tall.glb", - "originLocation": "ModelOrigin", - "rotationX": 90, - "rotationY": 0, - "rotationZ": 90, - "width": 105.83592653274539, - "animations": [] - } - } } } ], @@ -26056,6 +25365,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -26099,6 +25409,22 @@ "initialVariables": [] } ], + "editionSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridDepth": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridOffsetZ": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": false, + "zoomFactor": 2.1212310076834346, + "windowMask": false, + "selectedLayer": "" + }, "eventsFunctions": [ { "fullName": "", @@ -45318,6 +44644,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -45344,6 +44671,7 @@ } ], "instances": [], + "editionSettings": {}, "eventsFunctions": [ { "fullName": "", @@ -49109,7 +48437,7 @@ "name": "Model9Patch3D", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/ff2624a18972ac70bedc9ef990d9ddbc894c3a7b6e46a75ace8e9572c9aa5a50_select-group.svg", "shortDescription": "3D platforms and walls.", - "version": "0.2.1", + "version": "0.3.0", "description": "3D platforms and walls that resize as 9-patch. Corners don't stretch and sides can be tiled.", "origin": { "identifier": "Model9Patch3D", @@ -49126,7 +48454,57 @@ "dependencies": [], "globalVariables": [], "sceneVariables": [], - "eventsFunctions": [], + "eventsFunctions": [ + { + "fullName": "Inner size", + "functionType": "Action", + "name": "SetInnerSize", + "private": true, + "sentence": "Change the inner size of _PARAM1_ to _PARAM2_ ; _PARAM3_ ; _PARAM4_", + "events": [ + { + "type": "BuiltinCommonInstructions::JsCode", + "inlineCode": [ + "const width = eventsFunctionContext.getArgument(\"Width\");", + "const height = eventsFunctionContext.getArgument(\"Height\");", + "const depth = eventsFunctionContext.getArgument(\"Depth\");", + "/** @type {gdjs.CustomRuntimeObject} */", + "const object = objects[0];", + "object._innerArea.max[0] = width;", + "object._innerArea.max[1] = height;", + "object._innerArea.max[2] = depth;", + "" + ], + "parameterObjects": "Object", + "useStrict": true, + "eventsSheetExpanded": true + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "objectList" + }, + { + "description": "", + "name": "Width", + "type": "expression" + }, + { + "description": "Height", + "name": "Height", + "type": "expression" + }, + { + "description": "Depth", + "name": "Depth", + "type": "expression" + } + ], + "objectGroups": [] + } + ], "eventsBasedBehaviors": [], "eventsBasedObjects": [ { @@ -49140,7 +48518,7 @@ "description": "A 3D model with corners that don't stretch and sides that can be tiled.", "fullName": "3D model 9-patch", "is3D": true, - "isUsingLegacyInstancesRenderer": true, + "isUsingLegacyInstancesRenderer": false, "name": "Model9Patch3D", "objects": [ { @@ -49351,9 +48729,9 @@ "effects": [], "behaviors": [], "content": { - "width": 100, - "height": 100, - "depth": 100, + "width": 64, + "height": 64, + "depth": 64, "enableTextureTransparency": false, "facesOrientation": "Z", "frontFaceResourceName": "", @@ -49411,12 +48789,54 @@ } ] }, - "objectsGroups": [], + "objectsGroups": [ + { + "name": "Patch", + "objects": [ + { + "name": "TopCenter" + }, + { + "name": "TopCorner" + }, + { + "name": "TopSide" + }, + { + "name": "CenterSide" + }, + { + "name": "CenterCorner" + }, + { + "name": "BottomSide" + }, + { + "name": "BottomCorner" + }, + { + "name": "BottomCenter" + } + ] + }, + { + "name": "Center", + "objects": [ + { + "name": "CenterSide" + }, + { + "name": "CenterCorner" + } + ] + } + ], "layers": [ { "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -49442,7 +48862,40 @@ "effects": [] } ], - "instances": [], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 64, + "keepRatio": true, + "layer": "", + "name": "Placeholder", + "persistentUuid": "7291525a-2a23-4d93-8642-36128b1c779f", + "width": 64, + "x": 0, + "y": 0, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "editionSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridDepth": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridOffsetZ": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": false, + "zoomFactor": 5.1009109467086775, + "windowMask": false, + "selectedLayer": "" + }, "eventsFunctions": [ { "fullName": "", @@ -49454,18 +48907,6 @@ "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ - { - "type": { - "value": "Create" - }, - "parameters": [ - "", - "Placeholder", - "0", - "0", - "\"\"" - ] - }, { "type": { "value": "Cache" @@ -49630,20 +49071,35 @@ "=", "1" ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { "type": { - "value": "SetIncludedInParentCollisionMask" + "value": "Model9Patch3D::SetInnerSize" }, "parameters": [ - "Patch", - "no" + "", + "Object", + "Width", + "Height", + "Depth", + "" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetIncludedInParentCollisionMask" + }, + "parameters": [ + "Patch", + "no" + ] + } ] } ] @@ -49657,37 +49113,7 @@ "type": "object" } ], - "objectGroups": [ - { - "name": "Patch", - "objects": [ - { - "name": "TopCenter" - }, - { - "name": "TopSide" - }, - { - "name": "TopCorner" - }, - { - "name": "CenterSide" - }, - { - "name": "CenterCorner" - }, - { - "name": "BottomSide" - }, - { - "name": "BottomCorner" - }, - { - "name": "BottomCenter" - } - ] - } - ] + "objectGroups": [] }, { "description": "Create a 9-patch over a 3D box using 3D models for the parts.", @@ -49873,19 +49299,7 @@ "type": "object" } ], - "objectGroups": [ - { - "name": "Center", - "objects": [ - { - "name": "CenterSide" - }, - { - "name": "CenterCorner" - } - ] - } - ] + "objectGroups": [] }, { "description": "Create a 9-patch sliceover a 3D box using 3D models for the parts.", @@ -51081,102 +50495,6 @@ "label": "Tiled on Z", "name": "IsTiledOnZ" }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "TopCenter" - ], - "choices": [], - "hidden": true, - "name": "ShowTopCenter" - }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "TopSide" - ], - "choices": [], - "hidden": true, - "name": "ShowTopSide" - }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "TopCorner" - ], - "choices": [], - "hidden": true, - "name": "ShowTopCorner" - }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "CenterSide" - ], - "choices": [], - "hidden": true, - "name": "ShowCenterSide" - }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "CenterCorner" - ], - "choices": [], - "hidden": true, - "name": "ShowCenterCorner" - }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "BottomSide" - ], - "choices": [], - "hidden": true, - "name": "ShowBottomSide" - }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "BottomCorner" - ], - "choices": [], - "hidden": true, - "name": "ShowBottomCorner" - }, - { - "value": "", - "type": "Boolean", - "label": "", - "description": "Only used by the scene editor.", - "extraInformation": [ - "BottomCenter" - ], - "choices": [], - "hidden": true, - "name": "ShowBottomCenter" - }, { "value": "-1", "type": "Number", @@ -51226,7 +50544,393 @@ "name": "Z" } ], - "variants": [] + "variants": [ + { + "areaMaxX": 200, + "areaMaxY": 200, + "areaMaxZ": 200, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "name": "Grass platform 100", + "objects": [ + { + "assetStoreId": "", + "name": "TopCenter", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 49.79781508445741, + "height": 100.00002384185794, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Center Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 100.0000059604645, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "TopSide", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 99.7978150844574, + "height": 100.00002384185794, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 105.83592653274539, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "TopCorner", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 99.79781210422519, + "height": 105.83594739437106, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 105.83598613739017, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "CenterSide", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 100, + "height": 99.99999403953552, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Center Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 49.99999701976778, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "CenterCorner", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 99.99999701976779, + "height": 99.99998807907107, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Center Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 100.00004768371586, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "BottomSide", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 99.99999701976779, + "height": 99.99999403953555, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Side Bottom Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 100.00000298023228, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "BottomCorner", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 99.99999701976779, + "height": 100.0000596046448, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Corner Bottom Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 100.00004768371586, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "BottomCenter", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 50.000000000000014, + "height": 100.00002384185794, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Bottom Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 100.0000059604645, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "Placeholder", + "type": "Scene3D::Cube3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "width": 200, + "height": 200, + "depth": 200, + "enableTextureTransparency": false, + "facesOrientation": "Z", + "frontFaceResourceName": "assets\\Grass.png", + "backFaceResourceName": "assets\\Soil.png", + "backFaceUpThroughWhichAxisRotation": "X", + "leftFaceResourceName": "assets\\Soil.png", + "rightFaceResourceName": "assets\\Soil.png", + "topFaceResourceName": "assets\\Soil.png", + "bottomFaceResourceName": "assets\\Soil.png", + "frontFaceVisible": true, + "backFaceVisible": true, + "leftFaceVisible": true, + "rightFaceVisible": true, + "topFaceVisible": true, + "bottomFaceVisible": true, + "frontFaceResourceRepeat": false, + "backFaceResourceRepeat": true, + "leftFaceResourceRepeat": true, + "rightFaceResourceRepeat": true, + "topFaceResourceRepeat": true, + "bottomFaceResourceRepeat": true, + "materialType": "Basic" + } + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "TopCenter" + }, + { + "objectName": "TopSide" + }, + { + "objectName": "TopCorner" + }, + { + "objectName": "CenterSide" + }, + { + "objectName": "CenterCorner" + }, + { + "objectName": "BottomSide" + }, + { + "objectName": "BottomCorner" + }, + { + "objectName": "BottomCenter" + }, + { + "objectName": "Placeholder" + } + ] + }, + "objectsGroups": [ + { + "name": "Patch", + "objects": [ + { + "name": "TopCenter" + }, + { + "name": "TopCorner" + }, + { + "name": "TopSide" + }, + { + "name": "CenterSide" + }, + { + "name": "CenterCorner" + }, + { + "name": "BottomSide" + }, + { + "name": "BottomCorner" + }, + { + "name": "BottomCenter" + } + ] + }, + { + "name": "Center", + "objects": [ + { + "name": "CenterSide" + }, + { + "name": "CenterCorner" + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 64, + "keepRatio": true, + "layer": "", + "name": "Placeholder", + "persistentUuid": "7291525a-2a23-4d93-8642-36128b1c779f", + "width": 64, + "x": 0, + "y": 0, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "editionSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridDepth": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridOffsetZ": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": false, + "zoomFactor": 1.8860622122996094, + "windowMask": false, + "selectedLayer": "" + } + } + ] }, { "areaMaxX": 64, @@ -51239,7 +50943,7 @@ "description": "A 3D model with corners that don't stretch and sides that can be tiled.", "fullName": "3D model 9-patch (single depth)", "is3D": true, - "isUsingLegacyInstancesRenderer": true, + "isUsingLegacyInstancesRenderer": false, "name": "Model9Patch3DSingleDepth", "objects": [ { @@ -51350,9 +51054,9 @@ "effects": [], "behaviors": [], "content": { - "width": 100, - "height": 100, - "depth": 100, + "width": 64, + "height": 64, + "depth": 64, "enableTextureTransparency": false, "facesOrientation": "Z", "frontFaceResourceName": "", @@ -51398,12 +51102,31 @@ } ] }, - "objectsGroups": [], + "objectsGroups": [ + { + "name": "Patch", + "objects": [ + { + "name": "TopCenter" + }, + { + "name": "Corner" + }, + { + "name": "Side" + }, + { + "name": "BottomCenter" + } + ] + } + ], "layers": [ { "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -51429,7 +51152,40 @@ "effects": [] } ], - "instances": [], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 100, + "keepRatio": true, + "layer": "", + "name": "Placeholder", + "persistentUuid": "472d203a-2423-42cd-8501-186230f28338", + "width": 100, + "x": 0, + "y": 0, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "editionSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridDepth": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridOffsetZ": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": false, + "zoomFactor": 6.020922394364914, + "windowMask": false, + "selectedLayer": "" + }, "eventsFunctions": [ { "fullName": "", @@ -51441,18 +51197,6 @@ "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ - { - "type": { - "value": "Create" - }, - "parameters": [ - "", - "Placeholder", - "0", - "0", - "\"\"" - ] - }, { "type": { "value": "Cache" @@ -51617,20 +51361,35 @@ "=", "1" ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { "type": { - "value": "SetIncludedInParentCollisionMask" + "value": "Model9Patch3D::SetInnerSize" }, "parameters": [ - "Patch", - "no" + "", + "Object", + "Width", + "Height", + "Depth", + "" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetIncludedInParentCollisionMask" + }, + "parameters": [ + "Patch", + "no" + ] + } ] } ] @@ -51644,25 +51403,7 @@ "type": "object" } ], - "objectGroups": [ - { - "name": "Patch", - "objects": [ - { - "name": "TopCenter" - }, - { - "name": "Side" - }, - { - "name": "Corner" - }, - { - "name": "BottomCenter" - } - ] - } - ] + "objectGroups": [] }, { "description": "Create a 9-patch over a 3D box using 3D models for the parts.", @@ -51744,25 +51485,7 @@ "type": "object" } ], - "objectGroups": [ - { - "name": "Patch", - "objects": [ - { - "name": "Side" - }, - { - "name": "Corner" - }, - { - "name": "TopCenter" - }, - { - "name": "BottomCenter" - } - ] - } - ] + "objectGroups": [] }, { "description": "Create a 9-patch sliceover a 3D box using 3D models for the parts.", @@ -53145,7 +52868,258 @@ "name": "Y" } ], - "variants": [] + "variants": [ + { + "areaMaxX": 200, + "areaMaxY": 200, + "areaMaxZ": 100, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "name": "Grass platform 100", + "objects": [ + { + "assetStoreId": "", + "name": "TopCenter", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 49.79781508445741, + "height": 100.00002384185794, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Center Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 100.0000059604645, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "Corner", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 99.79781210422519, + "height": 105.83601593971255, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\Single Height\\Cube Grass Corner.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 105.83598613739017, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "Side", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 99.79781210422519, + "height": 100.00002384185794, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\Single Height\\Cube Grass Side.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 105.83593249320984, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "BottomCenter", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, + "depth": 50.000000000000014, + "height": 100.00002384185794, + "isCastingShadow": true, + "isReceivingShadow": true, + "keepAspectRatio": false, + "materialType": "StandardWithoutMetalness", + "modelResourceName": "3D Platformer Game Kit\\Modular Platforms\\3D\\Cube Grass Bottom Tall.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 90, + "width": 100.0000059604645, + "animations": [] + } + }, + { + "assetStoreId": "", + "name": "Placeholder", + "type": "Scene3D::Cube3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "width": 200, + "height": 200, + "depth": 100, + "enableTextureTransparency": false, + "facesOrientation": "Z", + "frontFaceResourceName": "assets\\Grass.png", + "backFaceResourceName": "assets\\Soil.png", + "backFaceUpThroughWhichAxisRotation": "X", + "leftFaceResourceName": "assets\\Soil.png", + "rightFaceResourceName": "assets\\Soil.png", + "topFaceResourceName": "assets\\Soil.png", + "bottomFaceResourceName": "assets\\Soil.png", + "frontFaceVisible": true, + "backFaceVisible": true, + "leftFaceVisible": true, + "rightFaceVisible": true, + "topFaceVisible": true, + "bottomFaceVisible": true, + "frontFaceResourceRepeat": false, + "backFaceResourceRepeat": true, + "leftFaceResourceRepeat": true, + "rightFaceResourceRepeat": true, + "topFaceResourceRepeat": true, + "bottomFaceResourceRepeat": true, + "materialType": "Basic" + } + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "TopCenter" + }, + { + "objectName": "Side" + }, + { + "objectName": "Corner" + }, + { + "objectName": "BottomCenter" + }, + { + "objectName": "Placeholder" + } + ] + }, + "objectsGroups": [ + { + "name": "Patch", + "objects": [ + { + "name": "TopCenter" + }, + { + "name": "Corner" + }, + { + "name": "Side" + }, + { + "name": "BottomCenter" + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 100, + "keepRatio": true, + "layer": "", + "name": "Placeholder", + "persistentUuid": "472d203a-2423-42cd-8501-186230f28338", + "width": 100, + "x": 0, + "y": 0, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "editionSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridDepth": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridOffsetZ": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": false, + "zoomFactor": 2.7163745159088104, + "windowMask": false, + "selectedLayer": "" + } + } + ] } ] }, @@ -53657,6 +53631,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -53733,6 +53708,7 @@ "initialVariables": [] } ], + "editionSettings": {}, "eventsFunctions": [ { "fullName": "", @@ -54706,6 +54682,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -54781,7 +54758,8 @@ "stringProperties": [], "initialVariables": [] } - ] + ], + "editionSettings": {} } ] }