-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add intro transition * added new phone removed old phone assets * add controller support * added weapon wheel
- Loading branch information
Showing
43 changed files
with
7,894 additions
and
342 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
1,225 changes: 1,225 additions & 0 deletions
1,225
src/eventsFunctionsExtensions/extendedvariables.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
{ | ||
"author": "Arthur Pacaud (arthuro555)", | ||
"category": "", | ||
"extensionNamespace": "", | ||
"fullName": "Variables/References", | ||
"helpPath": "", | ||
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXZhcmlhYmxlLWJveCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOSAzSDVDMy45IDMgMyAzLjkgMyA1VjE5QzMgMjAuMSAzLjkgMjEgNSAyMUgxOUMyMC4xIDIxIDIxIDIwLjEgMjEgMTlWNUMyMSAzLjkgMjAuMSAzIDE5IDNNNy40IDE4QzUuOSAxNi41IDUgMTQuMyA1IDEyUzUuOSA3LjUgNy40IDZMOSA2LjdDNy43IDcuOSA3IDkuOSA3IDEyUzcuNyAxNi4xIDkgMTcuM0w3LjQgMThNMTIuNyAxNUwxMS45IDEzTDEwLjUgMTVIOUwxMS4zIDExLjlMMTAgOUgxMS4zTDEyLjEgMTFMMTMuNSA5SDE1TDEyLjggMTJMMTQuMSAxNUgxMi43TTE2LjYgMThMMTUgMTcuM0MxNi4zIDE2IDE3IDE0LjEgMTcgMTJTMTYuMyA3LjkgMTUgNi43TDE2LjYgNkMxOC4xIDcuNSAxOSA5LjcgMTkgMTJTMTguMSAxNi41IDE2LjYgMThaIiAvPjwvc3ZnPg==", | ||
"name": "References", | ||
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/variable-box.svg", | ||
"shortDescription": "Adds references and pointers for variables.", | ||
"version": "1.0.0", | ||
"description": "Adds actions to use references (variable that redirect any read/write to another variable) and pointers (unique numbers identifying a variable that can be resolved to a reference). Some usages are for callback variables in events based functions (getting a variable with a fixed name referring to a variable with a name passed as parameter), pointers to make advanced data structures like linked lists, and getting a top level variable dynamically.", | ||
"origin": { | ||
"identifier": "References", | ||
"name": "gdevelop-extension-store" | ||
}, | ||
"tags": [ | ||
"advanced", | ||
"variables", | ||
"reference", | ||
"pointer", | ||
"ref", | ||
"memory", | ||
"callback" | ||
], | ||
"authorIds": [ | ||
"ZgrsWuRTAkXgeuPV9bo0zuEcA2w1" | ||
], | ||
"dependencies": [], | ||
"eventsFunctions": [ | ||
{ | ||
"description": "Transforms a scene variable into a reference to another scene variable.", | ||
"fullName": "Create reference to scene variable", | ||
"functionType": "Action", | ||
"name": "CreateReference", | ||
"sentence": "Make variable _PARAM1_ a reference to _PARAM2_", | ||
"events": [ | ||
{ | ||
"type": "BuiltinCommonInstructions::JsCode", | ||
"inlineCode": [ | ||
"const reference = eventsFunctionContext.getArgument(\"reference\");", | ||
"const source = eventsFunctionContext.getArgument(\"source\");", | ||
"", | ||
"// Override each method ", | ||
"for (let func of Object.getOwnPropertyNames(gdjs.Variable.prototype))", | ||
" reference[func] = gdjs.Variable.prototype[func].bind(source);", | ||
"" | ||
], | ||
"parameterObjects": "", | ||
"useStrict": true, | ||
"eventsSheetExpanded": false | ||
} | ||
], | ||
"parameters": [ | ||
{ | ||
"description": "The scene variable to turn into a reference", | ||
"name": "reference", | ||
"type": "scenevar" | ||
}, | ||
{ | ||
"description": "The scene variable the reference will refer to", | ||
"name": "source", | ||
"type": "scenevar" | ||
} | ||
], | ||
"objectGroups": [] | ||
}, | ||
{ | ||
"description": "Transforms a scene variable into a reference to a global variable.", | ||
"fullName": "Create reference to global variable", | ||
"functionType": "Action", | ||
"name": "CreateGlobalReference", | ||
"sentence": "Make variable _PARAM1_ a reference to _PARAM2_", | ||
"events": [ | ||
{ | ||
"type": "BuiltinCommonInstructions::JsCode", | ||
"inlineCode": [ | ||
"const reference = eventsFunctionContext.getArgument(\"reference\");", | ||
"const source = eventsFunctionContext.getArgument(\"source\");", | ||
"", | ||
"// Override each method ", | ||
"for (let func of Object.getOwnPropertyNames(gdjs.Variable.prototype))", | ||
" reference[func] = gdjs.Variable.prototype[func].bind(source);", | ||
"" | ||
], | ||
"parameterObjects": "", | ||
"useStrict": true, | ||
"eventsSheetExpanded": false | ||
} | ||
], | ||
"parameters": [ | ||
{ | ||
"description": "The scene variable to turn into a reference", | ||
"name": "reference", | ||
"type": "scenevar" | ||
}, | ||
{ | ||
"description": "The global variable the reference will refer to", | ||
"name": "source", | ||
"type": "globalvar" | ||
} | ||
], | ||
"objectGroups": [] | ||
}, | ||
{ | ||
"description": "Transforms a scene variable into a reference to an object's variable.", | ||
"fullName": "Create reference to object variable", | ||
"functionType": "Action", | ||
"name": "CreateObjectReference", | ||
"sentence": "Make variable _PARAM2_ a reference to variable _PARAM3_ of _PARAM1_", | ||
"events": [ | ||
{ | ||
"type": "BuiltinCommonInstructions::JsCode", | ||
"inlineCode": [ | ||
"const reference = eventsFunctionContext.getArgument(\"reference\");", | ||
"const source = eventsFunctionContext.getArgument(\"source\");", | ||
"", | ||
"console.log(reference, source)", | ||
"", | ||
"// Override each method ", | ||
"for (let func of Object.getOwnPropertyNames(gdjs.Variable.prototype))", | ||
" reference[func] = gdjs.Variable.prototype[func].bind(source);", | ||
"" | ||
], | ||
"parameterObjects": "", | ||
"useStrict": true, | ||
"eventsSheetExpanded": false | ||
} | ||
], | ||
"parameters": [ | ||
{ | ||
"description": "The object that possesses the variable to refer to", | ||
"name": "Object", | ||
"type": "objectList" | ||
}, | ||
{ | ||
"description": "The scene variable to turn into a reference", | ||
"name": "reference", | ||
"type": "scenevar" | ||
}, | ||
{ | ||
"description": "The object variable the reference will refer to", | ||
"name": "source", | ||
"type": "objectvar" | ||
} | ||
], | ||
"objectGroups": [] | ||
} | ||
], | ||
"eventsBasedBehaviors": [], | ||
"eventsBasedObjects": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.