diff --git a/extensions/community/ShakeWindow.json b/extensions/community/ShakeWindow.json new file mode 100644 index 000000000..c2feb5f3b --- /dev/null +++ b/extensions/community/ShakeWindow.json @@ -0,0 +1,1191 @@ +{ + "author": "", + "category": "Advanced", + "dimension": "2D/3D", + "extensionNamespace": "", + "fullName": "Shake Window On The Screen!", + "gdevelopVersion": "", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWxhcHRvcC13aW5kb3dzIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTMsNEgyMUExLDEgMCAwLDEgMjIsNVYxNkExLDEgMCAwLDEgMjEsMTdIMjJMMjQsMjBWMjFIMFYyMEwyLDE3SDNBMSwxIDAgMCwxIDIsMTZWNUExLDEgMCAwLDEgMyw0TTQsNlYxNUgyMFY2SDRaIiAvPjwvc3ZnPg==", + "name": "ShakeWindow", + "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/6aa1d575f22460998a6930820116676448337bac4a323a05b552bb734f5b7f8e_laptop-windows.svg", + "shortDescription": "SWOTS! is a simple extension that lets you shake the window of your game.", + "version": "0.9.1", + "description": [ + "----------------------", + "Shake Window On The Screen! is a simple extension that lets you shake the window of your game!", + "----------------------", + "", + "----------------------", + "There are currently 8 forces!", + "", + "set the force and shaky shaky shaky!!!", + "----------------------", + "", + "----------------------", + "MADE BY FUCU99", + "----------------------" + ], + "tags": [], + "authorIds": [ + "YEiqhYqsu2aTH6ZCQDtlkKYSH8y1" + ], + "dependencies": [], + "globalVariables": [ + { + "name": "ShakeStop", + "type": "boolean", + "value": false + }, + { + "name": "ShakeGo", + "type": "boolean", + "value": false + } + ], + "sceneVariables": [], + "eventsFunctions": [ + { + "description": "This enables window shake.", + "fullName": "Enable Window Shake", + "functionType": "Action", + "group": "SWOTS! Variables", + "name": "Window_Shake__ENABLE", + "sentence": "_PARAM_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + }, + { + "type": { + "value": "Wait" + }, + "parameters": [ + "0.01" + ] + } + ] + } + ], + "parameters": [], + "objectGroups": [] + }, + { + "description": "This disables window shake.", + "fullName": "Disable Window Shake", + "functionType": "Action", + "group": "SWOTS! Variables", + "name": "Window_Shake__DISABLE", + "sentence": "_PARAM_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ShakeStop", + "True", + "" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ShakeGo", + "False", + "" + ] + }, + { + "type": { + "value": "Wait" + }, + "parameters": [ + "0.01" + ] + } + ] + } + ], + "parameters": [], + "objectGroups": [] + }, + { + "description": "Make the window shake! (you have first to execute the command \"Make window Movable\" of this extension!).", + "fullName": "Window Shake: FORCE 1", + "functionType": "Action", + "group": "SWOTS! Forces", + "name": "Window_Shake__1", + "sentence": "_PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 1", + "AdvancedWindow::WindowY() + 1", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 1", + "AdvancedWindow::WindowY() - 1", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 1", + "AdvancedWindow::WindowY() - 1", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 1", + "AdvancedWindow::WindowY() + 1", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Number Of Shakes", + "name": "How_many_shakes_", + "type": "expression" + } + ], + "objectGroups": [] + }, + { + "description": "Make the window shake! (you have first to execute the command \"Make window Movable\" of this extension!).", + "fullName": "Window Shake: FORCE 2", + "functionType": "Action", + "group": "SWOTS! Forces", + "name": "Window_Shake__2", + "sentence": "_PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 5", + "AdvancedWindow::WindowY() + 5", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 5", + "AdvancedWindow::WindowY() - 5", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 5", + "AdvancedWindow::WindowY() - 5", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 5", + "AdvancedWindow::WindowY() + 5", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Number Of Shakes", + "name": "How_many_shakes_", + "type": "expression" + } + ], + "objectGroups": [] + }, + { + "description": "Make the window shake! (you have first to execute the command \"Make window Movable\" of this extension!).", + "fullName": "Window Shake: FORCE 3", + "functionType": "Action", + "group": "SWOTS! Forces", + "name": "Window_Shake__3", + "sentence": "_PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 10", + "AdvancedWindow::WindowY() + 10", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 10", + "AdvancedWindow::WindowY() - 10", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 10", + "AdvancedWindow::WindowY() - 10", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 10", + "AdvancedWindow::WindowY() + 10", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Number Of Shakes", + "name": "How_many_shakes_", + "type": "expression" + } + ], + "objectGroups": [] + }, + { + "description": ".Make the window shake! (you have first to execute the command \"Make window Movable\" of this extension!).", + "fullName": "Window Shake: FORCE 4", + "functionType": "Action", + "group": "SWOTS! Forces", + "name": "Window_Shake__4", + "sentence": "_PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 25", + "AdvancedWindow::WindowY() + 25", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 25", + "AdvancedWindow::WindowY() - 25", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 25", + "AdvancedWindow::WindowY() - 25", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 25", + "AdvancedWindow::WindowY() + 25", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Number Of Shakes", + "name": "How_many_shakes_", + "type": "expression" + } + ], + "objectGroups": [] + }, + { + "description": "Make the window shake! (you have first to execute the command \"Make window Movable\" of this extension!).", + "fullName": "Window Shake: FORCE 5 (REALLY HIGH FORCE!)", + "functionType": "Action", + "group": "SWOTS! Forces", + "name": "Window_Shake__5", + "sentence": "_PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 100", + "AdvancedWindow::WindowY() + 100", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 100", + "AdvancedWindow::WindowY() - 100", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 100", + "AdvancedWindow::WindowY() - 100", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 100", + "AdvancedWindow::WindowY() + 100", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Number Of Shakes", + "name": "How_many_shakes_", + "type": "expression" + } + ], + "objectGroups": [] + }, + { + "description": "Make the window shake! (you have first to execute the command \"Make window Movable\" of this extension!)\n\nThis is like:\n\"How to make a virus with GDevelop 5\".", + "fullName": "Window Shake: Hell Force", + "functionType": "Action", + "group": "SWOTS! Cursed Forces", + "name": "Window_Shake__6", + "sentence": "_PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 1000", + "AdvancedWindow::WindowY() + 1000", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 1000", + "AdvancedWindow::WindowY() - 1000", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 1000", + "AdvancedWindow::WindowY() - 1000", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 1000", + "AdvancedWindow::WindowY() + 1000", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Number Of Shakes", + "name": "How_many_shakes_", + "type": "expression" + } + ], + "objectGroups": [] + }, + { + "description": "Make the window shake! (you have first to execute the command \"Make window Movable\" of this extension!)\n\nAnd, you can make the window spawn pop-ups!.", + "fullName": "Window Shake: Pop-up and shake!", + "functionType": "Action", + "group": "SWOTS! Cursed Forces", + "name": "Window_Shake__virus", + "sentence": "_PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_shakes_", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() + 10", + "AdvancedWindow::WindowY() + 2", + "" + ] + }, + { + "type": { + "value": "AdvancedWindow::SetWindowPosition" + }, + "parameters": [ + "AdvancedWindow::WindowX() - 1", + "AdvancedWindow::WindowY() - 5", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "How_many_pop_ups", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::And" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + }, + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "Spawn_pop_ups_", + "True", + "" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "PopUp::Alert" + }, + "parameters": [ + "", + "What_s_the_pop_up_message_", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Number Of Shakes", + "name": "How_many_shakes_", + "type": "expression" + }, + { + "description": "Set the number of pop-ups!", + "name": "How_many_pop_ups", + "type": "expression" + }, + { + "description": "Set yes if you want to spawn pop-ups!", + "name": "Spawn_pop_ups_", + "type": "yesorno" + }, + { + "description": "Set the pop-up message!", + "name": "What_s_the_pop_up_message_", + "type": "string" + } + ], + "objectGroups": [] + }, + { + "fullName": "", + "functionType": "Action", + "name": "onFirstSceneLoaded", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ShakeGo", + "False", + "" + ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ShakeStop", + "False", + "" + ] + } + ] + } + ], + "parameters": [], + "objectGroups": [] + }, + { + "description": "Check if the window not is shaking.", + "fullName": "If the Window is not shaking", + "functionType": "Condition", + "group": "SWOTS! Conditions", + "name": "Window_Shaking_no", + "sentence": "_PARAM_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "False", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [], + "objectGroups": [] + }, + { + "description": "Check if the window is shaking.", + "fullName": "If the Window is shaking", + "functionType": "Condition", + "group": "SWOTS! Conditions", + "name": "Window_Shaking_yes", + "sentence": "_PARAM_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BooleanVariable" + }, + "parameters": [ + "ShakeGo", + "True", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [], + "objectGroups": [] + } + ], + "eventsBasedBehaviors": [], + "eventsBasedObjects": [], + "requiredExtensions": [ + { + "extensionName": "PopUp", + "extensionVersion": "1.0.0" + } + ] +} \ No newline at end of file