Skip to content

Commit

Permalink
Move some actions and conditions into groups (#1094)
Browse files Browse the repository at this point in the history
* Don't show in changelog
  • Loading branch information
D8H authored Nov 20, 2023
1 parent bb1adf1 commit 1aef51b
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 454 deletions.
6 changes: 5 additions & 1 deletion extensions/community/Raycaster3D.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "Raycaster3D",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/8419f46b76bce482c14b4c03b4141a64d457e4cdc92686f3470381f5d2694abd_ray-start-arrow.svg",
"shortDescription": "Find 3D objects that cross a line.",
"version": "0.1.2",
"version": "0.1.3",
"description": [
"It can be useful to:",
"- Find 3D objects under the pointer",
Expand Down Expand Up @@ -273,6 +273,7 @@
"description": "Sends a ray from the given source position and angle, intersecting the closest object. The intersected object will become the only one taken into account.",
"fullName": "Raycast",
"functionType": "Condition",
"group": "Collision",
"name": "RaycastWithAngle",
"sentence": "Cast a ray from _PARAM2_; _PARAM3_; _PARAM4_ toward a rotation of _PARAM5_°, an elevation of _PARAM6_° and max distance of _PARAM7_ against _PARAM1_",
"events": [
Expand Down Expand Up @@ -340,6 +341,7 @@
"description": "Sends a ray from the given source position to the final point, intersecting the closest object. The intersected object will become the only one taken into account.",
"fullName": "Raycast to a position",
"functionType": "Condition",
"group": "Collision",
"name": "RaycastBetweenPosition",
"sentence": "Cast a ray from _PARAM2_; _PARAM3_; _PARAM4_ to _PARAM5_; _PARAM6_; _PARAM7_ against _PARAM1_",
"events": [
Expand Down Expand Up @@ -407,6 +409,7 @@
"description": "Sends a ray from the center of the camera, intersecting the closest object. The intersected object will become the only one taken into account.",
"fullName": "Raycast from camera center",
"functionType": "Condition",
"group": "Collision",
"name": "RaycastFromCameraCenter",
"sentence": "Cast a ray from the camera center to a maximum distance of _PARAM2_ against _PARAM1_",
"events": [
Expand Down Expand Up @@ -446,6 +449,7 @@
"description": "Sends a ray from the given source point on the camera screen, intersecting the closest object. The intersected object will become the only one taken into account.",
"fullName": "Raycast from a camera point",
"functionType": "Condition",
"group": "Collision",
"name": "RaycastFromCameraPoint",
"sentence": "Cast a ray from the camera point _PARAM2_; _PARAM3_ to a maximum distance of _PARAM4_ against _PARAM1_",
"events": [
Expand Down
10 changes: 5 additions & 5 deletions extensions/reviewed/ExtendedVariables.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "ExtendedVariables",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/variable-box.svg",
"shortDescription": "Add conditions, actions and expressions to check for the existence of a variable, copy variables, delete existing ones from memory, and create dynamic variables.",
"version": "1.0.2",
"version": "1.0.3",
"description": [
"This extension provides: ",
"- Conditions to check if a global/scene/object variable exists.",
Expand Down Expand Up @@ -282,7 +282,7 @@
"description": "Check if an object variable exists.",
"fullName": "Object variable exists",
"functionType": "Condition",
"group": "Object variables",
"group": "Variables",
"name": "ObjectVariableExist",
"sentence": "Object _PARAM1_ has object variable _PARAM2_",
"events": [
Expand Down Expand Up @@ -799,7 +799,7 @@
"description": "Copy the object variable from one object to another.",
"fullName": "Copy an object variable",
"functionType": "Action",
"group": "Object variables",
"group": "Variables",
"name": "CopyObjectVariable",
"sentence": "Copy the variable _PARAM2_ of _PARAM1_ to the variable _PARAM4_ of _PARAM3_ (clear destination first: _PARAM5_)",
"events": [
Expand Down Expand Up @@ -908,7 +908,7 @@
"description": "Copy all object variables from one object to another.",
"fullName": "Copy all object variables",
"functionType": "Action",
"group": "Object variables",
"group": "Variables",
"name": "CopyAllObjectVariables",
"sentence": "Copy all variables from object _PARAM1_ to object _PARAM2_ (clear destination first: _PARAM3_)",
"events": [
Expand Down Expand Up @@ -961,7 +961,7 @@
"description": "Delete an object variable, removing it from memory.",
"fullName": "Delete object variable",
"functionType": "Action",
"group": "Object variables",
"group": "Variables",
"name": "DeleteObjectVariable",
"sentence": "Delete for the object _PARAM1_ the object variable _PARAM2_ from the memory",
"events": [
Expand Down
7 changes: 6 additions & 1 deletion extensions/reviewed/FirstPersonCamera.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
"name": "FirstPersonCamera",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/Security and Protection/e8248ffd504c314e6a9d9d560c3a0fdad3398a5f125ae6a4c0654d4e68c86376_Security and Protection_security_protection_eye_scan_lock.svg",
"shortDescription": "Move the camera to look though objects eyes.",
"version": "1.0.0",
"version": "1.0.1",
"description": [
"Move the camera to look though objects eyes.",
"",
"This extension can be used with the \"Mouse pointer lock\" or \"Gamepad\" extension to build a first person camera."
],
"origin": {
"identifier": "FirstPersonCamera",
"name": "gdevelop-extension-store"
},
"tags": [
"3d",
"camera",
Expand All @@ -28,6 +32,7 @@
"description": "Move the camera to look though _PARAM1_ eyes. The object must look to the right when all its angles are 0 and the top of its head be toward Z+.",
"fullName": "Look through object eyes",
"functionType": "Action",
"group": "Layers and cameras",
"name": "LookFromObjectEyes",
"sentence": "Move the camera of _PARAM2_ to look though _PARAM1_ eyes",
"events": [
Expand Down
27 changes: 10 additions & 17 deletions extensions/reviewed/FollowObjectsWithCamera.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "FollowObjectsWithCamera",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/camera-switch-outline.svg",
"shortDescription": "Change the zoom and position of the camera to keep all instances of an object (or object group) on the screen.",
"version": "1.0.0",
"version": "1.0.1",
"description": [
"Use the \"Follow multiple objects with camera\" action on every frame that you want the camera to move. ",
"If you want to select which object instances are tracked by the camera, add conditions to that event.",
Expand Down Expand Up @@ -44,6 +44,7 @@
"description": "Change the zoom and position of the camera to keep all instances of an object (or object group) on the screen.",
"fullName": "Follow multiple objects with camera",
"functionType": "Action",
"group": "Layers and cameras",
"name": "FollowMultipleObjectsWithCamera",
"sentence": "Move camera to keep instances of _PARAM1_ on the screen. Use a margin of _PARAM2_px horizontally and _PARAM3_px vertically. Max zoom: _PARAM4_. Move the camera at a speed of _PARAM5_",
"events": [
Expand All @@ -57,8 +58,7 @@
"textG": 0,
"textR": 0
},
"comment": "Set default values if nothing is entered",
"comment2": ""
"comment": "Set default values if nothing is entered"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -167,8 +167,7 @@
"textG": 0,
"textR": 0
},
"comment": "Set initial values based on an object instance. This is used as a valid starting point for comparisons, so it doesn't matter which instance is used.",
"comment2": ""
"comment": "Set initial values based on an object instance. This is used as a valid starting point for comparisons, so it doesn't matter which instance is used."
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -226,8 +225,7 @@
"textG": 0,
"textR": 0
},
"comment": "Loop through every instance of object (or object group) and determine the max position values used for left, right, top and bottom.\nRecord the height and width of the objects that are on the edges. These values will be used to increase the camera viewport to include the entire object.",
"comment2": ""
"comment": "Loop through every instance of object (or object group) and determine the max position values used for left, right, top and bottom.\nRecord the height and width of the objects that are on the edges. These values will be used to increase the camera viewport to include the entire object."
},
{
"type": "BuiltinCommonInstructions::ForEach",
Expand Down Expand Up @@ -311,8 +309,7 @@
"textG": 0,
"textR": 0
},
"comment": "Move camera to the center location",
"comment2": ""
"comment": "Move camera to the center location"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -360,8 +357,7 @@
"textG": 0,
"textR": 0
},
"comment": "Zoom in or out to keep all object instances on screen",
"comment2": ""
"comment": "Zoom in or out to keep all object instances on screen"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -409,8 +405,7 @@
"textG": 0,
"textR": 0
},
"comment": "Adjust zoom to stay within min/max values",
"comment2": ""
"comment": "Adjust zoom to stay within min/max values"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -438,8 +433,7 @@
"textG": 0,
"textR": 0
},
"comment": "Change camera zoom",
"comment2": ""
"comment": "Change camera zoom"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -510,8 +504,7 @@
"textG": 255,
"textR": 255
},
"comment": "DEPRECATED: Use the new function that replaces this one",
"comment2": ""
"comment": "DEPRECATED: Use the new function that replaces this one"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down
22 changes: 11 additions & 11 deletions extensions/reviewed/LinkTools.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "LinkTools",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/graph-outline.svg",
"shortDescription": "Conditions to use Linked Objects as a graph and a path finding movement behavior.",
"version": "1.2.2",
"version": "1.2.3",
"description": [
"This provides:",
"* \"Can reach through links\" conditions, useful to check if an object is linked to another through one or more other linked objects.",
Expand Down Expand Up @@ -42,6 +42,7 @@
"description": "Link to neighbors on a rectangular grid.",
"fullName": "Link to neighbors on a rectangular grid",
"functionType": "Action",
"group": "Objects",
"name": "LinkRectangularNeighbors",
"sentence": "Link _PARAM1_ and its neighbors _PARAM2_ on a rectangular grid with cell dimensions: _PARAM3_; _PARAM4_",
"events": [
Expand Down Expand Up @@ -320,6 +321,7 @@
"description": "Link to neighbors on a hexagonal grid.",
"fullName": "Link to neighbors on a hexagonal grid",
"functionType": "Action",
"group": "Objects",
"name": "LinkHexagonalNeighbors",
"sentence": "Link _PARAM1_ and its neighbors _PARAM2_ on a hexagonal grid with cell dimensions: _PARAM3_; _PARAM4_",
"events": [
Expand Down Expand Up @@ -523,6 +525,7 @@
"description": "Link to neighbors on an isometric grid.",
"fullName": "Link to neighbors on an isometric grid",
"functionType": "Action",
"group": "Objects",
"name": "LinkIsometricRectangularNeighbors",
"sentence": "Link _PARAM1_ and its neighbors _PARAM2_ on an isometric grid with cell dimensions: _PARAM3_; _PARAM4_",
"events": [
Expand Down Expand Up @@ -801,13 +804,13 @@
"description": "Can reach through a given cost sum.",
"fullName": "Can reach with links limited by cost",
"functionType": "Condition",
"group": "Objects",
"name": "CanReachWithMaxWeight",
"sentence": "Take into account all \"_PARAM1_\" that can reach _PARAM2_ with initial value from the variable _PARAM3_ through at most a cost of: _PARAM4_ according to cost class: _PARAM5_ and at most _PARAM6_ links depth",
"events": [
{
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": [
"",
"/**",
" * Insert a node in an array sorted by farest 1st",
" * @param {gdjs.RuntimeObject[]} objects",
Expand Down Expand Up @@ -989,6 +992,7 @@
"description": "Can reach through a given number of links.",
"fullName": "Can reach with links limited by length",
"functionType": "Condition",
"group": "Objects",
"name": "CanReachWithMaxLength",
"sentence": "Take into account all \"_PARAM1_\" that can reach _PARAM2_ through at most _PARAM3_ links according to cost class: _PARAM4_",
"events": [
Expand Down Expand Up @@ -1127,6 +1131,7 @@
"description": "Can reach through links.",
"fullName": "Can reach",
"functionType": "Condition",
"group": "Objects",
"name": "CanReach",
"sentence": "Take into account all \"_PARAM1_\" that can reach _PARAM2_ through links",
"events": [
Expand Down Expand Up @@ -1265,8 +1270,7 @@
"textG": 0,
"textR": 0
},
"comment": "Move the object along the path",
"comment2": ""
"comment": "Move the object along the path"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -1491,13 +1495,11 @@
"textG": 0,
"textR": 0
},
"comment": "Search the path and set the result in the path variable.\nThis variable is use by doStepPreEvent to move the object along the path.",
"comment2": ""
"comment": "Search the path and set the result in the path variable.\nThis variable is use by doStepPreEvent to move the object along the path."
},
{
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": [
"",
"/**",
" * Insert a node in an array sorted by farest 1st",
" * @param {gdjs.RuntimeObject[]} objects",
Expand Down Expand Up @@ -1853,8 +1855,7 @@
"textG": 0,
"textR": 0
},
"comment": "No more nodes",
"comment2": ""
"comment": "No more nodes"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down Expand Up @@ -1905,8 +1906,7 @@
"textG": 0,
"textR": 0
},
"comment": "Update the next target",
"comment2": ""
"comment": "Update the next target"
},
{
"type": "BuiltinCommonInstructions::Standard",
Expand Down
6 changes: 5 additions & 1 deletion extensions/reviewed/ObjectStack.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "ObjectStack",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_cards_game_solitaire_poker_blackjack_casino.svg",
"shortDescription": "An ordered list of objects and a shuffle action.",
"version": "0.1.0",
"version": "0.1.1",
"description": [
"It provides:",
"* Actions to modify a stack of objects",
Expand Down Expand Up @@ -44,6 +44,7 @@
"description": "Check if the stack contains the object between a range. The lower and upper bounds are included.",
"fullName": "Contain between a range",
"functionType": "Condition",
"group": "Object Stack",
"name": "ContainsBetween",
"sentence": "_PARAM3_ is into the stack of _PARAM1_ between _PARAM4_ and _PARAM5_",
"events": [
Expand Down Expand Up @@ -115,6 +116,7 @@
"description": "Check if the stack contains the object at a height.",
"fullName": "Contain at",
"functionType": "Condition",
"group": "Object Stack",
"name": "ContainsAt",
"sentence": "_PARAM3_ is into the stack of _PARAM1_ at _PARAM4_ ",
"events": [
Expand Down Expand Up @@ -183,6 +185,7 @@
"description": "Check if an object is on the stack top.",
"fullName": "Stack top",
"functionType": "Condition",
"group": "Object Stack",
"name": "HasOnTop",
"sentence": "_PARAM3_ is on top of the stack of _PARAM1_",
"events": [
Expand Down Expand Up @@ -237,6 +240,7 @@
"description": "Check if the stack contains the object.",
"fullName": "Contain",
"functionType": "Condition",
"group": "Object Stack",
"name": "Contains",
"sentence": "_PARAM3_ is into the stack of _PARAM1_",
"events": [
Expand Down
Loading

0 comments on commit 1aef51b

Please sign in to comment.