From a237f24fcf068ceb147062a8ba9ba0425256551b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Thu, 17 Oct 2024 19:07:34 +0200 Subject: [PATCH] [Run dino run] Use a custom object for the leaderboard dialog --- examples/run-dino-run/run-dino-run.json | 2207 ++++++++++++++--------- 1 file changed, 1351 insertions(+), 856 deletions(-) diff --git a/examples/run-dino-run/run-dino-run.json b/examples/run-dino-run/run-dino-run.json index 5926d6cb5..dc6180975 100644 --- a/examples/run-dino-run/run-dino-run.json +++ b/examples/run-dino-run/run-dino-run.json @@ -1,7 +1,7 @@ { "firstLayout": "Intro", "gdVersion": { - "build": 213, + "build": 216, "major": 5, "minor": 4, "revision": 0 @@ -909,6 +909,8 @@ "particleAngleRandomness2": 0, "particleBlue1": 148, "particleBlue2": 148, + "particleColor1": "243;213;148", + "particleColor2": "243;213;148", "particleGravityX": 0, "particleGravityY": 0, "particleGreen1": 213, @@ -981,7 +983,7 @@ "gridColor": 10401023, "gridAlpha": 0.8, "snap": true, - "zoomFactor": 0.6991000426929816, + "zoomFactor": 0.881780989921635, "windowMask": false }, "objectsGroups": [ @@ -1362,6 +1364,7 @@ "text": "See\nscores", "font": "Nathaniel-19.otf", "textAlignment": "center", + "verticalTextAlignment": "top", "characterSize": 20, "color": "255;255;255" } @@ -1880,6 +1883,7 @@ "text": "RUN DINO RUN", "font": "Nathaniel-19.otf", "textAlignment": "left", + "verticalTextAlignment": "top", "characterSize": 100, "color": "0;0;0" } @@ -1934,6 +1938,7 @@ "text": "Start", "font": "Nathaniel-19.otf", "textAlignment": "center", + "verticalTextAlignment": "top", "characterSize": 18, "color": "255;255;255" } @@ -2757,6 +2762,7 @@ "text": "Press any key to start running.", "font": "Nathaniel-19.otf", "textAlignment": "", + "verticalTextAlignment": "top", "characterSize": 30, "color": "139;87;42" } @@ -2885,6 +2891,8 @@ "particleAngleRandomness2": 0, "particleBlue1": 226, "particleBlue2": 255, + "particleColor1": "74;173;226", + "particleColor2": "17;239;255", "particleGravityX": 0, "particleGravityY": 0, "particleGreen1": 173, @@ -6920,106 +6928,17 @@ "stringProperties": [], "initialVariables": [] }, - { - "angle": 0, - "customSize": true, - "height": 320, - "layer": "", - "name": "ScorePannel", - "persistentUuid": "54d42257-be1c-432d-ba5e-53c9de63c893", - "width": 512, - "x": 224, - "y": 64, - "zOrder": 16, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 35, - "layer": "", - "name": "ScoreText", - "persistentUuid": "722f1233-75ba-4128-8905-4ac5dd26bc1e", - "width": 384, - "x": 288, - "y": 128, - "zOrder": 18, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 41, - "layer": "", - "name": "PlayerNameInput", - "persistentUuid": "a681abd2-5235-4165-a003-4a9553d79cb5", - "width": 320, - "x": 320, - "y": 181, - "zOrder": 19, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "name": "SubmitLoader", - "persistentUuid": "8c3bfc51-293f-424c-a7f8-ac3f2c50a905", - "width": 0, - "x": 356, - "y": 264, - "zOrder": 23, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "name": "SubmitButton", - "persistentUuid": "7b23f42a-648d-4b42-95bd-aad6c1861b5e", - "width": 0, - "x": 320, - "y": 256, - "zOrder": 26, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "", - "name": "ScoresButton", - "persistentUuid": "c1ff6a1e-ed5f-406e-82ce-0af69ab646fe", - "width": 0, - "x": 512, - "y": 256, - "zOrder": 27, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, { "angle": 0, "customSize": false, "height": 0, + "keepRatio": true, "layer": "", - "name": "RestartButton", - "persistentUuid": "d239a731-7dae-42f6-bfcb-f0a21413479b", + "name": "LeaderboardDialog", + "persistentUuid": "2a63e8d6-84ec-4acc-a736-db69253545fe", "width": 0, - "x": 416, - "y": 320, + "x": 224, + "y": 64, "zOrder": 28, "numberProperties": [], "stringProperties": [], @@ -7029,316 +6948,13 @@ "objects": [ { "assetStoreId": "", - "bottomMargin": 64, - "height": 192, - "leftMargin": 64, - "name": "ScorePannel", - "rightMargin": 64, - "texture": "9patch_Desert Tile_all_64.png", - "tiled": true, - "topMargin": 64, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [] - }, - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "ScoreText", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Score", - "font": "Nathaniel-19.otf", - "textAlignment": "", - "characterSize": 40, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Score", - "font": "Nathaniel-19.otf", - "textAlignment": "", - "characterSize": 40, - "color": "255;255;255" - } - }, - { - "assetStoreId": "", - "name": "PlayerNameInput", - "type": "TextInput::TextInputObject", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "initialValue": "", - "placeholder": "PlayerName", - "fontResourceName": "Nathaniel-19.otf", - "fontSize": 30, - "inputType": "text", - "textColor": "0;0;0", - "fillColor": "245;166;35", - "fillOpacity": 255, - "borderColor": "245;166;35", - "borderOpacity": 255, - "borderWidth": 1, - "readOnly": false, - "disabled": false - } - }, - { - "assetStoreId": "", - "name": "RestartButton", - "type": "PanelSpriteButton::PanelSpriteButton", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "HoveredFadeOutDuration": 0 - }, - "childrenContent": { - "Hovered": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 20, - "texture": "assets\\Buttons\\RestartButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - }, - "Idle": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 20, - "texture": "assets\\Buttons\\RestartButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - }, - "Label": { - "bold": false, - "italic": false, - "smoothed": true, - "underlined": false, - "string": "RETRY", - "font": "Nathaniel-19.otf", - "textAlignment": "center", - "characterSize": 30, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "RETRY", - "font": "Nathaniel-19.otf", - "textAlignment": "center", - "characterSize": 30, - "color": "255;255;255" - } - }, - "Pressed": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 20, - "texture": "assets\\Buttons\\RestartButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - } - } - }, - { - "assetStoreId": "", - "name": "SubmitButton", - "type": "PanelSpriteButton::PanelSpriteButton", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "HoveredFadeOutDuration": 0 - }, - "childrenContent": { - "Hovered": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 20, - "texture": "assets\\Buttons\\SubmitButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - }, - "Idle": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 20, - "texture": "assets\\Buttons\\SubmitButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - }, - "Label": { - "bold": false, - "italic": false, - "smoothed": true, - "underlined": false, - "string": "SUBMIT", - "font": "Nathaniel-19.otf", - "textAlignment": "center", - "characterSize": 30, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "SUBMIT", - "font": "Nathaniel-19.otf", - "textAlignment": "center", - "characterSize": 30, - "color": "255;255;255" - } - }, - "Pressed": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 20, - "texture": "assets\\Buttons\\SubmitButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - } - } - }, - { - "assetStoreId": "", - "name": "ScoresButton", - "type": "PanelSpriteButton::PanelSpriteButton", + "name": "LeaderboardDialog", + "type": "LeaderboardDialog::LeaderboardDialog", "variables": [], "effects": [], "behaviors": [], "content": { - "HoveredFadeOutDuration": 0 - }, - "childrenContent": { - "Hovered": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 17, - "texture": "assets\\Buttons\\SubmitButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - }, - "Idle": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 17, - "texture": "assets\\Buttons\\SubmitButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - }, - "Label": { - "bold": false, - "italic": false, - "smoothed": true, - "underlined": false, - "string": "SCORES", - "font": "Nathaniel-19.otf", - "textAlignment": "center", - "characterSize": 30, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "SCORES", - "font": "Nathaniel-19.otf", - "textAlignment": "center", - "characterSize": 30, - "color": "255;255;255" - } - }, - "Pressed": { - "bottomMargin": 11, - "height": 47, - "leftMargin": 20, - "rightMargin": 17, - "texture": "assets\\Buttons\\SubmitButton.png", - "tiled": false, - "topMargin": 11, - "width": 128 - } + "LeaderboardId": "2dfc4fba-1e2b-4e07-b3f3-3ee9839ab0dd" } } ], @@ -7346,22 +6962,7 @@ "folderName": "__ROOT", "children": [ { - "objectName": "ScorePannel" - }, - { - "objectName": "ScoreText" - }, - { - "objectName": "PlayerNameInput" - }, - { - "objectName": "RestartButton" - }, - { - "objectName": "SubmitButton" - }, - { - "objectName": "ScoresButton" + "objectName": "LeaderboardDialog" } ] }, @@ -7379,17 +6980,6 @@ } ], "actions": [ - { - "type": { - "value": "TextContainerCapability::TextContainerBehavior::SetValue" - }, - "parameters": [ - "ScoreText", - "Text", - "=", - "\"Score \" + Score" - ] - }, { "type": { "value": "PlayMusic" @@ -7401,89 +6991,27 @@ "70", "" ] - } - ], - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::DisplayAuthenticationBanner" - }, - "parameters": [ - "" - ] - } - ] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PlayerAuthentication::IsPlayerAuthenticated" - }, - "parameters": [] - } - ], - "actions": [ - { - "type": { - "value": "TextContainerCapability::TextContainerBehavior::SetValue" - }, - "parameters": [ - "PlayerNameInput", - "Text", - "=", - "PlayerAuthentication::Username()" - ] - }, - { - "type": { - "value": "TextInput::TextInputObject::SetDisabled" - }, - "parameters": [ - "PlayerNameInput", - "yes" - ] - } + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::SetScore" + }, + "parameters": [ + "LeaderboardDialog", + "=", + "Score", + "" ] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": true, - "value": "PlayerAuthentication::IsPlayerAuthenticated" - }, - "parameters": [] - }, - { - "type": { - "value": "StringVariable" - }, - "parameters": [ - "PlayerName", - "!=", - "\"0\"" - ] - } - ], - "actions": [ - { - "type": { - "value": "TextContainerCapability::TextContainerBehavior::SetValue" - }, - "parameters": [ - "PlayerNameInput", - "Text", - "=", - "PlayerName" - ] - } + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName" + }, + "parameters": [ + "LeaderboardDialog", + "=", + "PlayerName", + "" ] } ] @@ -7493,48 +7021,146 @@ "conditions": [ { "type": { - "value": "PlayerAuthentication::HasPlayerLoggedIn" + "value": "LeaderboardDialog::LeaderboardDialog::IsRestartClicked" }, - "parameters": [] + "parameters": [ + "LeaderboardDialog", + "" + ] } ], "actions": [ { "type": { - "value": "TextContainerCapability::TextContainerBehavior::SetValue" + "value": "Scene" }, "parameters": [ - "PlayerNameInput", - "Text", - "=", - "PlayerAuthentication::Username()" + "", + "\"Game\"", + "" ] - }, + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::IsScoreSubmitted" + }, + "parameters": [ + "LeaderboardDialog", + "" + ] + } + ], + "actions": [ { "type": { - "value": "TextInput::TextInputObject::SetDisabled" + "value": "SetStringVariable" }, "parameters": [ - "PlayerNameInput", - "yes" + "PlayerName", + "=", + "LeaderboardDialog.PlayerName()" ] }, { "type": { - "value": "PlayerAuthentication::DisplayAuthenticationBanner" + "value": "Scene" }, "parameters": [ + "", + "\"Game\"", "" ] } ] + } + ], + "layers": [ + { + "ambientLightColorB": 167797870, + "ambientLightColorG": 6032144, + "ambientLightColorR": 8563600, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, + "cameraType": "perspective", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "Background", + "renderingType": "", + "visibility": true, + "cameras": [], + "effects": [] + }, + { + "ambientLightColorB": 3, + "ambientLightColorG": 134217728, + "ambientLightColorR": 1597197633, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, + "cameraType": "perspective", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "behaviorsSharedData": [ + { + "name": "Effect", + "type": "EffectCapability::EffectBehavior" + }, + { + "name": "Flippable", + "type": "FlippableCapability::FlippableBehavior" + }, + { + "name": "Opacity", + "type": "OpacityCapability::OpacityBehavior" + }, + { + "name": "Platform", + "type": "PlatformBehavior::PlatformBehavior" }, + { + "name": "Resizable", + "type": "ResizableCapability::ResizableBehavior" + } + ] + } + ], + "externalEvents": [ + { + "associatedLayout": "Game", + "name": "DustEmitterSetup", + "events": [ { "type": "BuiltinCommonInstructions::Standard", "conditions": [ { "type": { - "value": "Leaderboards::IsLeaderboardViewErrored" + "value": "BuiltinCommonInstructions::Once" }, "parameters": [] } @@ -7542,112 +7168,124 @@ "actions": [ { "type": { - "value": "PlayerAuthentication::DisplayAuthenticationBanner" + "value": "Create" }, "parameters": [ - "" + "", + "DustParticles", + "Dino.PointX(\"DustProjection\")", + "Dino.PointY(\"DustProjection\")", + "\"\"" ] - } - ] - }, - { - "colorB": 214, - "colorG": 159, - "colorR": 50, - "creationTime": 0, - "name": "Buttons", - "source": "", - "type": "BuiltinCommonInstructions::Group", - "events": [ + }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" - }, - "parameters": [ - "RestartButton", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::HideAuthenticationBanner" - }, - "parameters": [ - "" - ] - }, - { - "type": { - "value": "Scene" - }, - "parameters": [ - "", - "\"Game\"", - "" - ] - } + "type": { + "value": "ParticleSystem::EmitterAngle" + }, + "parameters": [ + "DustParticles", + "=", + "180" ] }, { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 + "type": { + "value": "SetAngle" }, - "comment": "Handle leaderboards.\nTo create a leaderboard, make sure your game is registered in Home > Profile > Games Dashboard and then, click on \"Manage game\" > Leaderboards. When a leaderboard is created, it should be available in the actions." + "parameters": [ + "DustParticles", + "=", + "0" + ] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" - }, - "parameters": [ - "SubmitButton", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::HideAuthenticationBanner" - }, - "parameters": [ - "" - ] - } - ], - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "type": { + "value": "ChangePlan" + }, + "parameters": [ + "DustParticles", + "=", + "0" + ] + } + ] + } + ] + } + ], + "eventsFunctionsExtensions": [ + { + "author": "", + "category": "", + "extensionNamespace": "", + "fullName": "", + "helpPath": "", + "iconUrl": "", + "name": "LeaderboardDialog", + "previewIconUrl": "", + "shortDescription": "", + "version": "", + "description": "", + "tags": [], + "authorIds": [], + "dependencies": [], + "globalVariables": [], + "sceneVariables": [], + "eventsFunctions": [], + "eventsBasedBehaviors": [], + "eventsBasedObjects": [ + { + "areaMaxX": 512, + "areaMaxY": 320, + "areaMaxZ": 48, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "defaultName": "", + "description": "", + "fullName": "", + "isInnerAreaFollowingParentSize": true, + "isUsingLegacyInstancesRenderer": false, + "name": "LeaderboardDialog", + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "onCreated", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ { "type": { - "value": "PlayerAuthentication::IsPlayerAuthenticated" + "value": "LeaderboardDialog::LeaderboardDialog::SetScore" }, - "parameters": [] - } - ], - "actions": [ + "parameters": [ + "Object", + "=", + "0", + "" + ] + }, { "type": { - "value": "Leaderboards::SaveConnectedPlayerScore" + "value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName" }, "parameters": [ - "", - "\"2dfc4fba-1e2b-4e07-b3f3-3ee9839ab0dd\"", - "Score" + "Object", + "=", + "DefaultPlayerName", + "" + ] + }, + { + "type": { + "value": "PlayerAuthentication::DisplayAuthenticationBanner" + }, + "parameters": [ + "" ] } ] @@ -7657,7 +7295,6 @@ "conditions": [ { "type": { - "inverted": true, "value": "PlayerAuthentication::IsPlayerAuthenticated" }, "parameters": [] @@ -7666,310 +7303,1167 @@ "actions": [ { "type": { - "value": "Leaderboards::SavePlayerScore" + "value": "TextContainerCapability::TextContainerBehavior::SetValue" }, "parameters": [ - "", - "\"2dfc4fba-1e2b-4e07-b3f3-3ee9839ab0dd\"", - "Score", - "PlayerNameInput.Text()" + "PlayerNameInput", + "Text", + "=", + "PlayerAuthentication::Username()" ] }, { "type": { - "value": "SetStringVariable" + "value": "TextInput::TextInputObject::SetDisabled" }, "parameters": [ - "PlayerName", - "=", - "PlayerNameInput.Text()" + "PlayerNameInput", + "yes" ] } ] - }, + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "fullName": "", + "functionType": "Action", + "name": "doStepPostEvents", + "sentence": "", + "events": [ { "type": "BuiltinCommonInstructions::Standard", - "conditions": [], + "conditions": [ + { + "type": { + "value": "PlayerAuthentication::HasPlayerLoggedIn" + }, + "parameters": [] + } + ], "actions": [ { "type": { - "value": "Leaderboards::DisplayLeaderboard" + "value": "TextContainerCapability::TextContainerBehavior::SetValue" }, "parameters": [ - "", - "\"2dfc4fba-1e2b-4e07-b3f3-3ee9839ab0dd\"", + "PlayerNameInput", + "Text", + "=", + "PlayerAuthentication::Username()" + ] + }, + { + "type": { + "value": "TextInput::TextInputObject::SetDisabled" + }, + "parameters": [ + "PlayerNameInput", "yes" ] }, { "type": { - "value": "SetBooleanVariable" + "value": "PlayerAuthentication::DisplayAuthenticationBanner" }, "parameters": [ - "HasSubmitScore", - "True", "" ] } ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" - }, - "parameters": [ - "ScoresButton", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::HideAuthenticationBanner" - }, - "parameters": [ - "" - ] }, { - "type": { - "value": "Leaderboards::DisplayLeaderboard" - }, - "parameters": [ - "", - "\"2dfc4fba-1e2b-4e07-b3f3-3ee9839ab0dd\"", - "yes" - ] - } - ] - } - ], - "parameters": [] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "Leaderboards::HasPlayerJustClosedLeaderboardView" - }, - "parameters": [] - } - ], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::DisplayAuthenticationBanner" - }, - "parameters": [ - "" - ] - } - ], - "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Allow players to submit again the score in case of error." - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "BooleanVariable" - }, - "parameters": [ - "HasSubmitScore", - "True" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "Leaderboards::IsLeaderboardViewErrored" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "PlayerAuthentication::DisplayAuthenticationBanner" + }, + "parameters": [ + "" + ] + } ] }, { - "type": { - "value": "Leaderboards::HasLastSaveSucceeded" - }, - "parameters": [ - "\"2dfc4fba-1e2b-4e07-b3f3-3ee9839ab0dd\"" - ] - } - ], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::HideAuthenticationBanner" + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 }, - "parameters": [ - "" - ] + "comment": "Handle leaderboards.\nTo create a leaderboard, make sure your game is registered in Home > Profile > Games Dashboard and then, click on \"Manage game\" > Leaderboards. When a leaderboard is created, it should be available in the actions." }, { - "type": { - "value": "Scene" - }, - "parameters": [ - "", - "\"Game\"", - "" - ] - } - ] - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 167797870, - "ambientLightColorG": 6032144, - "ambientLightColorR": 8563600, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 0.1, - "cameraType": "perspective", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "Background", - "renderingType": "", - "visibility": true, - "cameras": [], - "effects": [] - }, - { - "ambientLightColorB": 3, - "ambientLightColorG": 134217728, - "ambientLightColorR": 1597197633, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 0.1, - "cameraType": "perspective", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" + }, + "parameters": [ + "SubmitButton", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PlayerAuthentication::IsPlayerAuthenticated" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Leaderboards::SaveConnectedPlayerScore" + }, + "parameters": [ + "", + "LeaderboardId", + "Score" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "PlayerAuthentication::IsPlayerAuthenticated" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Leaderboards::SavePlayerScore" + }, + "parameters": [ + "", + "LeaderboardId", + "Score", + "PlayerNameInput.Text()" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "PlayerAuthentication::HideAuthenticationBanner" + }, + "parameters": [ + "" + ] + }, + { + "type": { + "value": "Leaderboards::DisplayLeaderboard" + }, + "parameters": [ + "", + "LeaderboardId", + "yes" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" + }, + "parameters": [ + "ScoresButton", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PlayerAuthentication::HideAuthenticationBanner" + }, + "parameters": [ + "" + ] + }, + { + "type": { + "value": "Leaderboards::DisplayLeaderboard" + }, + "parameters": [ + "", + "\"2dfc4fba-1e2b-4e07-b3f3-3ee9839ab0dd\"", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "Leaderboards::HasPlayerJustClosedLeaderboardView" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "PlayerAuthentication::DisplayAuthenticationBanner" + }, + "parameters": [ + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "the score.", + "fullName": "Score", + "functionType": "ExpressionAndCondition", + "name": "Score", + "sentence": "the score", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "Score" + ] + } + ] + } + ], + "expressionType": { + "type": "expression" + }, + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "fullName": "", + "functionType": "ActionWithOperator", + "getterName": "Score", + "name": "SetScore", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::SetPropertyScore" + }, + "parameters": [ + "Object", + "=", + "Value" + ] + }, + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "ScoreLabel", + "Text", + "=", + "\"Score: \" + Score" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "the default player name.", + "fullName": "Default player name", + "functionType": "ExpressionAndCondition", + "name": "DefaultPlayerName", + "sentence": "the default player name", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnString" + }, + "parameters": [ + "DefaultPlayerName" + ] + } + ] + } + ], + "expressionType": { + "type": "string" + }, + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "fullName": "", + "functionType": "ActionWithOperator", + "getterName": "DefaultPlayerName", + "name": "SetDefaultPlayerName", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::SetPropertyDefaultPlayerName" + }, + "parameters": [ + "Object", + "=", + "Value" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "PlayerAuthentication::IsPlayerAuthenticated" + }, + "parameters": [] + }, + { + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::PropertyDefaultPlayerName" + }, + "parameters": [ + "Object", + "!=", + "\"0\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "PlayerNameInput", + "Text", + "=", + "DefaultPlayerName" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "the player name.", + "fullName": "Player name", + "functionType": "ExpressionAndCondition", + "name": "PlayerName", + "sentence": "the player name", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnString" + }, + "parameters": [ + "PlayerNameInput.Text::Value()" + ] + } + ] + } + ], + "expressionType": { + "type": "string" + }, + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the restart button of the dialog is clicked.", + "fullName": "Restart button clicked", + "functionType": "Condition", + "name": "IsRestartClicked", + "sentence": "Restart button of _PARAM0_ is clicked", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" + }, + "parameters": [ + "RestartButton", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PlayerAuthentication::HideAuthenticationBanner" + }, + "parameters": [ + "" + ] + }, + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the score has been sucessfully submitted by the dialog.", + "fullName": "Score is submitted", + "functionType": "Condition", + "name": "IsScoreSubmitted", + "sentence": "_PARAM0_ submitted a score", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Allow to try and submit again in case of error." + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "Leaderboards::HasPlayerJustClosedLeaderboardView" + }, + "parameters": [] + }, + { + "type": { + "value": "Leaderboards::HasLastSaveSucceeded" + }, + "parameters": [ + "LeaderboardId" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] } ], - "effects": [] - } - ], - "behaviorsSharedData": [ - { - "name": "Effect", - "type": "EffectCapability::EffectBehavior" - }, - { - "name": "LinearMovement", - "type": "LinearMovement::LinearMovement" - }, - { - "name": "Opacity", - "type": "OpacityCapability::OpacityBehavior" - }, - { - "name": "Platform", - "type": "PlatformBehavior::PlatformBehavior" - }, - { - "name": "Resizable", - "type": "ResizableCapability::ResizableBehavior" - }, - { - "name": "ScreenWrap", - "type": "ScreenWrap::ScreenWrap" - } - ] - } - ], - "externalEvents": [ - { - "associatedLayout": "Game", - "lastChangeTimeStamp": 0, - "name": "DustEmitterSetup", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "propertyDescriptors": [ { - "type": { - "value": "BuiltinCommonInstructions::Once" - }, - "parameters": [] + "value": "", + "type": "String", + "label": "Default player name", + "description": "", + "group": "", + "extraInformation": [], + "name": "DefaultPlayerName" + }, + { + "value": "0", + "type": "Number", + "unit": "Dimensionless", + "label": "", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "Score" + }, + { + "value": "", + "type": "String", + "label": "Leaderboard Id", + "description": "", + "group": "", + "extraInformation": [], + "name": "LeaderboardId" } ], - "actions": [ + "objects": [ { - "type": { - "value": "Create" + "assetStoreId": "", + "name": "RestartButton", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 4, + "rightEdgeAnchor": 4, + "relativeToOriginalWindowSize": true, + "topEdgeAnchor": 0, + "useLegacyBottomAndRightAnchors": false + } + ], + "content": { + "HoveredFadeOutDuration": 0 }, - "parameters": [ - "", - "DustParticles", - "Dino.PointX(\"DustProjection\")", - "Dino.PointY(\"DustProjection\")", - "\"\"" - ] + "childrenContent": { + "Hovered": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 20, + "texture": "assets\\Buttons\\RestartButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + }, + "Idle": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 20, + "texture": "assets\\Buttons\\RestartButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "RETRY", + "font": "Nathaniel-19.otf", + "textAlignment": "center", + "characterSize": 30, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "RETRY", + "font": "Nathaniel-19.otf", + "textAlignment": "center", + "verticalTextAlignment": "top", + "characterSize": 30, + "color": "255;255;255" + } + }, + "Pressed": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 20, + "texture": "assets\\Buttons\\RestartButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + } + } }, { - "type": { - "value": "ParticleSystem::EmitterAngle" + "assetStoreId": "", + "name": "ScoresButton", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 4, + "rightEdgeAnchor": 4, + "relativeToOriginalWindowSize": true, + "topEdgeAnchor": 0, + "useLegacyBottomAndRightAnchors": false + } + ], + "content": { + "HoveredFadeOutDuration": 0 }, - "parameters": [ - "DustParticles", - "=", - "180" - ] + "childrenContent": { + "Hovered": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 17, + "texture": "assets\\Buttons\\SubmitButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + }, + "Idle": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 17, + "texture": "assets\\Buttons\\SubmitButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "SCORES", + "font": "Nathaniel-19.otf", + "textAlignment": "center", + "characterSize": 30, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "SCORES", + "font": "Nathaniel-19.otf", + "textAlignment": "center", + "verticalTextAlignment": "top", + "characterSize": 30, + "color": "255;255;255" + } + }, + "Pressed": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 17, + "texture": "assets\\Buttons\\SubmitButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + } + } }, { - "type": { - "value": "SetAngle" + "assetStoreId": "", + "name": "SubmitButton", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 4, + "rightEdgeAnchor": 4, + "relativeToOriginalWindowSize": true, + "topEdgeAnchor": 0, + "useLegacyBottomAndRightAnchors": false + } + ], + "content": { + "HoveredFadeOutDuration": 0 }, - "parameters": [ - "DustParticles", - "=", - "0" - ] + "childrenContent": { + "Hovered": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 20, + "texture": "assets\\Buttons\\SubmitButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + }, + "Idle": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 20, + "texture": "assets\\Buttons\\SubmitButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "SUBMIT", + "font": "Nathaniel-19.otf", + "textAlignment": "center", + "characterSize": 30, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "SUBMIT", + "font": "Nathaniel-19.otf", + "textAlignment": "center", + "verticalTextAlignment": "top", + "characterSize": 30, + "color": "255;255;255" + } + }, + "Pressed": { + "bottomMargin": 11, + "height": 47, + "leftMargin": 20, + "rightMargin": 20, + "texture": "assets\\Buttons\\SubmitButton.png", + "tiled": false, + "topMargin": 11, + "width": 128 + } + } }, { - "type": { - "value": "ChangePlan" + "assetStoreId": "", + "name": "PlayerNameInput", + "type": "TextInput::TextInputObject", + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 0, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 0, + "useLegacyBottomAndRightAnchors": false + } + ], + "content": { + "initialValue": "", + "placeholder": "PlayerName", + "fontResourceName": "Nathaniel-19.otf", + "fontSize": 30, + "inputType": "text", + "textColor": "0;0;0", + "fillColor": "245;166;35", + "fillOpacity": 255, + "borderColor": "245;166;35", + "borderOpacity": 255, + "borderWidth": 1, + "readOnly": false, + "disabled": false + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "ScoreLabel", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 0, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 0, + "useLegacyBottomAndRightAnchors": false + } + ], + "string": "Score", + "font": "Nathaniel-19.otf", + "textAlignment": "", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 }, - "parameters": [ - "DustParticles", - "=", - "0" + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "Score", + "font": "Nathaniel-19.otf", + "textAlignment": "", + "verticalTextAlignment": "top", + "characterSize": 40, + "color": "255;255;255" + } + }, + { + "assetStoreId": "", + "bottomMargin": 64, + "height": 192, + "leftMargin": 64, + "name": "ScorePannel", + "rightMargin": 64, + "texture": "9patch_Desert Tile_all_64.png", + "tiled": true, + "topMargin": 64, + "type": "PanelSpriteObject::PanelSprite", + "width": 192, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 2, + "leftEdgeAnchor": 1, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 2, + "topEdgeAnchor": 1, + "useLegacyBottomAndRightAnchors": false + } ] } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "ScorePannel" + }, + { + "objectName": "ScoreLabel" + }, + { + "objectName": "PlayerNameInput" + }, + { + "objectName": "SubmitButton" + }, + { + "objectName": "ScoresButton" + }, + { + "objectName": "RestartButton" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": true, + "height": 320, + "layer": "", + "name": "ScorePannel", + "persistentUuid": "77a734d2-d847-4343-972a-471f5e3223d3", + "width": 512, + "x": 0, + "y": 0, + "zOrder": 16, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 35, + "layer": "", + "name": "ScoreLabel", + "persistentUuid": "da22ceb1-621f-4f75-9541-63e68d15f504", + "width": 384, + "x": 64, + "y": 64, + "zOrder": 18, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 41, + "layer": "", + "name": "PlayerNameInput", + "persistentUuid": "cce376dc-ab6a-4fd2-8e31-ad28038cd451", + "width": 320, + "x": 96, + "y": 117, + "zOrder": 19, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "SubmitButton", + "persistentUuid": "7627ff07-0177-47fb-8d4b-1ffce936bf3f", + "width": 0, + "x": 96, + "y": 192, + "zOrder": 26, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "ScoresButton", + "persistentUuid": "52cde598-c0f5-42e7-be21-28bdfc023938", + "width": 0, + "x": 288, + "y": 192, + "zOrder": 27, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "RestartButton", + "persistentUuid": "5f42f66e-950b-42ba-b689-68761eeb6816", + "width": 0, + "x": 192, + "y": 256, + "zOrder": 28, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } ] } ] - } - ], - "eventsFunctionsExtensions": [ + }, { "author": "@4ian", "category": "Movement", @@ -13154,6 +13648,7 @@ "text": "Text", "font": "", "textAlignment": "", + "verticalTextAlignment": "top", "characterSize": 20, "color": "0;0;0" }