From 25278bbdcca9ea5ac4d5cbeae5078389ee38a7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pasteau?= <4895034+ClementPasteau@users.noreply.github.com> Date: Wed, 1 Feb 2023 16:31:01 +0100 Subject: [PATCH 1/4] Update admob example with latest version of cordova-admob-plus --- examples/admob/Button.png | Bin 138 -> 0 bytes examples/admob/Grass.png | Bin 1071 -> 0 bytes examples/admob/admob.json | 4844 ----------- .../admob/assets/Green Button_Hovered.png | Bin 0 -> 2364 bytes examples/admob/assets/Green Button_Idle.png | Bin 0 -> 2378 bytes .../admob/assets/Green Button_Pressed.png | Bin 0 -> 2282 bytes .../admob/{ => assets}/android-icon-144.png | Bin .../admob/{ => assets}/android-icon-192.png | Bin .../admob/{ => assets}/android-icon-36.png | Bin .../admob/{ => assets}/android-icon-48.png | Bin .../admob/{ => assets}/android-icon-72.png | Bin .../admob/{ => assets}/android-icon-96.png | Bin .../admob/{ => assets}/desktop-icon-512.png | Bin examples/admob/{ => assets}/ios-icon-100.png | Bin examples/admob/{ => assets}/ios-icon-114.png | Bin examples/admob/{ => assets}/ios-icon-120.png | Bin examples/admob/{ => assets}/ios-icon-144.png | Bin examples/admob/{ => assets}/ios-icon-152.png | Bin examples/admob/{ => assets}/ios-icon-167.png | Bin examples/admob/{ => assets}/ios-icon-180.png | Bin examples/admob/{ => assets}/ios-icon-29.png | Bin examples/admob/{ => assets}/ios-icon-40.png | Bin examples/admob/{ => assets}/ios-icon-50.png | Bin examples/admob/{ => assets}/ios-icon-57.png | Bin examples/admob/{ => assets}/ios-icon-58.png | Bin examples/admob/{ => assets}/ios-icon-60.png | Bin examples/admob/{ => assets}/ios-icon-72.png | Bin examples/admob/{ => assets}/ios-icon-76.png | Bin examples/admob/{ => assets}/ios-icon-80.png | Bin examples/admob/{ => assets}/player.png | Bin examples/admob/game.json | 7134 +++++++++++++++++ 31 files changed, 7134 insertions(+), 4844 deletions(-) delete mode 100755 examples/admob/Button.png delete mode 100755 examples/admob/Grass.png delete mode 100755 examples/admob/admob.json create mode 100644 examples/admob/assets/Green Button_Hovered.png create mode 100644 examples/admob/assets/Green Button_Idle.png create mode 100644 examples/admob/assets/Green Button_Pressed.png rename examples/admob/{ => assets}/android-icon-144.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/android-icon-192.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/android-icon-36.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/android-icon-48.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/android-icon-72.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/android-icon-96.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/desktop-icon-512.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-100.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-114.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-120.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-144.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-152.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-167.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-180.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-29.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-40.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-50.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-57.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-58.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-60.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-72.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-76.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/ios-icon-80.png (100%) mode change 100755 => 100644 rename examples/admob/{ => assets}/player.png (100%) mode change 100755 => 100644 create mode 100644 examples/admob/game.json diff --git a/examples/admob/Button.png b/examples/admob/Button.png deleted file mode 100755 index 43c00c9b5f09d57ca435f6be45118062a86a57e7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^Mj*_=1SBWM%0B~AoCO|{#S9F5he4R}c>anMprDPX zi(^Q{;kV};IT;u@STbP0 Hl+XkKQ004R> z004l5008;`004mK004C`008P>0026e000+ooVrmw0002DP)t-s0001)-6E9SBa+)B zliMVd+9Z?PB$C@BlG-Db-XV|HBgBtf#E)FXk6gu!TE>uF$e3uzm}kkDY0jK$%9v@$ zm}ryRB#qG`h{_>^#UO*jAAr6eiOeB^zaNLlAd1c*p_?;{vL%+LEToqL_DWzVb1^n010qNS#tmY4#NNd4#NS*Z>VGd00P5FL_t(o!_C;)QtL1b z24F$TzHgx=Y;6M+FiY#W7|#2@*Qp&ll5No;(2MHwAN!k0yhIa#S*@&Qoz7a`y4E_K zY;^@(t#7m!ur}6fWi!vuyS?5;(Yh{rz3zFQZyF`bFR$7QSXY;M2C$W1{{=C1oo_+b z{i{+G-3+$>t`x;K+$@5*f!-pR9xOsBisfZ)`|OaxfQ|dNJTolsIA>6noYTK6ha593 zOU{`ooHJ8O;s8|`$115~72-gkB#u*J$0_IlQSKjN$10;y>{#XDo;a3yd@{+ic!?Z~ zkAxTn58#v+@oeI!N6&agM2=S?$18$3K$XxzC2&w74g?Bys6rg7paY?TPN+0as5A~3 z<@F7RJLf&b{e<^O5#sIDI1nq&NfhVAigO@Q8Yfb`6DhR=sp6bOshvcz4iIHLAr2~1 z5(kyZm^gq+rKae7prRByAE-=Kg$@u!5r-<&A&MdnP=#@!`krFz1ssl%3ED19WE+uq=SaOO#V}^-uPR%Lk=rFbp zaQC?86z}LbHV$xK1M8$;1MBECo;koN#*thsImI}@Dnk5g6;D7cq?VT%^Y2MYerm-t z6}$FfM?p%{Rr_s6VYik}nRXq8+vqxG+I1AovGWe>1o6*03NpNQc3?M*g9(zx^E!%M z*b~XkDLG|sN3jR{%snnSWnM?I4{*SIRV1f;-%%WxA2^4Ka~S2jj^eQXopf}}Oi*kw p9mVmH|G9N?dZvC^XQwAd_zwsz8;_^%-GcxC002ovPDHLkV1f)7-xmM? diff --git a/examples/admob/admob.json b/examples/admob/admob.json deleted file mode 100755 index 25f5fa814..000000000 --- a/examples/admob/admob.json +++ /dev/null @@ -1,4844 +0,0 @@ -{ - "firstLayout": "", - "gdVersion": { - "build": 99, - "major": 4, - "minor": 0, - "revision": 0 - }, - "properties": { - "adaptGameResolutionAtRuntime": false, - "folderProject": false, - "orientation": "landscape", - "packageName": "com.example.admob", - "pixelsRounding": false, - "projectUuid": "4f8c4c80-990a-4d31-81b4-9641f30a921d", - "scaleMode": "linear", - "sizeOnStartupMode": "adaptWidth", - "useDeprecatedZeroAsDefaultZOrder": true, - "useExternalSourceFiles": false, - "version": "1.0.0", - "name": "Admob", - "author": "", - "windowWidth": 800, - "windowHeight": 600, - "latestCompilationDirectory": "C:\\Users\\Maciel\\Programacion\\gdevelop\\AdMobTest\\Export", - "maxFPS": 60, - "minFPS": 10, - "verticalSync": false, - "platformSpecificAssets": { - "android-icon-144": "android-icon-144.png", - "android-icon-192": "android-icon-192.png", - "android-icon-36": "android-icon-36.png", - "android-icon-48": "android-icon-48.png", - "android-icon-72": "android-icon-72.png", - "android-icon-96": "android-icon-96.png", - "desktop-icon-512": "desktop-icon-512.png", - "ios-icon-100": "ios-icon-100.png", - "ios-icon-114": "ios-icon-114.png", - "ios-icon-120": "ios-icon-120.png", - "ios-icon-144": "ios-icon-144.png", - "ios-icon-152": "ios-icon-152.png", - "ios-icon-167": "ios-icon-167.png", - "ios-icon-180": "ios-icon-180.png", - "ios-icon-29": "ios-icon-29.png", - "ios-icon-40": "ios-icon-40.png", - "ios-icon-50": "ios-icon-50.png", - "ios-icon-57": "ios-icon-57.png", - "ios-icon-58": "ios-icon-58.png", - "ios-icon-60": "ios-icon-60.png", - "ios-icon-72": "ios-icon-72.png", - "ios-icon-76": "ios-icon-76.png", - "ios-icon-80": "ios-icon-80.png" - }, - "loadingScreen": { - "backgroundColor": 0, - "backgroundFadeInDuration": 0.2, - "backgroundImageResourceName": "", - "gdevelopLogoStyle": "light", - "logoAndProgressFadeInDuration": 0.2, - "logoAndProgressLogoFadeInDelay": 0.2, - "minDuration": 1.5, - "progressBarColor": 16777215, - "progressBarHeight": 20, - "progressBarMaxWidth": 200, - "progressBarMinWidth": 40, - "progressBarWidthPercent": 30, - "showGDevelopSplash": true, - "showProgressBar": true - }, - "authorIds": [], - "extensionProperties": [ - { - "extension": "AdMob", - "property": "AdMobAppId", - "value": "test" - }, - { - "extension": "AdMob", - "property": "AdMobAppIdAndroid", - "value": "ca-app-pub-3940256099942544~3347511713" - }, - { - "extension": "AdMob", - "property": "AdMobAppIdIos", - "value": "ca-app-pub-3940256099942544~3347511713" - } - ], - "platforms": [ - { - "name": "GDevelop JS platform" - } - ], - "currentPlatform": "GDevelop JS platform" - }, - "resources": { - "resources": [ - { - "alwaysLoaded": false, - "file": "player.png", - "kind": "image", - "metadata": "", - "name": "player.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "desktop-icon-512.png", - "kind": "image", - "metadata": "", - "name": "desktop-icon-512.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "android-icon-192.png", - "kind": "image", - "metadata": "", - "name": "android-icon-192.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "android-icon-144.png", - "kind": "image", - "metadata": "", - "name": "android-icon-144.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "android-icon-96.png", - "kind": "image", - "metadata": "", - "name": "android-icon-96.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "android-icon-72.png", - "kind": "image", - "metadata": "", - "name": "android-icon-72.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "android-icon-48.png", - "kind": "image", - "metadata": "", - "name": "android-icon-48.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "android-icon-36.png", - "kind": "image", - "metadata": "", - "name": "android-icon-36.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "ios-icon-180.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-180.png", - "smoothed": true, - "userAdded": false - }, - { - "alwaysLoaded": false, - "file": "ios-icon-167.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-167.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-152.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-152.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-144.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-144.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-120.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-120.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-114.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-114.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-100.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-100.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-80.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-80.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-76.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-76.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-72.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-72.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-60.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-60.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-58.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-58.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-57.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-57.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-50.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-50.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-40.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-40.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "ios-icon-29.png", - "kind": "image", - "metadata": "", - "name": "ios-icon-29.png", - "smoothed": true, - "userAdded": true - }, - { - "alwaysLoaded": false, - "file": "Button.png", - "kind": "image", - "metadata": "", - "name": "Button.png", - "smoothed": true, - "userAdded": true - } - ], - "resourceFolders": [] - }, - "objects": [], - "objectsGroups": [], - "variables": [], - "layouts": [ - { - "b": 30, - "disableInputWhenNotFocused": true, - "mangledName": "Banners", - "name": "Banners", - "oglFOV": 90, - "oglZFar": 500, - "oglZNear": 1, - "r": 30, - "standardSortMethod": true, - "stopSoundsOnStartup": true, - "title": "", - "v": 30, - "uiSettings": { - "grid": false, - "gridB": 255, - "gridG": 180, - "gridHeight": 32, - "gridOffsetX": 0, - "gridOffsetY": 0, - "gridR": 158, - "gridType": "rectangular", - "gridWidth": 32, - "snap": true, - "windowMask": false, - "zoomFactor": 1 - }, - "objectsGroups": [], - "variables": [ - { - "name": "loading", - "type": "boolean", - "value": false - }, - { - "name": "showing", - "type": "boolean", - "value": false - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "Player", - "persistentUuid": "3f1676ec-cebf-4828-a775-920d8bb23b15", - "width": 0, - "x": 341, - "y": 238, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "DebugText", - "persistentUuid": "34dd0b6a-bd2f-4889-9a6e-3c7993bba2e4", - "width": 0, - "x": 80, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "LoadAtTop", - "persistentUuid": "0f02ace0-2450-438d-8174-26f015bf1930", - "width": 100, - "x": 500, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "Show", - "persistentUuid": "a6072269-9e04-4c83-91c0-9c63df7a7a7e", - "width": 100, - "x": 500, - "y": 160, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "LoadAtTopAndDisplay", - "persistentUuid": "59ad9e1e-8a6f-4134-bad5-1e2e047b1498", - "width": 220, - "x": 500, - "y": 240, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "Remove", - "persistentUuid": "b0c3eb3c-4f8b-4d85-8a3d-4adaf01f4bd2", - "width": 220, - "x": 500, - "y": 400, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "afa11973-535b-4313-8122-014a2a083083", - "width": 0, - "x": 580, - "y": 420, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "af91fb55-6372-46cb-8b58-e1c77718e7f3", - "width": 0, - "x": 520, - "y": 100, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "49da9633-6dae-4f65-9111-44a832b17de3", - "width": 0, - "x": 520, - "y": 180, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "eeeaccf4-a486-4f7c-8e3c-72e53cfc1802", - "width": 0, - "x": 580, - "y": 260, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "GoToInterstitials", - "persistentUuid": "1f7d452e-ae62-4570-afaf-3e5ce5c40fb4", - "width": 220, - "x": 560, - "y": 520, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "GoToRewardVideos", - "persistentUuid": "31359298-7d39-4324-803a-752e0f787e90", - "width": 220, - "x": 20, - "y": 520, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "318350a0-5db0-4fac-aa81-d29c7c444b73", - "width": 0, - "x": 100, - "y": 540, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "ffd3bb0c-fa34-4340-95e0-d7734fd931bd", - "width": 0, - "x": 640, - "y": 540, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "LoadAtBottom", - "persistentUuid": "83f00e4d-bc12-4d0e-b189-4e979f5713fe", - "width": 100, - "x": 620, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "c9663a1b-637e-417f-be5a-162709572a3a", - "width": 0, - "x": 640, - "y": 100, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "Hide", - "persistentUuid": "10de157d-2e69-4fc0-bce4-629eada99ff8", - "width": 100, - "x": 620, - "y": 160, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "76913de0-4490-4618-83b0-952a7ab348d7", - "width": 0, - "x": 640, - "y": 180, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "LoadAtBottomAndDisplay", - "persistentUuid": "8231e350-e049-4b60-a690-78659eb31f8a", - "width": 220, - "x": 500, - "y": 320, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "b6d91be5-0353-4fdd-b77c-25dca8e86f1a", - "width": 0, - "x": 580, - "y": 340, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "Title", - "persistentUuid": "7df7fd43-e47a-442d-b58e-a2cf240f1478", - "width": 0, - "x": 300, - "y": 20, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ], - "objects": [ - { - "name": "Player", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "player.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "bold": false, - "italic": false, - "name": "DebugText", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Debug info", - "font": "", - "characterSize": 32, - "color": { - "b": 220, - "g": 220, - "r": 220 - } - }, - { - "name": "LoadAtTop", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "LoadAtBottom", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "Show", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "Hide", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "LoadAtTopAndDisplay", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "LoadAtBottomAndDisplay", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "Remove", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "bold": false, - "italic": false, - "name": "Title", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "BANNERS", - "font": "", - "characterSize": 40, - "color": { - "b": 180, - "g": 180, - "r": 180 - } - }, - { - "bold": false, - "italic": false, - "name": "ButtonText", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Text", - "font": "", - "characterSize": 24, - "color": { - "b": 30, - "g": 30, - "r": 30 - } - }, - { - "name": "GoToInterstitials", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "GoToRewardVideos", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - } - ], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 0, - "g": 134, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", - "comment2": "" - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "DepartScene" - }, - "parameters": [ - "" - ], - "subInstructions": [] - } - ], - "actions": [], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "LoadAtTop", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Load\nat top\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "LoadAtTop.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "LoadAtTop.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "LoadAtBottom", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Load\nat bottom\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "LoadAtBottom.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "LoadAtBottom.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "Show", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Show\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "Show.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "Show.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "Hide", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Hide\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "Hide.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "Hide.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "LoadAtTopAndDisplay", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Load at top\n & Display\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "LoadAtTopAndDisplay.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "LoadAtTopAndDisplay.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "LoadAtBottomAndDisplay", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Load at bottom\n & Display\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "LoadAtBottomAndDisplay.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "LoadAtBottomAndDisplay.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "Remove", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Remove\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "Remove.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "Remove.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "GoToInterstitials", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Go to\nInterstitials\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "GoToInterstitials.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "GoToInterstitials.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "GoToRewardVideos", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Go to\nReward Videos\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "GoToRewardVideos.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "GoToRewardVideos.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetAngle" - }, - "parameters": [ - "Player", - "+", - "90*TimeDelta()" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "MouseButtonReleased" - }, - "parameters": [ - "", - "Left" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "BuiltinCommonInstructions::Once" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "LoadAtTop", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadBanner" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/6300978111\"", - "\"test\"", - "yes", - "yes", - "no", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "LoadAtBottom", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadBanner" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/6300978111\"", - "\"test\"", - "no", - "yes", - "no", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "Show", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::ShowBanner" - }, - "parameters": [], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "Hide", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::HideBanner" - }, - "parameters": [], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "LoadAtTopAndDisplay", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadBanner" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/6300978111\"", - "\"test\"", - "yes", - "yes", - "yes", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "LoadAtBottomAndDisplay", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadBanner" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/6300978111\"", - "\"test\"", - "no", - "yes", - "yes", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "Remove", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::RemoveBanner" - }, - "parameters": [], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "GoToInterstitials", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Scene" - }, - "parameters": [ - "", - "\"Interstitials\"", - "yes" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "GoToRewardVideos", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Scene" - }, - "parameters": [ - "", - "\"RewardVideos\"", - "yes" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "loading", - "False" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "showing", - "" - ], - "subInstructions": [] - } - ], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::BannerLoading" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "loading", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::BannerShowing" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "showing", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "DebugText", - "=", - "\"Loading: \" + VariableString(loading) + NewLine() + \"Showing: \" + VariableString(showing)" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "followBaseLayerCamera": false, - "isLightingLayer": false, - "name": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "behaviorsSharedData": [] - }, - { - "b": 30, - "disableInputWhenNotFocused": true, - "mangledName": "Interstitials", - "name": "Interstitials", - "oglFOV": 90, - "oglZFar": 500, - "oglZNear": 1, - "r": 30, - "standardSortMethod": true, - "stopSoundsOnStartup": true, - "title": "", - "v": 30, - "uiSettings": { - "grid": false, - "gridB": 255, - "gridG": 180, - "gridHeight": 32, - "gridOffsetX": 0, - "gridOffsetY": 0, - "gridR": 158, - "gridType": "rectangular", - "gridWidth": 32, - "snap": true, - "windowMask": false, - "zoomFactor": 1 - }, - "objectsGroups": [], - "variables": [ - { - "name": "ready", - "type": "boolean", - "value": false - }, - { - "name": "showing", - "type": "boolean", - "value": false - }, - { - "name": "loading", - "type": "boolean", - "value": false - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "Player", - "persistentUuid": "7af13242-710c-4133-9c9d-6c25c6c6c685", - "width": 0, - "x": 341, - "y": 238, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "DebugText", - "persistentUuid": "5630e9c7-2825-4439-95f8-807bd17eebec", - "width": 0, - "x": 80, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "Load", - "persistentUuid": "589c767c-2a5d-4394-9076-1852590ba993", - "width": 100, - "x": 500, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "Display", - "persistentUuid": "56fa0389-3114-4a79-903c-2c8c4a454af0", - "width": 100, - "x": 620, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "LoadAndDisplay", - "persistentUuid": "65aff608-ed8f-481f-824d-c1d8f9dd2021", - "width": 220, - "x": 500, - "y": 200, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "f0f1a574-b432-4381-b989-00f5d17009fd", - "width": 0, - "x": 520, - "y": 100, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "0b27f02e-fe04-4b3c-ab0c-e63de7848eb8", - "width": 0, - "x": 640, - "y": 100, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "acb5e220-86c4-40df-be8c-e8e25c0f0607", - "width": 0, - "x": 580, - "y": 220, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "GoToBanners", - "persistentUuid": "943a6f8d-0c77-463a-9c02-6b931992ae14", - "width": 220, - "x": 20, - "y": 520, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "GoToRewardVideos", - "persistentUuid": "f2bb1077-4eed-402a-abbd-ffdbcdadee05", - "width": 220, - "x": 560, - "y": 520, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "e51d3847-31ec-4a2c-bc5b-c6eb8edc9869", - "width": 0, - "x": 100, - "y": 540, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "b233c2ef-0a30-4019-a78d-cbf5d39854cf", - "width": 0, - "x": 640, - "y": 540, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "Title", - "persistentUuid": "93c29558-2fef-4a2a-aafc-28c7fc3bc7dd", - "width": 0, - "x": 240, - "y": 20, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ], - "objects": [ - { - "name": "Player", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "player.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "bold": false, - "italic": false, - "name": "DebugText", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Debug info", - "font": "", - "characterSize": 32, - "color": { - "b": 220, - "g": 220, - "r": 220 - } - }, - { - "name": "Load", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "Display", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "LoadAndDisplay", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "bold": false, - "italic": false, - "name": "Title", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "INTERSTITIALS", - "font": "", - "characterSize": 40, - "color": { - "b": 180, - "g": 180, - "r": 180 - } - }, - { - "bold": false, - "italic": false, - "name": "ButtonText", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Text", - "font": "", - "characterSize": 24, - "color": { - "b": 30, - "g": 30, - "r": 30 - } - }, - { - "name": "GoToBanners", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "GoToRewardVideos", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - } - ], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 12, - "g": 132, - "r": 241, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", - "comment2": "" - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "DepartScene" - }, - "parameters": [ - "" - ], - "subInstructions": [] - } - ], - "actions": [], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "Load", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Load\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "Load.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "Load.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "Display", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Display\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "Display.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "Display.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "LoadAndDisplay", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Load & Display\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "LoadAndDisplay.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "LoadAndDisplay.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "GoToRewardVideos", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Go to\nReward Videos\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "GoToRewardVideos.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "GoToRewardVideos.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "GoToBanners", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Go to\nBanners\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "GoToBanners.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "GoToBanners.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "MouseButtonReleased" - }, - "parameters": [ - "", - "Left" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "BuiltinCommonInstructions::Once" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "Load", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadInterstitial" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/1033173712\"", - "\"test\"", - "no", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "Display", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::ShowInterstitial" - }, - "parameters": [], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "LoadAndDisplay", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadInterstitial" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/1033173712\"", - "\"test\"", - "yes", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "GoToRewardVideos", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Scene" - }, - "parameters": [ - "", - "\"RewardVideos\"", - "yes" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "GoToBanners", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Scene" - }, - "parameters": [ - "", - "\"Banners\"", - "yes" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetAngle" - }, - "parameters": [ - "Player", - "+", - "90*TimeDelta()" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "loading", - "False" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "ready", - "" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "showing", - "" - ], - "subInstructions": [] - } - ], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::InterstitialLoading" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "loading", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::InterstitialReady" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "ready", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::InterstitialShowing" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "showing", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "DebugText", - "=", - "\"Loading: \" + VariableString(loading) + NewLine() + \"Ready: \" + VariableString(ready) + NewLine() + \"Showing: \" + VariableString(showing)" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "followBaseLayerCamera": false, - "isLightingLayer": false, - "name": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "behaviorsSharedData": [] - }, - { - "b": 30, - "disableInputWhenNotFocused": true, - "mangledName": "RewardVideos", - "name": "RewardVideos", - "oglFOV": 90, - "oglZFar": 500, - "oglZNear": 1, - "r": 30, - "standardSortMethod": true, - "stopSoundsOnStartup": true, - "title": "", - "v": 30, - "uiSettings": { - "grid": false, - "gridB": 255, - "gridG": 180, - "gridHeight": 32, - "gridOffsetX": 0, - "gridOffsetY": 0, - "gridR": 158, - "gridType": "rectangular", - "gridWidth": 32, - "snap": true, - "windowMask": false, - "zoomFactor": 1 - }, - "objectsGroups": [], - "variables": [ - { - "name": "ready", - "type": "boolean", - "value": false - }, - { - "name": "showing", - "type": "boolean", - "value": false - }, - { - "name": "reward", - "type": "boolean", - "value": false - }, - { - "name": "loading", - "type": "boolean", - "value": false - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "Player", - "persistentUuid": "f4a64fab-6c6e-4113-a70f-51000e7a3311", - "width": 0, - "x": 341, - "y": 238, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "DebugText", - "persistentUuid": "fda152a9-fec1-4ed7-835b-4def9039bf00", - "width": 0, - "x": 80, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "Load", - "persistentUuid": "baa28784-58c8-4218-afa4-c44df3ef0fa3", - "width": 100, - "x": 500, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "Display", - "persistentUuid": "954964da-51f1-4288-8e97-065e30466bfe", - "width": 100, - "x": 620, - "y": 80, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "LoadAndDisplay", - "persistentUuid": "db55cae3-49ac-4500-8562-fb29e1880010", - "width": 220, - "x": 500, - "y": 200, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "ClaimReward", - "persistentUuid": "88a2f7a9-c4fc-4630-adfd-e7e87f44db12", - "width": 220, - "x": 500, - "y": 320, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "ec7cc7bb-beb4-4541-872d-0b3c29e753c5", - "width": 0, - "x": 580, - "y": 340, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "bb9331d0-ec2f-46c4-a870-e4e01c4f5202", - "width": 0, - "x": 520, - "y": 100, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "8a007a4c-870f-4556-a1ed-7deb8e5500a2", - "width": 0, - "x": 640, - "y": 100, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "56dee0b7-51b3-4517-88a4-9bc8ee203549", - "width": 0, - "x": 580, - "y": 220, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "GoToBanners", - "persistentUuid": "baa2d373-e230-41f3-be0e-9f37f565450d", - "width": 220, - "x": 560, - "y": 520, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 60, - "layer": "", - "locked": false, - "name": "GoToInterstitials", - "persistentUuid": "6fd40015-a20d-4f0a-93f3-7783a3dc798c", - "width": 220, - "x": 20, - "y": 520, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "62eb3413-b208-478d-b706-f78564213a88", - "width": 0, - "x": 100, - "y": 540, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "ButtonText", - "persistentUuid": "9a9a0e16-a89d-4e35-a298-17b57516674b", - "width": 0, - "x": 640, - "y": 540, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "locked": false, - "name": "Title", - "persistentUuid": "4ada3368-2c2c-46f2-b7bf-af7478631821", - "width": 0, - "x": 220, - "y": 20, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ], - "objects": [ - { - "name": "Player", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "player.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "bold": false, - "italic": false, - "name": "DebugText", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Debug info", - "font": "", - "characterSize": 32, - "color": { - "b": 220, - "g": 220, - "r": 220 - } - }, - { - "name": "Load", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "Display", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "LoadAndDisplay", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "ClaimReward", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "bold": false, - "italic": false, - "name": "Title", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "REWARD VIDEOS", - "font": "", - "characterSize": 40, - "color": { - "b": 180, - "g": 180, - "r": 180 - } - }, - { - "bold": false, - "italic": false, - "name": "ButtonText", - "smoothed": true, - "tags": "", - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Text", - "font": "", - "characterSize": 24, - "color": { - "b": 30, - "g": 30, - "r": 30 - } - }, - { - "name": "GoToBanners", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "name": "GoToInterstitials", - "tags": "", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 1, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "Button.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - } - ], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 0, - "g": 134, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", - "comment2": "" - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "DepartScene" - }, - "parameters": [ - "" - ], - "subInstructions": [] - } - ], - "actions": [], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "Load", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Load\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "Load.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "Load.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "Display", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Display\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "Display.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "Display.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "LoadAndDisplay", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Load & Display\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "LoadAndDisplay.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "LoadAndDisplay.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "ClaimReward", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\"Claim Reward!\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "ClaimReward.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "ClaimReward.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "GoToBanners", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Go to\nBanners\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "GoToBanners.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "GoToBanners.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "CollisionNP" - }, - "parameters": [ - "ButtonText", - "GoToInterstitials", - "", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "ButtonText", - "=", - "\" Go to\nInterstitials\"" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "MettreXY" - }, - "parameters": [ - "ButtonText", - "=", - "GoToInterstitials.PointX(\"Centre\") - ButtonText.Width()/2", - "=", - "GoToInterstitials.PointY(\"Centre\") - ButtonText.Height()/2" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetAngle" - }, - "parameters": [ - "Player", - "+", - "90*TimeDelta()" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "MouseButtonReleased" - }, - "parameters": [ - "", - "Left" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "BuiltinCommonInstructions::Once" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "Load", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadVideo" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/5224354917\"", - "\"test\"", - "no", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "Display", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::ShowVideo" - }, - "parameters": [], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "LoadAndDisplay", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "AdMob::LoadVideo" - }, - "parameters": [ - "\"ca-app-pub-3940256099942544/5224354917\"", - "\"test\"", - "yes", - "no" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "ClaimReward", - "", - "no", - "" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "AdMob::VideoReward" - }, - "parameters": [ - "yes" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SceneBackground" - }, - "parameters": [ - "", - "ToString(Random(255)) + \";\" + ToString(Random(255)) + \";\" + ToString(Random(255))" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "GoToBanners", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Scene" - }, - "parameters": [ - "", - "\"Banners\"", - "yes" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "SourisSurObjet" - }, - "parameters": [ - "GoToInterstitials", - "", - "no", - "" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "Scene" - }, - "parameters": [ - "", - "\"Interstitials\"", - "yes" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "loading", - "False" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "ready", - "" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "showing", - "" - ], - "subInstructions": [] - }, - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "reward", - "False" - ], - "subInstructions": [] - } - ], - "events": [ - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::VideoLoading" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "loading", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::VideoReady" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "ready", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::VideoShowing" - }, - "parameters": [], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "showing", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": false, - "value": "AdMob::VideoReward" - }, - "parameters": [ - "no" - ], - "subInstructions": [] - } - ], - "actions": [ - { - "type": { - "inverted": false, - "value": "SetSceneVariableAsBoolean" - }, - "parameters": [ - "reward", - "True" - ], - "subInstructions": [] - } - ], - "events": [] - }, - { - "disabled": false, - "folded": false, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "inverted": false, - "value": "TextObject::String" - }, - "parameters": [ - "DebugText", - "=", - "\"Loading: \" + VariableString(loading) + NewLine() + \"Ready: \" + VariableString(ready) + NewLine() + \"Showing: \" + VariableString(showing) + NewLine() + \"Reward: \" + VariableString(reward)" - ], - "subInstructions": [] - } - ], - "events": [] - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "followBaseLayerCamera": false, - "isLightingLayer": false, - "name": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "behaviorsSharedData": [] - } - ], - "externalEvents": [], - "eventsFunctionsExtensions": [], - "externalLayouts": [], - "externalSourceFiles": [] -} \ No newline at end of file diff --git a/examples/admob/assets/Green Button_Hovered.png b/examples/admob/assets/Green Button_Hovered.png new file mode 100644 index 0000000000000000000000000000000000000000..efc1679466ba8cbe6b1bb004cf089bd8c74f2b30 GIT binary patch literal 2364 zcmds3`9IVP8~u*4j2UC!GL$BvDU^zOt!ZRXk}XVGv(wDAjS0=zGWK*WxsvrZvW8)} zwo%rUELmP76D1*IiLsm4{Wsnpp7T7P^V|7+&iR}t!P3G64wZuf001||psfG^baVo~ z5dI^y_Dy3SEkQiSAqW5z;{P2`+T5DQ5qT`w*gn`A=NU|J4fFsA1cJKHL%$$*SGBNtt$rrkUmrNHJh*(%U`hm@}tKDR=EVv7QbqZwaGQLP`TmQ3?&PmxO;z<#nOL3 zS7>~KYr_IIyh^quc4erO^^z)R4Dt0YKcBOi}U_lFLAdSp)=17&kbt3ANlwSHzzNb&pfyyl92R`csrpt6u<%%e1i~0A(v6B z_B2YCzdYj{`6QqX1Yg@AeyTUnCzceG&NwS=Sp{!=7`Rb6M^p=wW^hi^&Cy-Mf*pGn zj?-5+Z~Fgy*pVLx0bH&U_~^^#1%QhR=AdlR;DasW!`@Xwa(T-oPox z{(R6S$r3#z>ItawdzXZO+j5g~5I>{bE0hZzQ~^rw{kBbqUK-UZdWA}yeD9l)c|)|; z+|rHtCL^*C# zZyU)B++lp~_%{_MiC2uhmS6{kr`V5YH{v(l@V<(v92hMrm$VD(8!-UlsXGs52dB8Tr@IKtX|vxuAcnB}&Z36mDm#W_EhETmr)J zC(4`gI^SOyc;Q>CJAZ{-92D}rd0^#Q6`-0|T~=AvF%nLK{=GjB^4gGm7{)@f;o#mK zoft}@nW$}u_Z@^-I+T?>CbwKe;wK5;q$;(tmt(lc?gSaH>uO53i+8k{Yk$i zSqRKdi#Bd2WWiEmwUev!goVQHMqWfltI$^jo$}7YIvxu*M&{g3I&}E)YfEkn={VC~ zPWX&qNYN30#c!kgpFQagp$mYgrC4DeCE_gSI(5r)?EnyRTWlj)w?0|7srk{CQlbd z3=cNWaJIXB%Zlu6oieW~Rpm`nzrOC#G(q?-MtU81Z3=a_rWpt2MKnvDUFZIFf{vt-Vmz<*bd$40Pr+x@))Ib zP(F_nFb^RI#w8=jfTB1j;B5@ooZ{_)2m8@4NkX$S&H!!LSpR;G?dtU7qRcamp+PO> z?*?|>iXb(?U~;dE5P*!i08oUw0Yy#O|3|`ukG#|r#Z&J6QS{DXDPukKp0>#?hW~%& zm<=xTO=?IKKh`XQ*-;Pw4k6nV^h)ysLuQgwMCx#z!)1aV4+Z1#l8G#GQ_V)PIC=`8 zI{*erzhttA-vz#pxn5Cm!e}I%J}a(p=5b z+|5|A#UuC`M*n~W^1TEfOxl0KDmw5ry2<7gs@_3m|3}w9?VXlxVTIMX4WKEbQ~)5e zm-H;nT(^FlFzRgoBx25+A`W`P;U2nEO3&+7iY@8KSCzBQ*@gD=pNAB<7AC^(YPbb! zrmE1Fui0K*fhsw&m0u~Z`FQ!)=otWpNyp!SHb4_K_A{0dvZRA?)|(olo>nz8cC_4g zeL`Jq?p<%Eth&>ZF^)SI_xSf7CF?Q5P=Uw~! zWTB<3t4^$?DWsvRoEIH8+o*1}AnBPW>1ka@x!rvsL$=GsO=&*lu*>^rbpS5oq|GZf1hxR1u1yi5m>~RO&csuIx`I1$nq)Mc znfe03r+J(|P;Ds$0B=>EIcl}Tr!u?W_Pg_dD@VOomDvJeG;0Ki-6Cv4@_mm^7&2!xEWqoUVM>M@1%smd|14YnvcbD` zU;*a<(kwvRg^^!HH{3wSeXd43LD)O)oDLUg?enn;aOB5Ruk zdozuaPS}5kD2|vfr;WzB7zn5t^i2I36LC^>XuTNpVw@2^+q5#^yomkqOlG~GL~7{^ ztfbOh;=TR(29ule1zmxC4J0})8#tfT)X#}@9Q<2%r`la7zoni#^-O(^D-z<6P#h4` S#yR?Y08?WNbd`}y^#1^#{W*>R literal 0 HcmV?d00001 diff --git a/examples/admob/assets/Green Button_Idle.png b/examples/admob/assets/Green Button_Idle.png new file mode 100644 index 0000000000000000000000000000000000000000..010e5769c997b6c6a926ac632e0fa1fccadabcf4 GIT binary patch literal 2378 zcmds(`9IT-AHd(++Q?CxLJ_U`CY$8ST+0@dLKI0B#wRKf%YDTn86$Ee_n9+C7)h@5 zMaWel#AI~1hhdI=d_Ld*;`?~K&gT!WUtX`*28ZyWRHmv3GX_e0+S)IJr7|+_I-Q zo^f-(le&PD0091>OT_cneADK~j9jh_Nx_yDgMao!DNfb44}5Sx~j&j{IlE z)pXZ*I7BURq_Frf+Dx8dW`U+(uy|XTZ~+#1Ebd{|iF+?EMtr#tc}%*E`Jp8S@Q$8e zj>=T+o*MrQ^;Wra+l6vgby#!4&8KIx_gD9iz;&+${_90k>4Tpr(?4m z-?;vjp|r+wg$zzp(&+K=VQQ>YEXRZuDVhXdYR~CosL??o|Xxb9ZwAxlq&U$`9KX}4!q3=b~$2sy_<-3Y&`R^j} zgoK)n%;7DK46Omuk|#dd#O@5DHSjNq2v2ZX(v#WSOmyu&d^ing7C9cMBdOCBBhVCz zDG;+TQ3%-;CZ!YlI1Sf~~C z>D>1s(Sm_>C6$*p2Jn6fH8IHxIL-34c|Z3g+q^#iKh~qSo;$p{)!{Dz7lQQ-k7a#* zdVz1!KRNF53tFTBI_&kY*g;E6a%l0N&bc$M0~eHy&NCd>vDh$1{ce%5i0X2YSx*uz z(glmqQ%UdRrlhozZYCV7CVug$)Rt5qbk_eY_$;J8l6Log>L*Q#I`%gRXwebu97+3L zn{5^x1vl+^e%qUP%}ns4X6gLnW2Fksvd+uBxW+T?nCcu~_iy4tw7bGad8?9-TBu~_ z00JFK&}La`aGiN&NtjP_w8A`V%ccj%`C-*HzzIPsNh(zr)Lhy?oW0t1QxgC*#DM$s z*!!a-sQNCv)U?idD2Ydw@@~OzBT=eK08OY3K&l*pP&@2|092^*{~@?x3%n^S5$9J8 zxqGhiLjl8M2zvzym=#qIa;$byrgU0o%bnk#Si^kwJvJDb-n}2lv|%|Ru4--sa$B^M zJt%wv8K7V2$$h%|8DfY;y@ip>`0k^G(^|OHlXzLQ^sF+c5QhcKWJ zJ6|StW=5>Kk=rTj;yl)+3d&J4{P6zylIz)PjJrEksvaBeOC~M7Hvo1GpI=7!0?!tf zFuAfM5w++#r!GTcB9R|WQpqapf2kM+3orF+nSg}>@yL<8~XfBl}fx_&6dAQ7T z{Rh1lW{F9yJ@G~`EPooq-GU*~Q(B%Kug5p!J+N!b6BUAEH#PzsPB9I}lDjFmAPwLe8aLy-8d{pX@zXIJ|-r z`u;8~JGHjLJ~WhK4tXEFR#;Mg9(ja-gcFdyyphK=!&Wbwyf~*kGjv`Y`a_QDUXKyU zFEATv!6(6WuJVp+z(Etb%d#)HHr#*`;Ok(KDU+i{^cy;zS$OdE$UbDwnn}bwufxBj z;m+aMaf5S`C`?I4&s0*|X#mdr{%laYSNTp{17T>b7>hyxZvbbny7R&T3V@6CneNteYZM zFUURG=5$A7sJrt$w_z64AJ{(9sl}J&SSNuZtz3X=BnGg^m2(qYX-j9$6_)(9h5v&Kab|HTQOhrT+ literal 0 HcmV?d00001 diff --git a/examples/admob/assets/Green Button_Pressed.png b/examples/admob/assets/Green Button_Pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..d59f084105e013f7cbb47147aacad607b6d6e18f GIT binary patch literal 2282 zcmds3`8(8&9{rB2(`y*pFqVnziqw#OooQ@Cw%0DQja^1Y!c57QhC~q)E=h>$CXpElExkl(Du0Wd1J=2Au|g1^U!CA1?qpNq4*RbOFa4unU6uVLM0xX zfK&=u$dhJA6hy3i7thB~iOsxo^`Lup34v;gRJdmq&I(9La?4kO}xuVYc z?b!?mw4|N=z3g_~55BOx_}c~qCGbXy$g2#VjSMdbtkdPKq3Ga#JPRS;&7S>PlXztK z_uR=}L>UE7Q9!5sC&BkvtrYThfc=cB$wVtuuP$O><2gdi8HGe<#=mDRbYyCEaBt9( zU$(%!^C{-yr=%O$^lm{N~j8TBp#7dDg0H4-qwy9lM++p=2^G-Y5l!%ljdwH@2O6tT~-COO&oNtRat0 zAAX&4ulR<`t(@!bm`w5B z8let9AJbQKk1-oFp5C1)9T)!Mno=ccYd!OXz{fe%tM)H=)_rV|mQ^|@08~0Q>z(KM z_c?=>RL(e=9&Vbk=nqR8RrB79xmFQq#n6o~J|89gX4!0gCup%qfO~?6aLjI6Xf&jr zJXCgAyT(K#{ggCSg~>j2$?6A94uM#&kQd73#@8=WJw*5#UN69B>bZBy`=W^kgL`7m z1>}WOp<9og8@`T8PkO(=2yL|lywnd-;KVLk;>!2M8_&YMq7_;fzlQ?ZeUKVHGW9Y# z{NZo{CLfKoRJ#2gg@8 zM8Lulrc?rlq8ls2$jfM+N(aR?Kon3G?^8`FL0F+0(qZ21D(gwDHEy6Y3eb4@aTfCx z2i4%3w5+|+1R)H=(nJg7r2&*w5FqMx2V@bf%MTRv{yz#1ptYNPUw5s9hd2}wsALXU zo^iY!7NemKj8F$ZN6}ev%nN7qlx~-5=>{3UYXLcE0EG1WDNjF2@&m&W5@t!i!oqq^ z6C_DD0#qnswsqM75h#h*XX}tH?<0M3S3H2^^xolh%CMVu9WE4uD$p#}>q|^DiHyp9 zV8&OeS7x1 zxwn+bKLT*kT8&2cSKC&3zHRpA)Ct|mbd-dTh0-C)-YODu$fwu~(ZNv?g(HR3d)loT zyQ2@Qms0^Va9#p~rJLwzXQ*#9sZ^>Bl^o#@)4JypGujgg@2>HH_$^gjcd=LtjeA_X ztJ$YUZcq1YpamAb$_?W|X%*e28|X`unbn-n%n4%~pb>qIxRijf`IXu=M8ZzTc1J`@Cu0kJ@>I zp7?iJ($YdEl7#tHw&I8lFfvbn0zZene9z*-SYTs4#%fTsP#Oue!Gz$UI8o&pQ=Iqlyu@lTFbYp~-gV^zXbJn5gxIjz^nz}IJ zAjkfNzF&GjVHp!5Qvp`?Ug%TpTTcrU;Ky4}DPGEvJH*=e8*gUtna|~OuC6+r*l3UQ z%jucVBu})Y9j7(f!iY4~)=>k<_Ntvv{x(9mO5JWZ+(=n0$nzi%UPdG=MQ!3qW@HsQ z?CvSsDs4aVkNSvUP1o#xahujFAA+v5LRQ5@(KXC#17GKLT?c|x&C{2Xq|)1+~ih2Kse{V9Mg+7Z=c6>#$(a|Qds literal 0 HcmV?d00001 diff --git a/examples/admob/android-icon-144.png b/examples/admob/assets/android-icon-144.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/android-icon-144.png rename to examples/admob/assets/android-icon-144.png diff --git a/examples/admob/android-icon-192.png b/examples/admob/assets/android-icon-192.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/android-icon-192.png rename to examples/admob/assets/android-icon-192.png diff --git a/examples/admob/android-icon-36.png b/examples/admob/assets/android-icon-36.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/android-icon-36.png rename to examples/admob/assets/android-icon-36.png diff --git a/examples/admob/android-icon-48.png b/examples/admob/assets/android-icon-48.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/android-icon-48.png rename to examples/admob/assets/android-icon-48.png diff --git a/examples/admob/android-icon-72.png b/examples/admob/assets/android-icon-72.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/android-icon-72.png rename to examples/admob/assets/android-icon-72.png diff --git a/examples/admob/android-icon-96.png b/examples/admob/assets/android-icon-96.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/android-icon-96.png rename to examples/admob/assets/android-icon-96.png diff --git a/examples/admob/desktop-icon-512.png b/examples/admob/assets/desktop-icon-512.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/desktop-icon-512.png rename to examples/admob/assets/desktop-icon-512.png diff --git a/examples/admob/ios-icon-100.png b/examples/admob/assets/ios-icon-100.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-100.png rename to examples/admob/assets/ios-icon-100.png diff --git a/examples/admob/ios-icon-114.png b/examples/admob/assets/ios-icon-114.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-114.png rename to examples/admob/assets/ios-icon-114.png diff --git a/examples/admob/ios-icon-120.png b/examples/admob/assets/ios-icon-120.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-120.png rename to examples/admob/assets/ios-icon-120.png diff --git a/examples/admob/ios-icon-144.png b/examples/admob/assets/ios-icon-144.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-144.png rename to examples/admob/assets/ios-icon-144.png diff --git a/examples/admob/ios-icon-152.png b/examples/admob/assets/ios-icon-152.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-152.png rename to examples/admob/assets/ios-icon-152.png diff --git a/examples/admob/ios-icon-167.png b/examples/admob/assets/ios-icon-167.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-167.png rename to examples/admob/assets/ios-icon-167.png diff --git a/examples/admob/ios-icon-180.png b/examples/admob/assets/ios-icon-180.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-180.png rename to examples/admob/assets/ios-icon-180.png diff --git a/examples/admob/ios-icon-29.png b/examples/admob/assets/ios-icon-29.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-29.png rename to examples/admob/assets/ios-icon-29.png diff --git a/examples/admob/ios-icon-40.png b/examples/admob/assets/ios-icon-40.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-40.png rename to examples/admob/assets/ios-icon-40.png diff --git a/examples/admob/ios-icon-50.png b/examples/admob/assets/ios-icon-50.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-50.png rename to examples/admob/assets/ios-icon-50.png diff --git a/examples/admob/ios-icon-57.png b/examples/admob/assets/ios-icon-57.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-57.png rename to examples/admob/assets/ios-icon-57.png diff --git a/examples/admob/ios-icon-58.png b/examples/admob/assets/ios-icon-58.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-58.png rename to examples/admob/assets/ios-icon-58.png diff --git a/examples/admob/ios-icon-60.png b/examples/admob/assets/ios-icon-60.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-60.png rename to examples/admob/assets/ios-icon-60.png diff --git a/examples/admob/ios-icon-72.png b/examples/admob/assets/ios-icon-72.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-72.png rename to examples/admob/assets/ios-icon-72.png diff --git a/examples/admob/ios-icon-76.png b/examples/admob/assets/ios-icon-76.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-76.png rename to examples/admob/assets/ios-icon-76.png diff --git a/examples/admob/ios-icon-80.png b/examples/admob/assets/ios-icon-80.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/ios-icon-80.png rename to examples/admob/assets/ios-icon-80.png diff --git a/examples/admob/player.png b/examples/admob/assets/player.png old mode 100755 new mode 100644 similarity index 100% rename from examples/admob/player.png rename to examples/admob/assets/player.png diff --git a/examples/admob/game.json b/examples/admob/game.json new file mode 100644 index 000000000..d7195373b --- /dev/null +++ b/examples/admob/game.json @@ -0,0 +1,7134 @@ +{ + "firstLayout": "", + "gdVersion": { + "build": 99, + "major": 4, + "minor": 0, + "revision": 0 + }, + "properties": { + "adaptGameResolutionAtRuntime": false, + "folderProject": false, + "orientation": "landscape", + "packageName": "com.example.admob", + "pixelsRounding": false, + "projectUuid": "9c35c4ee-55ee-46c0-b93c-81b5da0f75b2", + "scaleMode": "linear", + "sizeOnStartupMode": "adaptWidth", + "templateSlug": "admob", + "useDeprecatedZeroAsDefaultZOrder": true, + "useExternalSourceFiles": false, + "version": "1.0.0", + "name": "Handsomely Distribution (Admob)", + "description": "", + "author": "", + "windowWidth": 800, + "windowHeight": 600, + "latestCompilationDirectory": "/Users/clementpasteau/Desktop/test-cordova-app-new", + "maxFPS": 60, + "minFPS": 10, + "verticalSync": false, + "platformSpecificAssets": { + "android-icon-144": "android-icon-144.png", + "android-icon-192": "android-icon-192.png", + "android-icon-36": "android-icon-36.png", + "android-icon-48": "android-icon-48.png", + "android-icon-72": "android-icon-72.png", + "android-icon-96": "android-icon-96.png", + "desktop-icon-512": "desktop-icon-512.png", + "ios-icon-100": "ios-icon-100.png", + "ios-icon-114": "ios-icon-114.png", + "ios-icon-120": "ios-icon-120.png", + "ios-icon-144": "ios-icon-144.png", + "ios-icon-152": "ios-icon-152.png", + "ios-icon-167": "ios-icon-167.png", + "ios-icon-180": "ios-icon-180.png", + "ios-icon-29": "ios-icon-29.png", + "ios-icon-40": "ios-icon-40.png", + "ios-icon-50": "ios-icon-50.png", + "ios-icon-57": "ios-icon-57.png", + "ios-icon-58": "ios-icon-58.png", + "ios-icon-60": "ios-icon-60.png", + "ios-icon-72": "ios-icon-72.png", + "ios-icon-76": "ios-icon-76.png", + "ios-icon-80": "ios-icon-80.png" + }, + "loadingScreen": { + "backgroundColor": 0, + "backgroundFadeInDuration": 0.2, + "backgroundImageResourceName": "", + "gdevelopLogoStyle": "light", + "logoAndProgressFadeInDuration": 0.2, + "logoAndProgressLogoFadeInDelay": 0.2, + "minDuration": 1.5, + "progressBarColor": 16777215, + "progressBarHeight": 20, + "progressBarMaxWidth": 200, + "progressBarMinWidth": 40, + "progressBarWidthPercent": 30, + "showGDevelopSplash": true, + "showProgressBar": true + }, + "watermark": { + "placement": "bottom-left", + "showWatermark": true + }, + "authorIds": [], + "authorUsernames": [], + "categories": [], + "playableDevices": [], + "extensionProperties": [ + { + "extension": "AdMob", + "property": "AdMobAppId", + "value": "test" + }, + { + "extension": "AdMob", + "property": "AdMobAppIdAndroid", + "value": "ca-app-pub-3940256099942544~3347511713" + }, + { + "extension": "AdMob", + "property": "AdMobAppIdIos", + "value": "ca-app-pub-3940256099942544~3347511713" + } + ], + "platforms": [ + { + "name": "GDevelop JS platform" + } + ], + "currentPlatform": "GDevelop JS platform" + }, + "resources": { + "resources": [ + { + "alwaysLoaded": false, + "file": "assets/player.png", + "kind": "image", + "metadata": "", + "name": "player.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/desktop-icon-512.png", + "kind": "image", + "metadata": "", + "name": "desktop-icon-512.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/android-icon-192.png", + "kind": "image", + "metadata": "", + "name": "android-icon-192.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/android-icon-144.png", + "kind": "image", + "metadata": "", + "name": "android-icon-144.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/android-icon-96.png", + "kind": "image", + "metadata": "", + "name": "android-icon-96.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/android-icon-72.png", + "kind": "image", + "metadata": "", + "name": "android-icon-72.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/android-icon-48.png", + "kind": "image", + "metadata": "", + "name": "android-icon-48.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/android-icon-36.png", + "kind": "image", + "metadata": "", + "name": "android-icon-36.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-180.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-180.png", + "smoothed": true, + "userAdded": false + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-167.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-167.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-152.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-152.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-144.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-144.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-120.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-120.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-114.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-114.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-100.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-100.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-80.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-80.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-76.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-76.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-72.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-72.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-60.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-60.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-58.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-58.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-57.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-57.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-50.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-50.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-40.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-40.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/ios-icon-29.png", + "kind": "image", + "metadata": "", + "name": "ios-icon-29.png", + "smoothed": true, + "userAdded": true + }, + { + "alwaysLoaded": false, + "file": "assets/Green Button_Hovered.png", + "kind": "image", + "metadata": "", + "name": "Green Button_Hovered.png", + "smoothed": true, + "userAdded": false, + "origin": { + "identifier": "https://asset-resources.gdevelop.io/public-resources/Menu buttons/bff6adc488c7379b21ceba34e9104e861791b2fbb54b4aae167fe90115b92fa3_Green Button_Hovered.png", + "name": "Green Button_Hovered.png" + } + }, + { + "alwaysLoaded": false, + "file": "assets/Green Button_Idle.png", + "kind": "image", + "metadata": "", + "name": "Green Button_Idle.png", + "smoothed": true, + "userAdded": false, + "origin": { + "identifier": "https://asset-resources.gdevelop.io/public-resources/Menu buttons/f46d20e99495562ee66ee2f26defdb0788588184bd30b1f7b951ae728ce63d2a_Green Button_Idle.png", + "name": "Green Button_Idle.png" + } + }, + { + "alwaysLoaded": false, + "file": "assets/Green Button_Pressed.png", + "kind": "image", + "metadata": "", + "name": "Green Button_Pressed.png", + "smoothed": true, + "userAdded": false, + "origin": { + "identifier": "https://asset-resources.gdevelop.io/public-resources/Menu buttons/ecb33703984d3107196efce7335025d7ec104351fe8cdeb581c73fe0b8038c34_Green Button_Pressed.png", + "name": "Green Button_Pressed.png" + } + } + ], + "resourceFolders": [] + }, + "objects": [], + "objectsGroups": [], + "variables": [], + "layouts": [ + { + "b": 30, + "disableInputWhenNotFocused": true, + "mangledName": "Banners", + "name": "Banners", + "r": 30, + "standardSortMethod": true, + "stopSoundsOnStartup": true, + "title": "", + "v": 30, + "uiSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": true, + "zoomFactor": 1, + "windowMask": false + }, + "objectsGroups": [], + "variables": [ + { + "name": "configured", + "type": "boolean", + "value": false + }, + { + "folded": true, + "name": "loaded", + "type": "boolean", + "value": false + }, + { + "name": "showing", + "type": "boolean", + "value": false + } + ], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Player", + "persistentUuid": "3f1676ec-cebf-4828-a775-920d8bb23b15", + "width": 0, + "x": 341, + "y": 238, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "DebugText", + "persistentUuid": "34dd0b6a-bd2f-4889-9a6e-3c7993bba2e4", + "width": 0, + "x": 80, + "y": 80, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "ButtonText", + "persistentUuid": "afa11973-535b-4313-8122-014a2a083083", + "width": 0, + "x": 580, + "y": 420, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Title", + "persistentUuid": "7df7fd43-e47a-442d-b58e-a2cf240f1478", + "width": 0, + "x": 300, + "y": 20, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 59, + "layer": "", + "name": "ConfigureTop", + "persistentUuid": "df7e7c26-0a29-4b19-a0a4-596ec2c9c573", + "width": 154, + "x": 406, + "y": 113, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 63, + "layer": "", + "name": "ConfigureBottom", + "persistentUuid": "409ba2a7-aa8c-45c2-99fd-d367e92faa54", + "width": 193, + "x": 581, + "y": 109, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 56, + "layer": "", + "name": "Hide", + "persistentUuid": "93cef05e-eba0-4df3-b912-1f62a51fc3c6", + "width": 157, + "x": 595, + "y": 203, + "zOrder": 5, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 54, + "layer": "", + "name": "GoToRewardedInterstitials", + "persistentUuid": "490a30e1-8d75-4c34-b77b-642340cb6dd0", + "width": 294, + "x": 14, + "y": 526, + "zOrder": 6, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 61, + "layer": "", + "name": "GoToInterstitials", + "persistentUuid": "8b70baa4-c15e-4634-adc5-a94b96f81394", + "width": 251, + "x": 531, + "y": 520, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 58, + "layer": "", + "name": "Show", + "persistentUuid": "661a7f33-9487-430e-9ee7-935478fd1df8", + "width": 165, + "x": 407, + "y": 203, + "zOrder": 8, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "objects": [ + { + "assetStoreId": "", + "name": "Player", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 1, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "player.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "DebugText", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Debug info", + "font": "", + "textAlignment": "", + "characterSize": 32, + "color": { + "b": 220, + "g": 220, + "r": 220 + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Title", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "BANNERS", + "font": "", + "textAlignment": "", + "characterSize": 40, + "color": { + "b": 180, + "g": 180, + "r": 180 + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "ConfigureTop", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Configure top", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Show", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Show", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "ConfigureBottom", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Configure bottom", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Hide", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Hide", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToInterstitials", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go to Interstitials", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToRewardedInterstitials", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go to Rewarded Interstitials", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 0, + "g": 134, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::SetTestMode" + }, + "parameters": [ + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Player", + "+", + "90*TimeDelta()" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "False" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "configured", + "False" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loaded", + "False" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::BannerShowing" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::BannerConfigured" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "configured", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::BannerLoaded" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loaded", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "DebugText", + "=", + "\"Configured: \" + VariableString(configured) + NewLine() + \"Loaded: \" + VariableString(loaded) + \nNewLine() + \"Showing: \" + VariableString(showing)" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "ConfigureTop", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadBanner" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/6300978111\"", + "\"ca-app-pub-3940256099942544/2934735716\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "ConfigureBottom", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadBanner" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/6300978111\"", + "\"ca-app-pub-3940256099942544/2934735716\"", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Show", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::ShowBanner" + }, + "parameters": [] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Hide", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::RemoveBanner" + }, + "parameters": [] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToInterstitials", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"Interstitials\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToRewardedInterstitials", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"RewardedInterstitials\"", + "yes" + ] + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "followBaseLayerCamera": false, + "isLightingLayer": false, + "name": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "behaviorsSharedData": [] + }, + { + "b": 30, + "disableInputWhenNotFocused": true, + "mangledName": "Interstitials", + "name": "Interstitials", + "r": 30, + "standardSortMethod": true, + "stopSoundsOnStartup": true, + "title": "", + "v": 30, + "uiSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": true, + "zoomFactor": 1, + "windowMask": false + }, + "objectsGroups": [], + "variables": [ + { + "name": "ready", + "type": "boolean", + "value": false + }, + { + "name": "showing", + "type": "boolean", + "value": false + }, + { + "name": "loading", + "type": "boolean", + "value": false + } + ], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Player", + "persistentUuid": "7af13242-710c-4133-9c9d-6c25c6c6c685", + "width": 0, + "x": 341, + "y": 238, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "DebugText", + "persistentUuid": "5630e9c7-2825-4439-95f8-807bd17eebec", + "width": 0, + "x": 80, + "y": 80, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Title", + "persistentUuid": "93c29558-2fef-4a2a-aafc-28c7fc3bc7dd", + "width": 0, + "x": 240, + "y": 20, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 55, + "layer": "", + "name": "Load", + "persistentUuid": "ac64b529-5259-41a6-befc-1ed0fe85301b", + "width": 166, + "x": 448, + "y": 85, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 57, + "layer": "", + "name": "Display", + "persistentUuid": "f5f010c0-9269-4233-9a40-044d7cf6bf5e", + "width": 169, + "x": 624, + "y": 83, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 55, + "layer": "", + "name": "LoadAndDisplay", + "persistentUuid": "3269d510-d165-4d74-956d-7b58726d7046", + "width": 222, + "x": 505, + "y": 159, + "zOrder": 5, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 65, + "layer": "", + "name": "GoToBanners", + "persistentUuid": "32000f97-38f8-40e6-bffd-af1fbaf95614", + "width": 210, + "x": 11, + "y": 521, + "zOrder": 6, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 62, + "layer": "", + "name": "GoToRewardedVideos", + "persistentUuid": "da4542f2-e8e0-4ba5-bdea-6b36dd782d2d", + "width": 272, + "x": 506, + "y": 527, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "objects": [ + { + "assetStoreId": "", + "name": "Player", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 1, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "player.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "DebugText", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Debug info", + "font": "", + "textAlignment": "", + "characterSize": 32, + "color": { + "b": 220, + "g": 220, + "r": 220 + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Title", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "INTERSTITIALS", + "font": "", + "textAlignment": "", + "characterSize": 40, + "color": { + "b": 180, + "g": 180, + "r": 180 + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Load", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Display", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Display", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "LoadAndDisplay", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load And Display", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToBanners", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go To Banners", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToRewardedVideos", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go To Rewarded Videos", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 12, + "g": 132, + "r": 241, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::SetTestMode" + }, + "parameters": [ + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Player", + "+", + "90*TimeDelta()" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "False" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::InterstitialLoading" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::InterstitialReady" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::InterstitialShowing" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "DebugText", + "=", + "\"Loading: \" + VariableString(loading) + NewLine() + \"Ready: \" + VariableString(ready) + NewLine() + \"Showing: \" + VariableString(showing)" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Load", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadInterstitial" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/1033173712\"", + "\"ca-app-pub-3940256099942544/4411468910\"", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Display", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::ShowInterstitial" + }, + "parameters": [] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "LoadAndDisplay", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadInterstitial" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/1033173712\"", + "\"ca-app-pub-3940256099942544/4411468910\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToRewardedVideos", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"RewardedVideos\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToBanners", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"Banners\"", + "yes" + ] + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "followBaseLayerCamera": false, + "isLightingLayer": false, + "name": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "behaviorsSharedData": [] + }, + { + "b": 30, + "disableInputWhenNotFocused": true, + "mangledName": "RewardedVideos", + "name": "RewardedVideos", + "r": 30, + "standardSortMethod": true, + "stopSoundsOnStartup": true, + "title": "", + "v": 30, + "uiSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": true, + "zoomFactor": 1, + "windowMask": false + }, + "objectsGroups": [], + "variables": [ + { + "name": "ready", + "type": "boolean", + "value": false + }, + { + "name": "showing", + "type": "boolean", + "value": false + }, + { + "name": "reward", + "type": "boolean", + "value": false + }, + { + "name": "loading", + "type": "boolean", + "value": false + } + ], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Player", + "persistentUuid": "f4a64fab-6c6e-4113-a70f-51000e7a3311", + "width": 0, + "x": 341, + "y": 238, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "DebugText", + "persistentUuid": "fda152a9-fec1-4ed7-835b-4def9039bf00", + "width": 0, + "x": 80, + "y": 80, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Title", + "persistentUuid": "4ada3368-2c2c-46f2-b7bf-af7478631821", + "width": 0, + "x": 186, + "y": 18, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 56, + "layer": "", + "name": "Load", + "persistentUuid": "3f25de7e-84e0-4499-8f67-f5ca543181c8", + "width": 170, + "x": 425, + "y": 90, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 54, + "layer": "", + "name": "Display", + "persistentUuid": "fd916084-44ed-4fd5-8b2f-5ea530f61e60", + "width": 167, + "x": 612, + "y": 90, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 64, + "layer": "", + "name": "LoadAndDisplay", + "persistentUuid": "aca709f5-9aa9-4a63-b572-d109a96cb0b0", + "width": 233, + "x": 495, + "y": 167, + "zOrder": 5, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 64, + "layer": "", + "name": "ClaimReward", + "persistentUuid": "f40f4420-3e5a-4a92-ad17-277460f2da95", + "width": 183, + "x": 522, + "y": 252, + "zOrder": 6, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 55, + "layer": "", + "name": "GoToRewardedInterstitials", + "persistentUuid": "6ba4c550-ff1c-42fc-b344-10e43f370a5c", + "width": 316, + "x": 474, + "y": 535, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 62, + "layer": "", + "name": "GoToInterstitials", + "persistentUuid": "894d0183-ddcc-468a-8e4a-9a11b2abb0d6", + "width": 210, + "x": 20, + "y": 528, + "zOrder": 8, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "objects": [ + { + "assetStoreId": "", + "name": "Player", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 1, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "player.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "DebugText", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Debug info", + "font": "", + "textAlignment": "", + "characterSize": 32, + "color": { + "b": 220, + "g": 220, + "r": 220 + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Title", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "REWARDED VIDEOS", + "font": "", + "textAlignment": "", + "characterSize": 40, + "color": { + "b": 180, + "g": 180, + "r": 180 + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Load", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Display", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Display", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "LoadAndDisplay", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load And Display", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "ClaimReward", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Claim Reward", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToRewardedInterstitials", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go to Rewarded Interstitials", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToInterstitials", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go to Interstitials", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 0, + "g": 134, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::SetTestMode" + }, + "parameters": [ + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Player", + "+", + "90*TimeDelta()" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "False" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "reward", + "False" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedVideoLoading" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedVideoReady" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedVideoShowing" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedVideoRewardReceived" + }, + "parameters": [ + "no" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "reward", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "DebugText", + "=", + "\"Loading: \" + VariableString(loading) + NewLine() + \"Ready: \" + VariableString(ready) + NewLine() + \"Showing: \" + VariableString(showing) + NewLine() + \"Reward: \" + VariableString(reward)" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Load", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadRewardedVideo" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/5224354917\"", + "\"ca-app-pub-3940256099942544/1712485313\"", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Display", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::ShowRewardedVideo" + }, + "parameters": [] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "LoadAndDisplay", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadRewardedVideo" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/5224354917\"", + "\"ca-app-pub-3940256099942544/1712485313\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "ClaimReward", + "" + ] + }, + { + "type": { + "value": "AdMob::RewardedVideoRewardReceived" + }, + "parameters": [ + "yes" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SceneBackground" + }, + "parameters": [ + "", + "ToString(Random(255)) + \";\" + ToString(Random(255)) + \";\" + ToString(Random(255))" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToRewardedInterstitials", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"RewardedInterstitials\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToInterstitials", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"Interstitials\"", + "yes" + ] + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "followBaseLayerCamera": false, + "isLightingLayer": false, + "name": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "behaviorsSharedData": [] + }, + { + "b": 30, + "disableInputWhenNotFocused": true, + "mangledName": "RewardedInterstitials", + "name": "RewardedInterstitials", + "r": 30, + "standardSortMethod": true, + "stopSoundsOnStartup": true, + "title": "", + "v": 30, + "uiSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": true, + "zoomFactor": 1, + "windowMask": false + }, + "objectsGroups": [], + "variables": [ + { + "name": "ready", + "type": "boolean", + "value": false + }, + { + "name": "showing", + "type": "boolean", + "value": false + }, + { + "name": "reward", + "type": "boolean", + "value": false + }, + { + "name": "loading", + "type": "boolean", + "value": false + } + ], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Player", + "persistentUuid": "f4a64fab-6c6e-4113-a70f-51000e7a3311", + "width": 0, + "x": 341, + "y": 238, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "DebugText", + "persistentUuid": "fda152a9-fec1-4ed7-835b-4def9039bf00", + "width": 0, + "x": 80, + "y": 80, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Title", + "persistentUuid": "4ada3368-2c2c-46f2-b7bf-af7478631821", + "width": 0, + "x": 131, + "y": 18, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 56, + "layer": "", + "name": "Load", + "persistentUuid": "3f25de7e-84e0-4499-8f67-f5ca543181c8", + "width": 170, + "x": 425, + "y": 90, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 54, + "layer": "", + "name": "Display", + "persistentUuid": "fd916084-44ed-4fd5-8b2f-5ea530f61e60", + "width": 167, + "x": 612, + "y": 90, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 64, + "layer": "", + "name": "LoadAndDisplay", + "persistentUuid": "aca709f5-9aa9-4a63-b572-d109a96cb0b0", + "width": 233, + "x": 495, + "y": 167, + "zOrder": 5, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 64, + "layer": "", + "name": "ClaimReward", + "persistentUuid": "f40f4420-3e5a-4a92-ad17-277460f2da95", + "width": 183, + "x": 522, + "y": 252, + "zOrder": 6, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 55, + "layer": "", + "name": "GoToBanners", + "persistentUuid": "6ba4c550-ff1c-42fc-b344-10e43f370a5c", + "width": 210, + "x": 580, + "y": 535, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 62, + "layer": "", + "name": "GoToRewardedVideos", + "persistentUuid": "894d0183-ddcc-468a-8e4a-9a11b2abb0d6", + "width": 248, + "x": 20, + "y": 528, + "zOrder": 8, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "objects": [ + { + "assetStoreId": "", + "name": "Player", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 1, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "player.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "DebugText", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Debug info", + "font": "", + "textAlignment": "", + "characterSize": 32, + "color": { + "b": 220, + "g": 220, + "r": 220 + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Title", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "REWARDED INTERSTITIALS", + "font": "", + "textAlignment": "", + "characterSize": 40, + "color": { + "b": 180, + "g": 180, + "r": 180 + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Load", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Display", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Display", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "LoadAndDisplay", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load And Display", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "ClaimReward", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Claim Reward", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToBanners", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go to Banners", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToRewardedVideos", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go to Rewarded Videos", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 0, + "g": 134, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::SetTestMode" + }, + "parameters": [ + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Player", + "+", + "90*TimeDelta()" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "False" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "reward", + "False" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedInterstitialLoading" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedInterstitialReady" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedInterstitialShowing" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::RewardedInterstitialRewardReceived" + }, + "parameters": [ + "no" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "reward", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "DebugText", + "=", + "\"Loading: \" + VariableString(loading) + NewLine() + \"Ready: \" + VariableString(ready) + NewLine() + \"Showing: \" + VariableString(showing) + NewLine() + \"Reward: \" + VariableString(reward)" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Load", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadRewardedInterstitial" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/5354046379\"", + "\"ca-app-pub-3940256099942544/6978759866\"", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Display", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::ShowRewardedInterstitial" + }, + "parameters": [] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "LoadAndDisplay", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadRewardedInterstitial" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/5354046379\"", + "\"ca-app-pub-3940256099942544/6978759866\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "ClaimReward", + "" + ] + }, + { + "type": { + "value": "AdMob::RewardedInterstitialRewardReceived" + }, + "parameters": [ + "yes" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SceneBackground" + }, + "parameters": [ + "", + "ToString(Random(255)) + \";\" + ToString(Random(255)) + \";\" + ToString(Random(255))" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToBanners", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"Banners\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToRewardedVideos", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"RewardedVideos\"", + "yes" + ] + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "followBaseLayerCamera": false, + "isLightingLayer": false, + "name": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "behaviorsSharedData": [] + } + ], + "externalEvents": [], + "eventsFunctionsExtensions": [ + { + "author": "", + "category": "User interface", + "extensionNamespace": "", + "fullName": "Panel sprite button", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTI5LDIzSDNjLTEuMSwwLTItMC45LTItMlYxMWMwLTEuMSwwLjktMiwyLTJoMjZjMS4xLDAsMiwwLjksMiwydjEwQzMxLDIyLjEsMzAuMSwyMywyOSwyM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMywxOUwxMywxOWMtMS4xLDAtMi0wLjktMi0ydi0yYzAtMS4xLDAuOS0yLDItMmgwYzEuMSwwLDIsMC45LDIsMnYyQzE1LDE4LjEsMTQuMSwxOSwxMywxOXoiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxOCIgeTE9IjEzIiB4Mj0iMTgiIHkyPSIxOSIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjIxIiB5MT0iMTMiIHgyPSIxOCIgeTI9IjE3Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSIxOSIgeDI9IjE5IiB5Mj0iMTYiLz4NCjwvc3ZnPg0K", + "name": "PanelSpriteButton", + "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_button_ok_cta_clock_tap.svg", + "shortDescription": "A button that can be customized.", + "version": "1.4.2", + "description": [ + "The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.", + "", + "There are ready-to-use buttons in the asset-store [menu buttons pack](https://editor.gdevelop.io/?initial-dialog=asset-store&asset-pack=menu-buttons-menu-buttons)." + ], + "origin": { + "identifier": "PanelSpriteButton", + "name": "gdevelop-extension-store" + }, + "tags": [ + "button", + "ui" + ], + "authorIds": [ + "IWykYNRvhCZBN3vEgKEbBPOR3Oc2" + ], + "dependencies": [], + "eventsFunctions": [], + "eventsBasedBehaviors": [ + { + "description": "The finite state machine used internally by the button object.", + "fullName": "Button finite state machine", + "name": "ButtonFSM", + "objectType": "", + "private": true, + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "doStepPostEvents", + "sentence": "", + "events": [ + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Finite state machine", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "The \"Validated\" state only last one frame.", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Validated\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Idle\"" + ] + } + ] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Check position", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Make sure the cursor position is only checked once per frame.", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyMouseIsInside" + }, + "parameters": [ + "Object", + "Behavior", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyShouldCheckHovering" + }, + "parameters": [ + "Object", + "Behavior" + ] + }, + { + "type": { + "value": "CollisionPoint" + }, + "parameters": [ + "Object", + "MouseOnlyCursorX(Object.Layer(), 0)", + "MouseOnlyCursorY(Object.Layer(), 0)" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyMouseIsInside" + }, + "parameters": [ + "Object", + "Behavior", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Touches are always pressed, so ShouldCheckHovering doesn't matter.", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside" + }, + "parameters": [ + "Object", + "Behavior", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyTouchId" + }, + "parameters": [ + "Object", + "Behavior", + "!=", + "0" + ] + }, + { + "type": { + "value": "CollisionPoint" + }, + "parameters": [ + "Object", + "TouchX(Object.Behavior::PropertyTouchId(), Object.Layer(), 0)", + "TouchY(Object.Behavior::PropertyTouchId(), Object.Layer(), 0)" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside" + }, + "parameters": [ + "Object", + "Behavior", + "yes" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Handle touch start", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "HasAnyTouchOrMouseStarted" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyIndex" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "0" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Repeat", + "repeatExpression": "StartedTouchOrMouseCount()", + "conditions": [], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CollisionPoint" + }, + "parameters": [ + "Object", + "TouchX(StartedTouchOrMouseId(Object.Behavior::PropertyIndex()), Object.Layer(), 0)", + "TouchY(StartedTouchOrMouseId(Object.Behavior::PropertyIndex()), Object.Layer(), 0)" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchId" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "StartedTouchOrMouseId(Object.Behavior::PropertyIndex())" + ] + }, + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside" + }, + "parameters": [ + "Object", + "Behavior", + "yes" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::Or" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Hovered\"" + ] + }, + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Idle\"" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedInside\"" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyIndex" + }, + "parameters": [ + "Object", + "Behavior", + "+", + "1" + ] + } + ] + } + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Apply position changes", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "PanelSpriteButton::ButtonFSM::PropertyMouseIsInside" + }, + "parameters": [ + "Object", + "Behavior" + ] + }, + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Hovered\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Idle\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyMouseIsInside" + }, + "parameters": [ + "Object", + "Behavior" + ] + }, + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Idle\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Hovered\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "PanelSpriteButton::ButtonFSM::PropertyTouchIsInside" + }, + "parameters": [ + "Object", + "Behavior" + ] + }, + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedInside\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedOutside\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyTouchIsInside" + }, + "parameters": [ + "Object", + "Behavior" + ] + }, + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedOutside\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedInside\"" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Handle touch end", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "HasTouchEnded" + }, + "parameters": [ + "", + "Object.Behavior::PropertyTouchId()" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchId" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "0" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedInside\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Validated\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedInside\"" + ] + }, + { + "type": { + "inverted": true, + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Validated\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Idle\"" + ] + } + ] + } + ] + } + ], + "parameters": [] + } + ], + "parameters": [] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "fullName": "", + "functionType": "Action", + "name": "onDeActivate", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Idle\"" + ] + }, + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchId" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "0" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button is not used.", + "fullName": "Is idle", + "functionType": "Condition", + "name": "IsIdle", + "sentence": "_PARAM0_ is idle", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Idle\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button was just clicked.", + "fullName": "Is clicked", + "functionType": "Condition", + "name": "IsClicked", + "sentence": "_PARAM0_ is clicked", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Validated\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the cursor is hovered over the button.", + "fullName": "Is hovered", + "functionType": "Condition", + "name": "IsHovered", + "sentence": "_PARAM0_ is hovered", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Hovered\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button is either hovered or pressed but not hovered.", + "fullName": "Is focused", + "functionType": "Condition", + "name": "IsFocused", + "sentence": "_PARAM0_ is focused", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"Hovered\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedOutside\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button is currently being pressed with mouse or touch.", + "fullName": "Is pressed", + "functionType": "Condition", + "name": "IsPressed", + "sentence": "_PARAM0_ is pressed", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedInside\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button is currently being pressed outside with mouse or touch.", + "fullName": "Is held outside", + "functionType": "Condition", + "name": "IsPressedOutside", + "sentence": "_PARAM0_ is held outside", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::PropertyState" + }, + "parameters": [ + "Object", + "Behavior", + "=", + "\"PressedOutside\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "the touch id that is using the button or 0 if none.", + "fullName": "Touch id", + "functionType": "ExpressionAndCondition", + "name": "TouchId", + "sentence": "the touch id", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "Object.Behavior::PropertyTouchId()" + ] + } + ] + } + ], + "expressionType": { + "type": "expression" + }, + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "PanelSpriteButton::ButtonFSM", + "type": "behavior" + } + ], + "objectGroups": [] + } + ], + "propertyDescriptors": [ + { + "value": "true", + "type": "Boolean", + "label": "", + "description": "Should check hovering", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "ShouldCheckHovering" + }, + { + "value": "Idle", + "type": "Choice", + "label": "State", + "description": "", + "group": "", + "extraInformation": [ + "Idle", + "Hovered", + "PressedInside", + "PressedOutside", + "Validated" + ], + "hidden": true, + "name": "State" + }, + { + "value": "0", + "type": "Number", + "label": "Touch id", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "TouchId" + }, + { + "value": "", + "type": "Boolean", + "label": "Touch is inside", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "TouchIsInside" + }, + { + "value": "", + "type": "Boolean", + "label": "Mouse is inside", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "MouseIsInside" + }, + { + "value": "", + "type": "Number", + "label": "", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "Index" + } + ], + "sharedPropertyDescriptors": [] + } + ], + "eventsBasedObjects": [ + { + "defaultName": "Button", + "description": "A button that can be customized.", + "fullName": "Button (panel sprite)", + "name": "PanelSpriteButton", + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "onCreated", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Create one background instance for of each state.\nOnly the instance for the current state is shown.", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "Create" + }, + "parameters": [ + "", + "Idle", + "0", + "0", + "" + ] + }, + { + "type": { + "value": "Create" + }, + "parameters": [ + "", + "Hovered", + "0", + "0", + "" + ] + }, + { + "type": { + "value": "Create" + }, + "parameters": [ + "", + "Pressed", + "0", + "0", + "" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Hovered" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Pressed" + ] + }, + { + "type": { + "value": "ChangePlan" + }, + "parameters": [ + "Hovered", + "=", + "1" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Place the label over the backgrounds.", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "Create" + }, + "parameters": [ + "", + "Label", + "0", + "0", + "" + ] + }, + { + "type": { + "value": "ChangePlan" + }, + "parameters": [ + "Label", + "=", + "2" + ] + }, + { + "type": { + "value": "TextObject::SetWrapping" + }, + "parameters": [ + "Label", + "yes" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::CenterLabel" + }, + "parameters": [ + "Object", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [ + { + "name": "Background", + "objects": [ + { + "name": "Idle" + }, + { + "name": "Hovered" + }, + { + "name": "Pressed" + } + ] + } + ] + }, + { + "fullName": "", + "functionType": "Action", + "name": "onHotReloading", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::CenterLabel" + }, + "parameters": [ + "Object", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "fullName": "", + "functionType": "Action", + "name": "doStepPostEvents", + "sentence": "", + "events": [ + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Apply states", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Show the right background accordingly to the new state.", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsIdle" + }, + "parameters": [ + "Object", + "ButtonFSM" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetCenterY" + }, + "parameters": [ + "Label", + "=", + "Object.CenterWithPaddingY()" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "Idle", + "" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Pressed" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "Visible" + }, + "parameters": [ + "Hovered" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::PropertyHoveredFadeOutDuration" + }, + "parameters": [ + "Object", + ">", + "0" + ] + } + ], + "actions": [ + { + "type": { + "value": "Tween::AddObjectOpacityTween" + }, + "parameters": [ + "Hovered", + "Tween", + "\"Fadeout\"", + "0", + "\"linear\"", + "Object.PropertyHoveredFadeOutDuration() * 1000", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::PropertyHoveredFadeOutDuration" + }, + "parameters": [ + "Object", + "=", + "0" + ] + } + ], + "actions": [ + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Hovered" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteObject::Opacity" + }, + "parameters": [ + "Hovered", + "=", + "0" + ] + } + ], + "actions": [ + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Hovered" + ] + }, + { + "type": { + "value": "PanelSpriteObject::SetOpacity" + }, + "parameters": [ + "Hovered", + "=", + "255" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsHovered" + }, + "parameters": [ + "Object", + "ButtonFSM" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetCenterY" + }, + "parameters": [ + "Label", + "=", + "Object.CenterWithPaddingY()" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Idle" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "Hovered", + "" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Pressed" + ] + }, + { + "type": { + "value": "Tween::RemoveTween" + }, + "parameters": [ + "Hovered", + "Tween", + "\"Fadeout\"" + ] + }, + { + "type": { + "value": "PanelSpriteObject::SetOpacity" + }, + "parameters": [ + "Hovered", + "=", + "255" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Object", + "ButtonFSM" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetCenterY" + }, + "parameters": [ + "Label", + "=", + "Object.CenterWithPaddingY() + Object.PropertyPressedLabelOffsetY()" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Idle" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Hovered" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "Pressed", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsFocused" + }, + "parameters": [ + "Object", + "ButtonFSM" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetCenterY" + }, + "parameters": [ + "Label", + "=", + "Object.CenterWithPaddingY()" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Idle" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "Hovered", + "" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "Pressed" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Resize", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Children instances must be resized when the button size change:\n- backgrounds for each state are resized to take the full dimensions of the button\n- the label is put back at the center of the button\n\nThe scale is set back to 1 because it means that the parent instance has the same dimensions as the union of its children instances.", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::Or" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "Object.Width()", + "!=", + "max(Idle.BoundingBoxRight(), Label.BoundingBoxRight()) - min(Idle.BoundingBoxLeft(), Label.BoundingBoxLeft())" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "Object.Height()", + "!=", + "max(Idle.BoundingBoxBottom(), Label.BoundingBoxBottom()) - min(Idle.BoundingBoxTop(), Label.BoundingBoxTop())" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "ModVarObjet" + }, + "parameters": [ + "Idle", + "Width", + "=", + "Object.Width()" + ] + }, + { + "type": { + "value": "ModVarObjet" + }, + "parameters": [ + "Idle", + "Height", + "=", + "Object.Height()" + ] + }, + { + "type": { + "value": "PanelSpriteButton::Scale" + }, + "parameters": [ + "Object", + "=", + "1" + ] + }, + { + "type": { + "value": "PanelSpriteObject::Width" + }, + "parameters": [ + "Background", + "=", + "Idle.Variable(Width)" + ] + }, + { + "type": { + "value": "PanelSpriteObject::Height" + }, + "parameters": [ + "Background", + "=", + "Idle.Variable(Height)" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::CenterLabel" + }, + "parameters": [ + "Object", + "" + ] + } + ] + } + ], + "parameters": [] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [ + { + "name": "Background", + "objects": [ + { + "name": "Idle" + }, + { + "name": "Hovered" + }, + { + "name": "Pressed" + } + ] + } + ] + }, + { + "description": "Check if the button is not used.", + "fullName": "Is idle", + "functionType": "Condition", + "name": "IsIdle", + "sentence": "_PARAM0_ is idle", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::IsIdle" + }, + "parameters": [ + "Idle", + "ButtonFSM", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button was just clicked.", + "fullName": "Is clicked", + "functionType": "Condition", + "name": "IsClicked", + "sentence": "_PARAM0_ is clicked", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::IsClicked" + }, + "parameters": [ + "Idle", + "ButtonFSM", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the cursor is hovered over the button.", + "fullName": "Is hovered", + "functionType": "Condition", + "name": "IsHovered", + "sentence": "_PARAM0_ is hovered", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::IsHovered" + }, + "parameters": [ + "Idle", + "ButtonFSM", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button is either hovered or pressed but not hovered.", + "fullName": "Is focused", + "functionType": "Condition", + "name": "IsFocused", + "sentence": "_PARAM0_ is focused", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::IsFocused" + }, + "parameters": [ + "Idle", + "ButtonFSM", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the button is currently being pressed with mouse or touch.", + "fullName": "Is pressed", + "functionType": "Condition", + "name": "IsPressed", + "sentence": "_PARAM0_ is pressed", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::ButtonFSM::IsPressed" + }, + "parameters": [ + "Idle", + "ButtonFSM", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Change the text of the button label.", + "fullName": "Label text", + "functionType": "Action", + "name": "SetLabelText", + "sentence": "Change the text of _PARAM0_ to _PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "Label", + "=", + "GetArgumentAsString(\"LabelText\")" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::CenterLabel" + }, + "parameters": [ + "Object", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + }, + { + "description": "", + "name": "LabelText", + "type": "string" + } + ], + "objectGroups": [] + }, + { + "description": "Return the label text.", + "fullName": "Label text", + "functionType": "StringExpression", + "name": "LabelText", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnString" + }, + "parameters": [ + "Label.String()" + ] + } + ] + } + ], + "expressionType": { + "type": "string" + }, + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Return the label center Y according to the button configuration. This expression is used in doStepPostEvents when the button is pressed or released.", + "fullName": "", + "functionType": "Expression", + "name": "CenterWithPaddingY", + "private": true, + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "Idle.CenterY() + (Object.PropertyTopPadding() - Object.PropertyBottomPadding()) / 2" + ] + } + ] + } + ], + "expressionType": { + "type": "expression" + }, + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Center the label according to the button configuration. This is used in doStepPostEvents when the button is resized.", + "fullName": "", + "functionType": "Action", + "name": "CenterLabel", + "private": true, + "sentence": "Center the label of _PARAM0_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "MettreXY" + }, + "parameters": [ + "Label", + "=", + "Object.PropertyLeftPadding()", + "=", + "Object.PropertyTopPadding()" + ] + }, + { + "type": { + "value": "TextObject::WrappingWidth" + }, + "parameters": [ + "Label", + "=", + "Idle.Width() - Object.PropertyLeftPadding() - Object.PropertyRightPadding()" + ] + }, + { + "type": { + "value": "SetCenterY" + }, + "parameters": [ + "Label", + "=", + "Object.CenterWithPaddingY()" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetCenterX" + }, + "parameters": [ + "Label", + "=", + "Background.CenterX() + (Object.PropertyLeftPadding() - Object.PropertyRightPadding()) / 2" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Object", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "MettreY" + }, + "parameters": [ + "Label", + "+", + "Object.PropertyPressedLabelOffsetY()" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [ + { + "name": "Background", + "objects": [ + { + "name": "Idle" + }, + { + "name": "Hovered" + }, + { + "name": "Pressed" + } + ] + } + ] + }, + { + "description": "De/activate interactions with the button.", + "fullName": "De/activate interactions", + "functionType": "Action", + "name": "Activate", + "sentence": "Activate interactions with _PARAM0_: _PARAM1_", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "GetArgumentAsBoolean" + }, + "parameters": [ + "\"ShouldActivate\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "Idle", + "ButtonFSM", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "GetArgumentAsBoolean" + }, + "parameters": [ + "\"ShouldActivate\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "Idle", + "ButtonFSM", + "no" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + }, + { + "description": "Activate", + "name": "ShouldActivate", + "type": "yesorno" + } + ], + "objectGroups": [] + }, + { + "description": "Check if interactions are activated on the button.", + "fullName": "Interactions activated", + "functionType": "Condition", + "name": "IsActivated", + "sentence": "Interactions on _PARAM0_ are activated", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BehaviorActivated" + }, + "parameters": [ + "Idle", + "ButtonFSM" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "PanelSpriteButton::PanelSpriteButton", + "type": "object" + } + ], + "objectGroups": [] + } + ], + "propertyDescriptors": [ + { + "value": "0", + "type": "Number", + "label": "Label offset on Y axis when pressed", + "description": "", + "group": "", + "extraInformation": [], + "hidden": false, + "name": "PressedLabelOffsetY" + }, + { + "value": "0", + "type": "Number", + "label": "Left padding", + "description": "", + "group": "Padding", + "extraInformation": [ + "Label" + ], + "hidden": false, + "name": "LeftPadding" + }, + { + "value": "0", + "type": "Number", + "label": "Right padding", + "description": "", + "group": "Padding", + "extraInformation": [ + "Label" + ], + "hidden": false, + "name": "RightPadding" + }, + { + "value": "0", + "type": "Number", + "label": "Top padding", + "description": "", + "group": "Padding", + "extraInformation": [ + "Label" + ], + "hidden": false, + "name": "TopPadding" + }, + { + "value": "0", + "type": "Number", + "label": "Bottom padding", + "description": "", + "group": "Padding", + "extraInformation": [ + "Label" + ], + "hidden": false, + "name": "BottomPadding" + }, + { + "value": "0.25", + "type": "Number", + "label": "Hovered fade out duration (in seconds)", + "description": "", + "group": "", + "extraInformation": [], + "hidden": false, + "name": "HoveredFadeOutDuration" + } + ], + "objects": [ + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Label", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Text", + "font": "", + "textAlignment": "", + "characterSize": 20, + "color": { + "b": 0, + "g": 0, + "r": 0 + } + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Idle", + "rightMargin": 0, + "tags": "", + "texture": "", + "tiled": false, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [ + { + "folded": true, + "name": "State", + "type": "string", + "value": "Idle" + } + ], + "effects": [], + "behaviors": [ + { + "name": "ButtonFSM", + "type": "PanelSpriteButton::ButtonFSM", + "ShouldCheckHovering": true + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Hovered", + "rightMargin": 0, + "tags": "", + "texture": "", + "tiled": false, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Tween", + "type": "Tween::TweenBehavior" + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Pressed", + "rightMargin": 0, + "tags": "", + "texture": "", + "tiled": false, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [] + } + ] + } + ] + } + ], + "externalLayouts": [], + "externalSourceFiles": [] +} \ No newline at end of file From cae042fb2fbd66f18fd76af3f21fc2e0d7b17dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pasteau?= <4895034+ClementPasteau@users.noreply.github.com> Date: Thu, 2 Feb 2023 09:43:30 +0100 Subject: [PATCH 2/4] Update Readme --- examples/admob/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/admob/README.md b/examples/admob/README.md index c2fda2782..77ab1f703 100644 --- a/examples/admob/README.md +++ b/examples/admob/README.md @@ -1 +1 @@ -Demonstrate how to show ads from AdMob in your game: banners, interstitial screen or reward videos. Also useful to test that your AdMob account is working properly. \ No newline at end of file +Demonstrate how to show ads from AdMob in your game: banners, interstitials, reward videos and interstitials. Also useful to test that your AdMob account is working properly. From e10e60bdbad9495b494be794679b18c6bd700fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pasteau?= <4895034+ClementPasteau@users.noreply.github.com> Date: Thu, 2 Feb 2023 10:47:12 +0100 Subject: [PATCH 3/4] Update AdMob example with app open --- examples/admob/README.md | 2 +- examples/admob/game.json | 1172 +++++++++++++++++++++++++++++++++++++- 2 files changed, 1161 insertions(+), 13 deletions(-) diff --git a/examples/admob/README.md b/examples/admob/README.md index 77ab1f703..3d20d2c47 100644 --- a/examples/admob/README.md +++ b/examples/admob/README.md @@ -1 +1 @@ -Demonstrate how to show ads from AdMob in your game: banners, interstitials, reward videos and interstitials. Also useful to test that your AdMob account is working properly. +Demonstrate how to show ads from AdMob in your game: app open, banners, interstitials, reward videos and interstitials. Also useful to test that your AdMob account is working properly. diff --git a/examples/admob/game.json b/examples/admob/game.json index d7195373b..49a5f462b 100644 --- a/examples/admob/game.json +++ b/examples/admob/game.json @@ -1,5 +1,5 @@ { - "firstLayout": "", + "firstLayout": "AppOpens", "gdVersion": { "build": 99, "major": 4, @@ -365,6 +365,1154 @@ "objectsGroups": [], "variables": [], "layouts": [ + { + "b": 30, + "disableInputWhenNotFocused": true, + "mangledName": "AppOpens", + "name": "AppOpens", + "r": 30, + "standardSortMethod": true, + "stopSoundsOnStartup": true, + "title": "", + "v": 30, + "uiSettings": { + "grid": false, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridColor": 10401023, + "gridAlpha": 0.8, + "snap": true, + "zoomFactor": 1, + "windowMask": false + }, + "objectsGroups": [], + "variables": [ + { + "name": "ready", + "type": "boolean", + "value": false + }, + { + "name": "showing", + "type": "boolean", + "value": false + }, + { + "name": "loading", + "type": "boolean", + "value": false + } + ], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Player", + "persistentUuid": "7af13242-710c-4133-9c9d-6c25c6c6c685", + "width": 0, + "x": 341, + "y": 238, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "DebugText", + "persistentUuid": "5630e9c7-2825-4439-95f8-807bd17eebec", + "width": 0, + "x": 80, + "y": 80, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Title", + "persistentUuid": "93c29558-2fef-4a2a-aafc-28c7fc3bc7dd", + "width": 0, + "x": 274, + "y": 20, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 55, + "layer": "", + "name": "LoadPortait", + "persistentUuid": "ac64b529-5259-41a6-befc-1ed0fe85301b", + "width": 166, + "x": 378, + "y": 84, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 57, + "layer": "", + "name": "Display", + "persistentUuid": "f5f010c0-9269-4233-9a40-044d7cf6bf5e", + "width": 169, + "x": 487, + "y": 160, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 55, + "layer": "", + "name": "LoadAndDisplayPortait", + "persistentUuid": "3269d510-d165-4d74-956d-7b58726d7046", + "width": 264, + "x": 442, + "y": 237, + "zOrder": 5, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 65, + "layer": "", + "name": "GoToBanners", + "persistentUuid": "32000f97-38f8-40e6-bffd-af1fbaf95614", + "width": 210, + "x": 575, + "y": 528, + "zOrder": 6, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 62, + "layer": "", + "name": "GoToRewardedInterstitials", + "persistentUuid": "da4542f2-e8e0-4ba5-bdea-6b36dd782d2d", + "width": 292, + "x": 12, + "y": 527, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 60, + "layer": "", + "name": "LoadLandscape", + "persistentUuid": "3f9b34fb-1335-46b1-b932-fbb59856e287", + "width": 200, + "x": 581, + "y": 80, + "zOrder": 8, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 64, + "layer": "", + "name": "LoadAndDisplayLandscape", + "persistentUuid": "139dad4f-716e-455d-b453-0735214053f0", + "width": 322, + "x": 413, + "y": 319, + "zOrder": 9, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "objects": [ + { + "assetStoreId": "", + "name": "Player", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 1, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "player.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "DebugText", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Debug info", + "font": "", + "textAlignment": "", + "characterSize": 32, + "color": { + "b": 220, + "g": 220, + "r": 220 + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Title", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "APP OPENS", + "font": "", + "textAlignment": "", + "characterSize": 40, + "color": { + "b": 180, + "g": 180, + "r": 180 + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "LoadPortait", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load Portait", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "LoadLandscape", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load Landscape", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "Display", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Display", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "LoadAndDisplayPortait", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load And Display Portait", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "LoadAndDisplayLandscape", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Load And Display Landscape", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToBanners", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go To Banners", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + }, + { + "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", + "name": "GoToRewardedInterstitials", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 10, + "BottomPadding": 32, + "TopPadding": 16, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Idle": { + "bottomMargin": 32, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 256 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go To Rewarded Interstitials", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 29, + "g": 99, + "r": 62 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 106, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Green Button_Pressed.png", + "tiled": true, + "topMargin": 32, + "width": 256 + } + } + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 12, + "g": 132, + "r": 241, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Remember that ads are not visible in the previews run in GDevelop, only in the exported Android (or iOS) app. It may take a few days for the AdMob service to start providing ads in your application, especially for video content.\n", + "comment2": "" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::SetTestMode" + }, + "parameters": [ + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetAngle" + }, + "parameters": [ + "Player", + "+", + "90*TimeDelta()" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "False" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "" + ] + }, + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::AppOpenLoading" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "loading", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::AppOpenReady" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "ready", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AdMob::AppOpenShowing" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SetSceneVariableAsBoolean" + }, + "parameters": [ + "showing", + "True" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "DebugText", + "=", + "\"Loading: \" + VariableString(loading) + NewLine() + \"Ready: \" + VariableString(ready) + NewLine() + \"Showing: \" + VariableString(showing)" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "LoadPortait", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadAppOpen" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/3419835294\"", + "\"ca-app-pub-3940256099942544/5662855259\"", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "LoadLandscape", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadAppOpen" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/3419835294\"", + "\"ca-app-pub-3940256099942544/5662855259\"", + "yes", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "Display", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::ShowAppOpen" + }, + "parameters": [] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "LoadAndDisplayPortait", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadAppOpen" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/3419835294\"", + "\"ca-app-pub-3940256099942544/5662855259\"", + "no", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "LoadAndDisplayLandscape", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "AdMob::LoadAppOpen" + }, + "parameters": [ + "\"ca-app-pub-3940256099942544/3419835294\"", + "\"ca-app-pub-3940256099942544/5662855259\"", + "yes", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToRewardedInterstitials", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"RewardedInterstitials\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" + }, + "parameters": [ + "GoToBanners", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"Banners\"", + "yes" + ] + } + ] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "followBaseLayerCamera": false, + "isLightingLayer": false, + "name": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "behaviorsSharedData": [] + }, { "b": 30, "disableInputWhenNotFocused": true, @@ -518,9 +1666,9 @@ "customSize": true, "height": 54, "layer": "", - "name": "GoToRewardedInterstitials", + "name": "GoToAppOpens", "persistentUuid": "490a30e1-8d75-4c34-b77b-642340cb6dd0", - "width": 294, + "width": 215, "x": 14, "y": 526, "zOrder": 6, @@ -967,7 +2115,7 @@ }, { "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", - "name": "GoToRewardedInterstitials", + "name": "GoToAppOpens", "tags": "", "type": "PanelSpriteButton::PanelSpriteButton", "variables": [], @@ -1007,7 +2155,7 @@ "italic": false, "smoothed": true, "underlined": false, - "string": "Go to Rewarded Interstitials", + "string": "Go to App Opens", "font": "", "textAlignment": "center", "characterSize": 20, @@ -1360,7 +2508,7 @@ "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" }, "parameters": [ - "GoToRewardedInterstitials", + "GoToAppOpens", "" ] }, @@ -1378,7 +2526,7 @@ }, "parameters": [ "", - "\"RewardedInterstitials\"", + "\"AppOpens\"", "yes" ] } @@ -3570,7 +4718,7 @@ "customSize": true, "height": 55, "layer": "", - "name": "GoToBanners", + "name": "GoToAppOpens", "persistentUuid": "6ba4c550-ff1c-42fc-b344-10e43f370a5c", "width": 210, "x": 580, @@ -3940,7 +5088,7 @@ }, { "assetStoreId": "b44dba91245ff1ac84a7b450e078194f19321d135fd8a67cd19bc9cb3403fba5", - "name": "GoToBanners", + "name": "GoToAppOpens", "tags": "", "type": "PanelSpriteButton::PanelSpriteButton", "variables": [], @@ -3980,7 +5128,7 @@ "italic": false, "smoothed": true, "underlined": false, - "string": "Go to Banners", + "string": "Go to App Opens", "font": "", "textAlignment": "center", "characterSize": 20, @@ -4409,7 +5557,7 @@ "value": "PanelSpriteButton::PanelSpriteButton::IsPressed" }, "parameters": [ - "GoToBanners", + "GoToAppOpens", "" ] }, @@ -4427,7 +5575,7 @@ }, "parameters": [ "", - "\"Banners\"", + "\"AppOpens\"", "yes" ] } From 2a5ae89e7aac06feb943e746511ca4c737e87340 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 09:49:28 +0000 Subject: [PATCH 4/4] Optimised images with calibre/image-actions --- .../admob/assets/Green Button_Hovered.png | Bin 2364 -> 1839 bytes examples/admob/assets/Green Button_Idle.png | Bin 2378 -> 1849 bytes .../admob/assets/Green Button_Pressed.png | Bin 2282 -> 1832 bytes 3 files changed, 0 insertions(+), 0 deletions(-) diff --git a/examples/admob/assets/Green Button_Hovered.png b/examples/admob/assets/Green Button_Hovered.png index efc1679466ba8cbe6b1bb004cf089bd8c74f2b30..75466740e23584491277bc4b398029a2a27e12cf 100644 GIT binary patch literal 1839 zcmbVNcTf{}7XBq6p-5msq#ROK5D!ZVyK~5LLWg;fhe6ICDBDhWa%hyE@biO ziy%uCNP-P85JXBSk|0fbJ0mq*cIIwwZtkC*{o}p&%{TMjH}lQB_foKqHb|kr2>}3* zn2Tr^03bXFZV4cG+4WZXDz6CMxrhq~KrZ=@fTYiETn7L#g+W`o#f+^?EZvs4bo|}M zjucu@oqLooYUF~$ptKS;h7@Ka%s!HoG4MIWGSyT4iA#;Q_Cu)kkLL$|7+V!lE=5U^ zrETpzdhDi>pel`$H%>)GbIws323ta!E(Jx6ttl5}-~&s$M@<;NgqqYar%+b^WDk~;Px*St#>%)H2Z zD38*t6m-}gp&hc(>zJ)i2~C6n8(|b%qy1ydoxqKSd!dJF`_87?C5Z(zUnn=yI8I$J z=`i+`ZT!GC<;B6F`;2a_Rf@celtRuc$Eaa7=Sy)tFhWHS>RxOKGk09!u71UU zE1Vx+SjK~>oTd!8}IZ?~~b$RcJrvZ0n_Z|tpKaCEn3zEbpaLxt_ z(nn6z^@}W}7J0{iio%A+dXzd#yHR}%5QTD1{2jMEd^L!*^3@r##L%VG_ldELC~T*I z?o*=H8vLgaT+QC~+;9Z8%#iY>ij~3?sdUiv(}pNyExXryvNp)|px}4zA>EJt7CrAi zZpk`1ul^W^R0}9~mR_&BCIKuUSODM_5Fi2I0L#l35bcLN zNQCkbCJasKdJvA{)CRA!ja-$=5=HC9hN;pe4YF{UN;zrcUbB1 z0%_^$!TfRyg>QYKW)XUZAM*ZiqU8vC;C|S+<@>B~X?tq2@~dH#PaEY-G(_2GWb8kN zSK74)eb~(Z`Q-#08y}Q(ps3Wtn~|e^q7ik46=xm|iTfB_q_0=jRH=?Qx_+#?+Mj1L zqcC9pG%+&JJJi(ZT)ul}G1SZ@+kLTT!{(dT{Amz6H5ofjN?YhP5#fv5+P)p2Qa>zQ zwB}yc_Hq>m_B^DT$EMrr3TW^+_TQZsd)A(4ZY6tzle=4sVT^!u@vE=xLDzJWd0?9O z6})V#`DJI*oCe_HO<{i2wrVK*-t0L1bTX$!m6~R$n26uTsGKb9Yx6eH^(0jE>+Y96 zm#~P=^Qn9>F4^LEBi=|cU0@bBT{km9e`FcJPwnzy+5P)iY~d+GB+lE>POVit$b_6f ze`LQ2X~Z5_aI>7au$9}Qk_n+6LTvY+pSfMPBDYSor;y-r7BxHk`5aM!B~q0OsPi;7 z>o}tpEzXGkEii**5>XT6rBX7A-zJpjLd%bT>4W)O(kACdD|hF@a=)s%^7gjs-Q*+s z2$G;g%v6%euExyyhfq*!pU3sa!!w=wWGqZ-ty8~}l3ttsKs>beBNN<1y=dsIWIY)4 z@u`JNWvb>S-2vSGP9pHLt>?s~ex?%1Ha#|3p!BG1xiP z+iE>cdnPQRjS#XBy?mqZx9tepIh@QJ04W(`1YOfIBNIZVT*)`*L=gA+9@}0>k&pF~ z4NiRn{UD>}t0#2qrq!swO#qbol`yB}wEO#1Fz+zBtqKAzWsYIE!f5PHqm|1u@xRRc z2ov01cJ?u8)?7kTrh+xTVWyR06;D(pU)2|$*>Gdg%Tb%5rt^m{^l|3F+{~R#)W`j% zzCr(1zr`6O;7UC^$j@FLvXz`oHH8K3CD$DYp5AFblOHWL%KLx-W9^8pIq!S#UuzXU A9smFU literal 2364 zcmds3`9IVP8~u*4j2UC!GL$BvDU^zOt!ZRXk}XVGv(wDAjS0=zGWK*WxsvrZvW8)} zwo%rUELmP76D1*IiLsm4{Wsnpp7T7P^V|7+&iR}t!P3G64wZuf001||psfG^baVo~ z5dI^y_Dy3SEkQiSAqW5z;{P2`+T5DQ5qT`w*gn`A=NU|J4fFsA1cJKHL%$$*SGBNtt$rrkUmrNHJh*(%U`hm@}tKDR=EVv7QbqZwaGQLP`TmQ3?&PmxO;z<#nOL3 zS7>~KYr_IIyh^quc4erO^^z)R4Dt0YKcBOi}U_lFLAdSp)=17&kbt3ANlwSHzzNb&pfyyl92R`csrpt6u<%%e1i~0A(v6B z_B2YCzdYj{`6QqX1Yg@AeyTUnCzceG&NwS=Sp{!=7`Rb6M^p=wW^hi^&Cy-Mf*pGn zj?-5+Z~Fgy*pVLx0bH&U_~^^#1%QhR=AdlR;DasW!`@Xwa(T-oPox z{(R6S$r3#z>ItawdzXZO+j5g~5I>{bE0hZzQ~^rw{kBbqUK-UZdWA}yeD9l)c|)|; z+|rHtCL^*C# zZyU)B++lp~_%{_MiC2uhmS6{kr`V5YH{v(l@V<(v92hMrm$VD(8!-UlsXGs52dB8Tr@IKtX|vxuAcnB}&Z36mDm#W_EhETmr)J zC(4`gI^SOyc;Q>CJAZ{-92D}rd0^#Q6`-0|T~=AvF%nLK{=GjB^4gGm7{)@f;o#mK zoft}@nW$}u_Z@^-I+T?>CbwKe;wK5;q$;(tmt(lc?gSaH>uO53i+8k{Yk$i zSqRKdi#Bd2WWiEmwUev!goVQHMqWfltI$^jo$}7YIvxu*M&{g3I&}E)YfEkn={VC~ zPWX&qNYN30#c!kgpFQagp$mYgrC4DeCE_gSI(5r)?EnyRTWlj)w?0|7srk{CQlbd z3=cNWaJIXB%Zlu6oieW~Rpm`nzrOC#G(q?-MtU81Z3=a_rWpt2MKnvDUFZIFf{vt-Vmz<*bd$40Pr+x@))Ib zP(F_nFb^RI#w8=jfTB1j;B5@ooZ{_)2m8@4NkX$S&H!!LSpR;G?dtU7qRcamp+PO> z?*?|>iXb(?U~;dE5P*!i08oUw0Yy#O|3|`ukG#|r#Z&J6QS{DXDPukKp0>#?hW~%& zm<=xTO=?IKKh`XQ*-;Pw4k6nV^h)ysLuQgwMCx#z!)1aV4+Z1#l8G#GQ_V)PIC=`8 zI{*erzhttA-vz#pxn5Cm!e}I%J}a(p=5b z+|5|A#UuC`M*n~W^1TEfOxl0KDmw5ry2<7gs@_3m|3}w9?VXlxVTIMX4WKEbQ~)5e zm-H;nT(^FlFzRgoBx25+A`W`P;U2nEO3&+7iY@8KSCzBQ*@gD=pNAB<7AC^(YPbb! zrmE1Fui0K*fhsw&m0u~Z`FQ!)=otWpNyp!SHb4_K_A{0dvZRA?)|(olo>nz8cC_4g zeL`Jq?p<%Eth&>ZF^)SI_xSf7CF?Q5P=Uw~! zWTB<3t4^$?DWsvRoEIH8+o*1}AnBPW>1ka@x!rvsL$=GsO=&*lu*>^rbpS5oq|GZf1hxR1u1yi5m>~RO&csuIx`I1$nq)Mc znfe03r+J(|P;Ds$0B=>EIcl}Tr!u?W_Pg_dD@VOomDvJeG;0Ki-6Cv4@_mm^7&2!xEWqoUVM>M@1%smd|14YnvcbD` zU;*a<(kwvRg^^!HH{3wSeXd43LD)O)oDLUg?enn;aOB5Ruk zdozuaPS}5kD2|vfr;WzB7zn5t^i2I36LC^>XuTNpVw@2^+q5#^yomkqOlG~GL~7{^ ztfbOh;=TR(29ule1zmxC4J0})8#tfT)X#}@9Q<2%r`la7zoni#^-O(^D-z<6P#h4` S#yR?Y08?WNbd`}y^#1^#{W*>R diff --git a/examples/admob/assets/Green Button_Idle.png b/examples/admob/assets/Green Button_Idle.png index 010e5769c997b6c6a926ac632e0fa1fccadabcf4..dec226642a30b21416e6f607056859843b6aebf3 100644 GIT binary patch literal 1849 zcmbVNc{JOJ7XD>5gxZ%_LhWN2q~j^2iK(@yrKr@Fwg^pQ%cQZqO30iBY8l#5 zkH(T(N}lkPGN`GRSgJLzMO%qTO*J8y^qe{8op;_p@4P?mz2EunJ>R|Oo_o&C4>;wi zAg3({0DywGms=13fTR$(_!V60PhTwFkOtXgFB};F^sap|Q1OZ|769Pu-fphJX$$<9 z#3Z#4U_>aEtAC8h0#xw?3%kQR|MV&iZ@Q`t&AExEcB>WMquw_(|D_YAtz!~2rx&;o zWDX|kJTiy6nkWxyrMo|v#p+~7-Hlj8tyy(GCG|ZBVm;qC6T{{;qbCS0Bb2jNFMwJS4OnvW{nNrUGj^%~@d+l{~7E~PUy zKJ_2g2TIx=ZVk4DzI%OqY`zS63wMjbYlLRx9437l&=7xjHhZxUO0nMY2(k7V4s0(_gm@XC z%g|Nm26QtMd8pYD!r1;i=N}R1;LYnRAHqUV0mPWjp5yZmpuLbC(R({h$xEh~TjQ(l znJK!Vm`3slNHv|L_zh6b*(yzUE!47wi}QAkyA*1H8znP<7oX*Q%i&%@M|5NUq(Yhd z*zg)4ugtJx*fSo<8D*k#DO9-&8m?mu&80;3#MD=772OKH{ua)nmZQ^q|uXPgkf&XBKU?(!`U zeym_wnQ>p^zUh*Dbk0SjVH1XoQ{IL4n+#>Pt{&ZnvwMx++qq}u4@h!bereQ2&_3?u zWW(5R8hjFpaM(otk#d#IYge|^X<^oO7}0jc?0eeYlKL}`a{-{FQtF2Z+^gh_a*Bph z5O|3_w#I zYx6Z!IiL=i%I;P?-;;U1p3|$%>e{qs{@kBE#Zcnp{S|NGze+ zV#GtW(fQGUpr-AV&W8;(yFZKBtD@^7SV`oOXDRD-_34Koa%n$Iw75K(&omve0TKi= zv9mKni?El6pw8r78^=lieWD$rZk#WZ^unz0f=jcmjmD$usY;-P&Xu66 zw%I6qbVP*1n7t&guLEE{5&bl`IeF;`qEc{ZH2mtvs0-<*Pk#TzfCa(7YZb)K#;nF{ z$H4i`dvR6$K85O8O(!(4WQ@O(31K>d00vYlB$N7Pl4%o@y5_ZiIeV+=R6t}Fwvb^1 zkhk_U%=0XkU`5^lO*iwjNGIknZ87F2LfZ_*oV&82y( zhlKhtvY|+@1sMvVRr~vy7G$5ioi%~Rt~9zhd!Hm*$>`K(*N8hT=s** zwUnK5`^=p0-Y&*^S;yk(rEQ`{<{6%6#_(KVDnSVXl_zotSx)<)VgBZ|hsY7tUZgQT z?8BkFnXgaMJh9wz+kk=O2+>xoCB*TqDnk|+dRIdWvkZolp}z~C<5U4QZBn1QpugVJ zZF`@Dj(Q7+$fm7_)}A{t0pkqn7G5^J@t3p4{u`+Ci?$^_r}yGLDE8cx+Jh{;)Ppt* zugXSXqMdYk)I5*1-28ZyWRHmv3GX_e0+S)IJr7|+_I-Q zo^f-(le&PD0091>OT_cneADK~j9jh_Nx_yDgMao!DNfb44}5Sx~j&j{IlE z)pXZ*I7BURq_Frf+Dx8dW`U+(uy|XTZ~+#1Ebd{|iF+?EMtr#tc}%*E`Jp8S@Q$8e zj>=T+o*MrQ^;Wra+l6vgby#!4&8KIx_gD9iz;&+${_90k>4Tpr(?4m z-?;vjp|r+wg$zzp(&+K=VQQ>YEXRZuDVhXdYR~CosL??o|Xxb9ZwAxlq&U$`9KX}4!q3=b~$2sy_<-3Y&`R^j} zgoK)n%;7DK46Omuk|#dd#O@5DHSjNq2v2ZX(v#WSOmyu&d^ing7C9cMBdOCBBhVCz zDG;+TQ3%-;CZ!YlI1Sf~~C z>D>1s(Sm_>C6$*p2Jn6fH8IHxIL-34c|Z3g+q^#iKh~qSo;$p{)!{Dz7lQQ-k7a#* zdVz1!KRNF53tFTBI_&kY*g;E6a%l0N&bc$M0~eHy&NCd>vDh$1{ce%5i0X2YSx*uz z(glmqQ%UdRrlhozZYCV7CVug$)Rt5qbk_eY_$;J8l6Log>L*Q#I`%gRXwebu97+3L zn{5^x1vl+^e%qUP%}ns4X6gLnW2Fksvd+uBxW+T?nCcu~_iy4tw7bGad8?9-TBu~_ z00JFK&}La`aGiN&NtjP_w8A`V%ccj%`C-*HzzIPsNh(zr)Lhy?oW0t1QxgC*#DM$s z*!!a-sQNCv)U?idD2Ydw@@~OzBT=eK08OY3K&l*pP&@2|092^*{~@?x3%n^S5$9J8 zxqGhiLjl8M2zvzym=#qIa;$byrgU0o%bnk#Si^kwJvJDb-n}2lv|%|Ru4--sa$B^M zJt%wv8K7V2$$h%|8DfY;y@ip>`0k^G(^|OHlXzLQ^sF+c5QhcKWJ zJ6|StW=5>Kk=rTj;yl)+3d&J4{P6zylIz)PjJrEksvaBeOC~M7Hvo1GpI=7!0?!tf zFuAfM5w++#r!GTcB9R|WQpqapf2kM+3orF+nSg}>@yL<8~XfBl}fx_&6dAQ7T z{Rh1lW{F9yJ@G~`EPooq-GU*~Q(B%Kug5p!J+N!b6BUAEH#PzsPB9I}lDjFmAPwLe8aLy-8d{pX@zXIJ|-r z`u;8~JGHjLJ~WhK4tXEFR#;Mg9(ja-gcFdyyphK=!&Wbwyf~*kGjv`Y`a_QDUXKyU zFEATv!6(6WuJVp+z(Etb%d#)HHr#*`;Ok(KDU+i{^cy;zS$OdE$UbDwnn}bwufxBj z;m+aMaf5S`C`?I4&s0*|X#mdr{%laYSNTp{17T>b7>hyxZvbbny7R&T3V@6CneNteYZM zFUURG=5$A7sJrt$w_z64AJ{(9sl}J&SSNuZtz3X=BnGg^m2(qYX-j9$6_)(9h5v&Kab|HTQOhrT+ diff --git a/examples/admob/assets/Green Button_Pressed.png b/examples/admob/assets/Green Button_Pressed.png index d59f084105e013f7cbb47147aacad607b6d6e18f..38edf5f44d944eea6eb1bfdfeffcdafe731337aa 100644 GIT binary patch literal 1832 zcmbW1c~H|y7RP@H80651up%Dxh2@7|xIwj%31LQ&U@8wY6Q{ufO$q-TnUP_g*f_$90dw zK?MK+_PDz_`2he(DgpFvh}51z7c5FQ`O9u0$pD~rV`qU1W>;bW05b0GbjttQIPcR! zl4^k3s}<1!CwU{WiY#`_#rv(A?#OEOYb|r4sp@Hu)F-=)uhtnCUtP~WrD~|4d^2YR zn+i9NsoMP#6*}%0sbIR#tfj5^_PNx!g0+U4fr<}00T;1fh3*dK1B+f{YFcLc+(5`4 zQng{;f1M8{Ki?{=n(t|$SGysC6Y@WdC(z#G5)|l9HwUrlPle}7Bduf<^EFoW3p__l zUdZ^mo@cP16AGaKGlHjV864_=pp0LjAt9Y-81Rxd?+TokESrhHE4fTFcrOjs^tT%4 z3d*vwzr;gG@;}A~mvcw{ZGMb!7-rP!``D%PTknf{bkZwuKzhb?kCc)+MVVWV)`e(x zJP#GbHUN5a`FHqb{0csWe~(|ypV2)HPZ)+AM@(1~5WzQjIzL+$iyU()7VH}AN;F{W zg!99l!TIAb#c;#Sig-fk$(D^RuXV>s7s$b75Qp73DEa`V=iM27Q1EQ3ghwF^&vraI zGHC5E^+cT^Zh9FqCfjPFXjSWlzqTZq*RL$HF1~XJvzXX1f3CK1f57u6 zh(a>@JN%c&dG;Bb)5z;a_C@o1L6-Zj_(<$3Of#_@<6-BrhGX~z8HbTy8dv#C6hYd? z(WzDDL}tb;ZDq`2cw21kNL34`8(3!La}Kuwp z{4Pd8iGk;T5a!IUn!TaE!?05OYX0;RMhh-LF-rg#!-j0ULMa!WM%%d`?*TGtWw$HX+}*v-zX|9Kd%6K4D=9!jn%J zR?&9szn{r*6t3 z2hy4a8wx`Az+#3h-Z0uZyemANmyrQMnSxL}#1H54^zo6~6AftT<)Hg6VRs>|ekzMowVv^AmlR>UFAIin zW4Xp0511UdJ8jGQ$S8FPmdK5$^_7g)`}kz^7Pd;>EaI<7n}ILRDx_XLoGv#MTtg9W zw`O$1fP`LB-W`VDe7@e?8n*`-b9-O#b1#7T<=2zaLh+qEE+jNm$GUY&pgFGKdk;;l z`W$S&;h(q9f!VhvW;=pCpXpHb={@j5JH<>EnN^OXMYg0r-N1KGY{?Ym)cL9p<@J(2 zu4nW_rJAgUkBCx`Fy+_OUfsTqQZ3TJUg8RkRuW03kSEBnw?Wb-hcOm>mq5!IMvlLK zC8w!eh$|G&Z3}j_4$1;ECZf5?vGw*^QG)fm7m@fLX5bfVCtkfj ztmf%F5I;(7ln0h?X%K9A+Km^Y&Crnc@dF*NkYI69+S>!rM0E@!>1Z3P!ovI$CXpElExkl(Du0Wd1J=2Au|g1^U!CA1?qpNq4*RbOFa4unU6uVLM0xX zfK&=u$dhJA6hy3i7thB~iOsxo^`Lup34v;gRJdmq&I(9La?4kO}xuVYc z?b!?mw4|N=z3g_~55BOx_}c~qCGbXy$g2#VjSMdbtkdPKq3Ga#JPRS;&7S>PlXztK z_uR=}L>UE7Q9!5sC&BkvtrYThfc=cB$wVtuuP$O><2gdi8HGe<#=mDRbYyCEaBt9( zU$(%!^C{-yr=%O$^lm{N~j8TBp#7dDg0H4-qwy9lM++p=2^G-Y5l!%ljdwH@2O6tT~-COO&oNtRat0 zAAX&4ulR<`t(@!bm`w5B z8let9AJbQKk1-oFp5C1)9T)!Mno=ccYd!OXz{fe%tM)H=)_rV|mQ^|@08~0Q>z(KM z_c?=>RL(e=9&Vbk=nqR8RrB79xmFQq#n6o~J|89gX4!0gCup%qfO~?6aLjI6Xf&jr zJXCgAyT(K#{ggCSg~>j2$?6A94uM#&kQd73#@8=WJw*5#UN69B>bZBy`=W^kgL`7m z1>}WOp<9og8@`T8PkO(=2yL|lywnd-;KVLk;>!2M8_&YMq7_;fzlQ?ZeUKVHGW9Y# z{NZo{CLfKoRJ#2gg@8 zM8Lulrc?rlq8ls2$jfM+N(aR?Kon3G?^8`FL0F+0(qZ21D(gwDHEy6Y3eb4@aTfCx z2i4%3w5+|+1R)H=(nJg7r2&*w5FqMx2V@bf%MTRv{yz#1ptYNPUw5s9hd2}wsALXU zo^iY!7NemKj8F$ZN6}ev%nN7qlx~-5=>{3UYXLcE0EG1WDNjF2@&m&W5@t!i!oqq^ z6C_DD0#qnswsqM75h#h*XX}tH?<0M3S3H2^^xolh%CMVu9WE4uD$p#}>q|^DiHyp9 zV8&OeS7x1 zxwn+bKLT*kT8&2cSKC&3zHRpA)Ct|mbd-dTh0-C)-YODu$fwu~(ZNv?g(HR3d)loT zyQ2@Qms0^Va9#p~rJLwzXQ*#9sZ^>Bl^o#@)4JypGujgg@2>HH_$^gjcd=LtjeA_X ztJ$YUZcq1YpamAb$_?W|X%*e28|X`unbn-n%n4%~pb>qIxRijf`IXu=M8ZzTc1J`@Cu0kJ@>I zp7?iJ($YdEl7#tHw&I8lFfvbn0zZene9z*-SYTs4#%fTsP#Oue!Gz$UI8o&pQ=Iqlyu@lTFbYp~-gV^zXbJn5gxIjz^nz}IJ zAjkfNzF&GjVHp!5Qvp`?Ug%TpTTcrU;Ky4}DPGEvJH*=e8*gUtna|~OuC6+r*l3UQ z%jucVBu})Y9j7(f!iY4~)=>k<_Ntvv{x(9mO5JWZ+(=n0$nzi%UPdG=MQ!3qW@HsQ z?CvSsDs4aVkNSvUP1o#xahujFAA+v5LRQ5@(KXC#17GKLT?c|x&C{2Xq|)1+~ih2Kse{V9Mg+7Z=c6>#$(a|Qds