diff --git a/examples/tappy-plane/tappy-plane.json b/examples/tappy-plane/tappy-plane.json index b2f11555a..e73939d48 100644 --- a/examples/tappy-plane/tappy-plane.json +++ b/examples/tappy-plane/tappy-plane.json @@ -1,7 +1,7 @@ { "firstLayout": "Menu", "gdVersion": { - "build": 213, + "build": 216, "major": 5, "minor": 4, "revision": 0 @@ -804,6 +804,7 @@ "text": "\n @The Gem Tutorials", "font": "", "textAlignment": "", + "verticalTextAlignment": "top", "characterSize": 20, "color": "255;255;255" } @@ -874,6 +875,7 @@ "text": "Start", "font": "04B_19__.TTF", "textAlignment": "center", + "verticalTextAlignment": "top", "characterSize": 40, "color": "255;255;255" } @@ -927,6 +929,7 @@ "text": "TAPPY", "font": "04B_19__.TTF", "textAlignment": "center", + "verticalTextAlignment": "top", "characterSize": 70, "color": "234;0;49" } @@ -1324,7 +1327,7 @@ "gridColor": 10401023, "gridAlpha": 0.8, "snap": true, - "zoomFactor": 1, + "zoomFactor": 0.4364390083704287, "windowMask": false }, "objectsGroups": [ @@ -1514,6 +1517,17 @@ } ], "objects": [ + { + "assetStoreId": "", + "name": "LeaderboardDialog", + "type": "LeaderboardDialog::LeaderboardDialog", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeaderboardId": "33ae5fd6-a214-4948-99da-3edd4d363ca3" + } + }, { "adaptCollisionMaskAutomatically": false, "assetStoreId": "", @@ -1939,47 +1953,6 @@ } ] }, - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "FinalScore", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Score: 0", - "font": "04B_19__.TTF", - "textAlignment": "", - "characterSize": 22, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": true, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "0;0;0", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Score: 0", - "font": "04B_19__.TTF", - "textAlignment": "", - "characterSize": 22, - "color": "255;255;255" - } - }, { "assetStoreId": "", "bold": false, @@ -2017,261 +1990,11 @@ "text": "0", "font": "04B_19__.TTF", "textAlignment": "center", + "verticalTextAlignment": "top", "characterSize": 40, "color": "255;255;255" } }, - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "HighScore", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Highscore: 0", - "font": "04B_19__.TTF", - "textAlignment": "", - "characterSize": 22, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": true, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "0;0;0", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Highscore: 0", - "font": "04B_19__.TTF", - "textAlignment": "", - "characterSize": 22, - "color": "255;255;255" - } - }, - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "HighScoreChanged", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "ShakeObject_PositionAngle", - "type": "ShakeObject::ShakeObject_PositionAngle" - } - ], - "string": "New Highscore!", - "font": "04B_19__.TTF", - "textAlignment": "", - "characterSize": 20, - "color": { - "b": 0, - "g": 0, - "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": "New Highscore!", - "font": "04B_19__.TTF", - "textAlignment": "", - "characterSize": 20, - "color": "255;0;0" - } - }, - { - "assetStoreId": "", - "name": "RestartButton", - "type": "PanelSpriteButton::PanelSpriteButton", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "TopPadding": 4, - "LeftPadding": 4, - "RightPadding": 4, - "BottomPadding": 8, - "HoveredFadeOutDuration": 0 - }, - "childrenContent": { - "Hovered": { - "bottomMargin": 0, - "height": 40, - "leftMargin": 0, - "rightMargin": 0, - "texture": "assets\\buttonSmall.png", - "tiled": false, - "topMargin": 0, - "width": 68 - }, - "Idle": { - "bottomMargin": 0, - "height": 40, - "leftMargin": 0, - "rightMargin": 0, - "texture": "assets\\buttonSmall.png", - "tiled": false, - "topMargin": 0, - "width": 68 - }, - "Label": { - "bold": false, - "italic": false, - "smoothed": true, - "underlined": false, - "string": "Restart", - "font": "04B_19__.TTF", - "textAlignment": "center", - "characterSize": 15, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": true, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "0;0;0", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Restart", - "font": "04B_19__.TTF", - "textAlignment": "center", - "characterSize": 15, - "color": "255;255;255" - } - }, - "Pressed": { - "bottomMargin": 0, - "height": 40, - "leftMargin": 0, - "rightMargin": 0, - "texture": "assets\\buttonSmall.png", - "tiled": false, - "topMargin": 0, - "width": 68 - } - } - }, - { - "assetStoreId": "", - "name": "SubmitScoreButton", - "type": "PanelSpriteButton::PanelSpriteButton", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "TopPadding": 4, - "LeftPadding": 4, - "RightPadding": 4, - "BottomPadding": 8, - "HoveredFadeOutDuration": 0 - }, - "childrenContent": { - "Hovered": { - "bottomMargin": 0, - "height": 40, - "leftMargin": 0, - "rightMargin": 0, - "texture": "assets\\buttonSmall.png", - "tiled": false, - "topMargin": 0, - "width": 68 - }, - "Idle": { - "bottomMargin": 0, - "height": 40, - "leftMargin": 0, - "rightMargin": 0, - "texture": "assets\\buttonSmall.png", - "tiled": false, - "topMargin": 0, - "width": 68 - }, - "Label": { - "bold": false, - "italic": false, - "smoothed": true, - "underlined": false, - "string": "Submit", - "font": "04B_19__.TTF", - "textAlignment": "center", - "characterSize": 15, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": true, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "0;0;0", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Submit", - "font": "04B_19__.TTF", - "textAlignment": "center", - "characterSize": 15, - "color": "255;255;255" - } - }, - "Pressed": { - "bottomMargin": 0, - "height": 40, - "leftMargin": 0, - "rightMargin": 0, - "texture": "assets\\buttonSmall.png", - "tiled": false, - "topMargin": 0, - "width": 68 - } - } - }, { "adaptCollisionMaskAutomatically": false, "assetStoreId": "", @@ -2441,86 +2164,6 @@ } ] }, - { - "assetStoreId": "", - "bottomMargin": 10, - "height": 32, - "leftMargin": 10, - "name": "GameOverBackground", - "rightMargin": 10, - "texture": "assets\\UIbg.png", - "tiled": true, - "topMargin": 10, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [] - }, - { - "adaptCollisionMaskAutomatically": false, - "assetStoreId": "", - "name": "Medal", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 0.08, - "sprites": [ - { - "hasCustomCollisionMask": false, - "image": "assets\\medalGold.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 0, - "y": 0 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [] - } - ] - } - ] - } - ] - }, - { - "assetStoreId": "", - "name": "PlayerNameInput", - "type": "TextInput::TextInputObject", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "initialValue": "", - "placeholder": "Touch to start typing", - "fontResourceName": "04B_19__.TTF", - "fontSize": 20, - "inputType": "text", - "textColor": "0;0;0", - "fillColor": "255;255;255", - "fillOpacity": 255, - "borderColor": "0;0;0", - "borderOpacity": 255, - "borderWidth": 1, - "readOnly": false, - "disabled": false - } - }, { "assetStoreId": "", "bold": false, @@ -2558,6 +2201,7 @@ "text": "GAME OVER", "font": "04B_19__.TTF", "textAlignment": "left", + "verticalTextAlignment": "top", "characterSize": 70, "color": "177;71;104" } @@ -2569,32 +2213,11 @@ { "folderName": "Leaderboard", "children": [ - { - "objectName": "Medal" - }, - { - "objectName": "GameOverBackground" - }, { "objectName": "GameOver" }, { - "objectName": "PlayerNameInput" - }, - { - "objectName": "SubmitScoreButton" - }, - { - "objectName": "RestartButton" - }, - { - "objectName": "HighScore" - }, - { - "objectName": "FinalScore" - }, - { - "objectName": "HighScoreChanged" + "objectName": "LeaderboardDialog" } ] }, @@ -2669,14 +2292,6 @@ "no" ] }, - { - "type": { - "value": "Cache" - }, - "parameters": [ - "HighScoreChanged" - ] - }, { "type": { "value": "ShowLayer" @@ -2686,37 +2301,6 @@ "\"Transition\"" ] }, - { - "type": { - "value": "HideLayer" - }, - "parameters": [ - "", - "\"Gameover\"" - ] - }, - { - "type": { - "value": "BuiltinExternalLayouts::CreateObjectsFromExternalLayout" - }, - "parameters": [ - "", - "\"Gameover\"", - "0", - "0" - ] - }, - { - "type": { - "value": "BuiltinExternalLayouts::CreateObjectsFromExternalLayout" - }, - "parameters": [ - "", - "\"SubmitScore\"", - "0", - "0" - ] - }, { "type": { "value": "Tween::TweenBehavior::AddObjectOpacityTween2" @@ -3593,285 +3177,104 @@ }, { "type": { - "value": "ShowLayer" + "value": "Cache" + }, + "parameters": [ + "CurrentScore" + ] + }, + { + "type": { + "value": "BuiltinExternalLayouts::CreateObjectsFromExternalLayout" }, "parameters": [ "", - "\"Gameover\"" + "\"Gameover\"", + "0", + "0" ] }, { "type": { - "value": "Cache" + "value": "ShowLayer" }, "parameters": [ - "CurrentScore" + "", + "\"Gameover\"" ] }, { "type": { - "value": "Cache" + "value": "LeaderboardDialog::LeaderboardDialog::SetScore" }, "parameters": [ - "HighScoreChanged" + "LeaderboardDialog", + "=", + "Score", + "" ] }, { "type": { - "value": "TextContainerCapability::TextContainerBehavior::SetValue" + "value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName" }, "parameters": [ - "FinalScore", - "Text", + "LeaderboardDialog", "=", - "\"Score: \" + Score" + "PlayerName", + "" ] } - ], - "events": [ + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::IsRestartClicked" }, - "comment": "Read the previous best score from the storage" - }, + "parameters": [ + "LeaderboardDialog", + "" + ] + } + ], + "actions": [ { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "GroupExists" - }, - "parameters": [ - "\"save\"", - "\"high_score\"" - ] - } - ], - "actions": [ - { - "type": { - "value": "LireFichierExp" - }, - "parameters": [ - "\"save\"", - "\"high_score\"", - "", - "PreviousBestScore" - ] - }, - { - "type": { - "value": "TextContainerCapability::TextContainerBehavior::SetValue" - }, - "parameters": [ - "HighScore", - "Text", - "=", - "\"Best: \" + PreviousBestScore" - ] - } + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"Game\"", + "" ] - }, + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::IsScoreSubmitted" }, - "comment": "Check if this is a new best score" - }, + "parameters": [ + "LeaderboardDialog", + "" + ] + } + ], + "actions": [ { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "NumberVariable" - }, - "parameters": [ - "Score", - ">=", - "PreviousBestScore" - ] - } - ], - "actions": [ - { - "type": { - "value": "EcrireFichierExp" - }, - "parameters": [ - "\"save\"", - "\"high_score\"", - "Score" - ] - }, - { - "type": { - "value": "Montre" - }, - "parameters": [ - "HighScoreChanged", - "" - ] - } - ] - }, - { - "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": "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": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PlayerAuthentication::HasPlayerLoggedIn" - }, - "parameters": [] - } - ], - "actions": [ - { - "type": { - "value": "TextContainerCapability::TextContainerBehavior::SetValue" - }, - "parameters": [ - "PlayerNameInput", - "Text", - "=", - "PlayerAuthentication::Username()" - ] - }, - { - "type": { - "value": "TextInput::TextInputObject::SetDisabled" - }, - "parameters": [ - "PlayerNameInput", - "yes" - ] - }, - { - "type": { - "value": "PlayerAuthentication::DisplayAuthenticationBanner" - }, - "parameters": [ - "" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" - }, - "parameters": [ - "RestartButton", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::HideAuthenticationBanner" - }, - "parameters": [ - "" + "type": { + "value": "SetStringVariable" + }, + "parameters": [ + "PlayerName", + "=", + "LeaderboardDialog.PlayerName()" ] }, { @@ -3885,290 +3288,1499 @@ ] } ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" - }, - "parameters": [ - "SubmitScoreButton", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "PlayerAuthentication::HideAuthenticationBanner" - }, - "parameters": [ - "" - ] - } - ], - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "PlayerAuthentication::IsPlayerAuthenticated" - }, - "parameters": [] - } - ], - "actions": [ - { - "type": { - "value": "Leaderboards::SaveConnectedPlayerScore" - }, - "parameters": [ - "", - "\"33ae5fd6-a214-4948-99da-3edd4d363ca3\"", - "Score" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "inverted": true, - "value": "PlayerAuthentication::IsPlayerAuthenticated" - }, - "parameters": [] - } - ], - "actions": [ - { - "type": { - "value": "Leaderboards::SavePlayerScore" - }, - "parameters": [ - "", - "\"33ae5fd6-a214-4948-99da-3edd4d363ca3\"", - "Score", - "PlayerNameInput.Text()" - ] - }, - { - "type": { - "value": "SetStringVariable" - }, - "parameters": [ - "PlayerName", - "=", - "PlayerNameInput.Text()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "Leaderboards::DisplayLeaderboard" - }, - "parameters": [ - "", - "\"33ae5fd6-a214-4948-99da-3edd4d363ca3\"", - "yes" - ] - } - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "Leaderboards::HasPlayerJustClosedLeaderboardView" - }, - "parameters": [] - }, - { - "type": { - "value": "Leaderboards::HasLastSaveSucceeded" - }, - "parameters": [ - "\"33ae5fd6-a214-4948-99da-3edd4d363ca3\"" - ] - } - ], - "actions": [ - { - "type": { - "value": "Scene" - }, - "parameters": [ - "", - "\"Game\"", + } + ] + } + ], + "parameters": [] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "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": [] + }, + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, + "cameraType": "perspective", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "GUI", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + }, + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, + "cameraType": "perspective", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "Gameover", + "renderingType": "", + "visibility": true, + "cameras": [], + "effects": [] + }, + { + "ambientLightColorB": 10569584, + "ambientLightColorG": 6042736, + "ambientLightColorR": 8563432, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, + "cameraType": "perspective", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "Transition", + "renderingType": "", + "visibility": false, + "cameras": [], + "effects": [] + } + ], + "behaviorsSharedData": [ + { + "name": "Animation", + "type": "AnimatableCapability::AnimatableBehavior" + }, + { + "name": "Effect", + "type": "EffectCapability::EffectBehavior" + }, + { + "name": "EllipseMovement", + "type": "EllipseMovement::EllipseMovement" + }, + { + "name": "Flash", + "type": "Flash::Flash" + }, + { + "name": "Flippable", + "type": "FlippableCapability::FlippableBehavior" + }, + { + "name": "Opacity", + "type": "OpacityCapability::OpacityBehavior" + }, + { + "name": "PlatformerObject", + "type": "PlatformBehavior::PlatformerObjectBehavior" + }, + { + "name": "Resizable", + "type": "ResizableCapability::ResizableBehavior" + }, + { + "name": "Scale", + "type": "ScalableCapability::ScalableBehavior" + }, + { + "name": "Text", + "type": "TextContainerCapability::TextContainerBehavior" + }, + { + "name": "Tween", + "type": "Tween::TweenBehavior" + } + ] + } + ], + "externalEvents": [], + "eventsFunctionsExtensions": [ + { + "author": "", + "category": "", + "extensionNamespace": "", + "fullName": "", + "helpPath": "", + "iconUrl": "", + "name": "LeaderboardDialog", + "previewIconUrl": "", + "shortDescription": "", + "version": "", + "description": "", + "tags": [], + "authorIds": [], + "dependencies": [], + "globalVariables": [], + "sceneVariables": [], + "eventsFunctions": [], + "eventsBasedBehaviors": [], + "eventsBasedObjects": [ + { + "areaMaxX": 300, + "areaMaxY": 256, + "areaMaxZ": 48, + "areaMinX": 0, + "areaMinY": 0, + "areaMinZ": 0, + "defaultName": "", + "description": "", + "fullName": "", + "isUsingLegacyInstancesRenderer": false, + "name": "LeaderboardDialog", + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "onCreated", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::SetScore" + }, + "parameters": [ + "Object", + "=", + "0", + "" + ] + }, + { + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName" + }, + "parameters": [ + "Object", + "=", + "DefaultPlayerName", + "" + ] + }, + { + "type": { + "value": "PlayerAuthentication::DisplayAuthenticationBanner" + }, + "parameters": [ + "" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "HighScoreChanged" + ] + } + ] + }, + { + "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" ] } ] } - ] + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "supplementaryInformation": "LeaderboardDialog::LeaderboardDialog", + "type": "object" + } + ], + "objectGroups": [] + }, + { + "fullName": "", + "functionType": "Action", + "name": "doStepPostEvents", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PlayerAuthentication::HasPlayerLoggedIn" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "PlayerNameInput", + "Text", + "=", + "PlayerAuthentication::Username()" + ] + }, + { + "type": { + "value": "TextInput::TextInputObject::SetDisabled" + }, + "parameters": [ + "PlayerNameInput", + "yes" + ] + }, + { + "type": { + "value": "PlayerAuthentication::DisplayAuthenticationBanner" + }, + "parameters": [ + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "Leaderboards::IsLeaderboardViewErrored" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "PlayerAuthentication::DisplayAuthenticationBanner" + }, + "parameters": [ + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "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": "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" + ] + } + ] + } + ] + } + ], + "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" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Read the previous best score from the storage" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "GroupExists" + }, + "parameters": [ + "\"save\"", + "\"high_score\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "ReadNumberFromStorage" + }, + "parameters": [ + "\"save\"", + "\"high_score\"", + "", + "PreviousBestScore" + ] + }, + { + "type": { + "value": "TextContainerCapability::TextContainerBehavior::SetValue" + }, + "parameters": [ + "HighScore", + "Text", + "=", + "\"Best: \" + PreviousBestScore" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Check if this is a new best score" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "LeaderboardDialog::LeaderboardDialog::Score" + }, + "parameters": [ + "Object", + ">=", + "PreviousBestScore", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "EcrireFichierExp" + }, + "parameters": [ + "\"save\"", + "\"high_score\"", + "Score" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "HighScoreChanged", + "" + ] + } + ] + } + ], + "variables": [ + { + "name": "PreviousBestScore", + "type": "number", + "value": 0 + } + ] + } + ], + "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": [] + } + ], + "propertyDescriptors": [ + { + "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" + } + ], + "objects": [ + { + "assetStoreId": "", + "name": "SubmitButton", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "TopPadding": 4, + "LeftPadding": 4, + "RightPadding": 4, + "BottomPadding": 8, + "HoveredFadeOutDuration": 0 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 0, + "height": 40, + "leftMargin": 0, + "rightMargin": 0, + "texture": "assets\\buttonSmall.png", + "tiled": false, + "topMargin": 0, + "width": 68 + }, + "Idle": { + "bottomMargin": 0, + "height": 40, + "leftMargin": 0, + "rightMargin": 0, + "texture": "assets\\buttonSmall.png", + "tiled": false, + "topMargin": 0, + "width": 68 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Submit", + "font": "04B_19__.TTF", + "textAlignment": "center", + "characterSize": 15, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": true, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "0;0;0", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "Submit", + "font": "04B_19__.TTF", + "textAlignment": "center", + "verticalTextAlignment": "top", + "characterSize": 15, + "color": "255;255;255" + } + }, + "Pressed": { + "bottomMargin": 0, + "height": 40, + "leftMargin": 0, + "rightMargin": 0, + "texture": "assets\\buttonSmall.png", + "tiled": false, + "topMargin": 0, + "width": 68 + } + } + }, + { + "assetStoreId": "", + "name": "PlayerNameInput", + "type": "TextInput::TextInputObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "initialValue": "", + "placeholder": "Touch to start typing", + "fontResourceName": "04B_19__.TTF", + "fontSize": 20, + "inputType": "text", + "textColor": "0;0;0", + "fillColor": "255;255;255", + "fillOpacity": 255, + "borderColor": "0;0;0", + "borderOpacity": 255, + "borderWidth": 1, + "readOnly": false, + "disabled": false + } + }, + { + "assetStoreId": "", + "name": "RestartButton", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "TopPadding": 4, + "LeftPadding": 4, + "RightPadding": 4, + "BottomPadding": 8, + "HoveredFadeOutDuration": 0 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 0, + "height": 40, + "leftMargin": 0, + "rightMargin": 0, + "texture": "assets\\buttonSmall.png", + "tiled": false, + "topMargin": 0, + "width": 68 + }, + "Idle": { + "bottomMargin": 0, + "height": 40, + "leftMargin": 0, + "rightMargin": 0, + "texture": "assets\\buttonSmall.png", + "tiled": false, + "topMargin": 0, + "width": 68 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Restart", + "font": "04B_19__.TTF", + "textAlignment": "center", + "characterSize": 15, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": true, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "0;0;0", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "Restart", + "font": "04B_19__.TTF", + "textAlignment": "center", + "verticalTextAlignment": "top", + "characterSize": 15, + "color": "255;255;255" + } + }, + "Pressed": { + "bottomMargin": 0, + "height": 40, + "leftMargin": 0, + "rightMargin": 0, + "texture": "assets\\buttonSmall.png", + "tiled": false, + "topMargin": 0, + "width": 68 + } + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "HighScoreChanged", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "ShakeObject_PositionAngle", + "type": "ShakeObject::ShakeObject_PositionAngle" + } + ], + "string": "New Highscore!", + "font": "04B_19__.TTF", + "textAlignment": "", + "characterSize": 20, + "color": { + "b": 0, + "g": 0, + "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": "New Highscore!", + "font": "04B_19__.TTF", + "textAlignment": "", + "verticalTextAlignment": "top", + "characterSize": 20, + "color": "255;0;0" + } + }, + { + "adaptCollisionMaskAutomatically": false, + "assetStoreId": "", + "name": "Medal", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "assets\\medalGold.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": "ScoreLabel", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Score: 0", + "font": "04B_19__.TTF", + "textAlignment": "", + "characterSize": 22, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": true, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "0;0;0", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "Score: 0", + "font": "04B_19__.TTF", + "textAlignment": "", + "verticalTextAlignment": "top", + "characterSize": 22, + "color": "255;255;255" + } + }, + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "HighScore", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Highscore: 0", + "font": "04B_19__.TTF", + "textAlignment": "", + "characterSize": 22, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": false, + "isOutlineEnabled": true, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "0;0;0", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "Highscore: 0", + "font": "04B_19__.TTF", + "textAlignment": "", + "verticalTextAlignment": "top", + "characterSize": 22, + "color": "255;255;255" + } + }, + { + "assetStoreId": "", + "bottomMargin": 10, + "height": 32, + "leftMargin": 10, + "name": "GameOverBackground", + "rightMargin": 10, + "texture": "assets\\UIbg.png", + "tiled": true, + "topMargin": 10, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "GameOverBackground" + }, + { + "objectName": "Medal" + }, + { + "objectName": "HighScore" + }, + { + "objectName": "ScoreLabel" + }, + { + "objectName": "HighScoreChanged" + }, + { + "objectName": "RestartButton" + }, + { + "objectName": "PlayerNameInput" + }, + { + "objectName": "SubmitButton" + } + ] + }, + "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": [] } ], - "parameters": [] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 0.1, - "cameraType": "perspective", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ + "instances": [ { - "defaultSize": true, - "defaultViewport": true, + "angle": 0, + "customSize": true, + "height": 256, + "layer": "", + "name": "GameOverBackground", + "persistentUuid": "03fc6fee-1fae-442a-b01b-60c427ea3ff7", + "width": 300, + "x": 0, + "y": 0, + "zOrder": 0, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 24, + "layer": "", + "name": "HighScore", + "persistentUuid": "5e642467-3a13-4ee5-b78d-a527b3d2408f", + "width": 162, + "x": 135, + "y": 26, + "zOrder": 6, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 27, + "layer": "", + "name": "ScoreLabel", + "persistentUuid": "75cf5a86-ba1b-46ac-80ee-a9bec1727479", + "width": 134, + "x": 135, + "y": 63, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 60, + "layer": "", + "name": "Medal", + "persistentUuid": "771fefe5-b035-4ded-93c7-b93c07dfdbaa", + "width": 57, + "x": 15, + "y": 15, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - }, - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 0.1, - "cameraType": "perspective", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "GUI", - "renderingType": "", - "visibility": true, - "cameras": [ + "layer": "", + "name": "HighScoreChanged", + "persistentUuid": "1f108654-2a5b-4d13-879b-5865dd45d792", + "width": 0, + "x": 135, + "y": 100, + "zOrder": 13, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, { - "defaultSize": true, - "defaultViewport": true, + "angle": 0, + "customSize": false, "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 + "layer": "", + "name": "RestartButton", + "persistentUuid": "5c42ce36-97f5-4c77-8e1b-6562b86407b4", + "width": 0, + "x": 25, + "y": 202, + "zOrder": 22, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "height": 30, + "layer": "", + "name": "PlayerNameInput", + "persistentUuid": "56f0bab1-1656-4999-85c4-9e24cfac73bc", + "width": 250, + "x": 25, + "y": 150, + "zOrder": 25, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "SubmitButton", + "persistentUuid": "65924bc8-c391-4021-95a0-912fac6a4866", + "width": 0, + "x": 207, + "y": 202, + "zOrder": 26, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] } - ], - "effects": [] - }, - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 0.1, - "cameraType": "perspective", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "Gameover", - "renderingType": "", - "visibility": true, - "cameras": [], - "effects": [] - }, - { - "ambientLightColorB": 10569584, - "ambientLightColorG": 6042736, - "ambientLightColorR": 8563432, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 0.1, - "cameraType": "perspective", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "Transition", - "renderingType": "", - "visibility": false, - "cameras": [], - "effects": [] - } - ], - "behaviorsSharedData": [ - { - "name": "Animation", - "type": "AnimatableCapability::AnimatableBehavior" - }, - { - "name": "Effect", - "type": "EffectCapability::EffectBehavior" - }, - { - "name": "EllipseMovement", - "type": "EllipseMovement::EllipseMovement" - }, - { - "name": "Flash", - "type": "Flash::Flash" - }, - { - "name": "Flippable", - "type": "FlippableCapability::FlippableBehavior" - }, - { - "name": "Opacity", - "type": "OpacityCapability::OpacityBehavior" - }, - { - "name": "PlatformerObject", - "type": "PlatformBehavior::PlatformerObjectBehavior" - }, - { - "name": "Resizable", - "type": "ResizableCapability::ResizableBehavior" - }, - { - "name": "Scale", - "type": "ScalableCapability::ScalableBehavior" - }, - { - "name": "ShakeObject_PositionAngle", - "type": "ShakeObject::ShakeObject_PositionAngle" - }, - { - "name": "Text", - "type": "TextContainerCapability::TextContainerBehavior" - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior" + ] } ] - } - ], - "externalEvents": [], - "eventsFunctionsExtensions": [ + }, { "author": "@4ian, Tristan Rhodes (https://victrisgames.itch.io/)", "category": "Movement", @@ -8237,6 +8849,7 @@ "text": "Text", "font": "", "textAlignment": "", + "verticalTextAlignment": "top", "characterSize": 20, "color": "0;0;0" } @@ -15789,122 +16402,18 @@ "associatedLayout": "Game", "name": "Gameover", "instances": [ - { - "angle": 0, - "customSize": true, - "height": 256, - "layer": "Gameover", - "name": "GameOverBackground", - "persistentUuid": "9c278be9-9804-4c75-9c30-85157d67307d", - "width": 300, - "x": 50, - "y": 170, - "zOrder": 0, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 24, - "layer": "Gameover", - "name": "HighScore", - "persistentUuid": "32adc35d-c606-4024-9f2d-af64a70efb1d", - "width": 162, - "x": 185, - "y": 196, - "zOrder": 6, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 27, - "layer": "Gameover", - "name": "FinalScore", - "persistentUuid": "3511b3b4-9c5c-42d3-b2c5-78f1afd134fd", - "width": 134, - "x": 185, - "y": 233, - "zOrder": 7, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 60, - "layer": "Gameover", - "name": "Medal", - "persistentUuid": "0a0735ed-79d0-4edc-844f-b4f16b6683b6", - "width": 57, - "x": 65, - "y": 185, - "zOrder": 10, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "Gameover", - "name": "HighScoreChanged", - "persistentUuid": "17148fbd-c3bf-417c-989e-1c1309c92a08", - "width": 0, - "x": 185, - "y": 270, - "zOrder": 13, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": false, - "height": 0, - "layer": "Gameover", - "name": "RestartButton", - "persistentUuid": "263cb551-7525-4859-8bc9-9b9f79d7824f", - "width": 0, - "x": 75, - "y": 372, - "zOrder": 22, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "height": 30, - "layer": "Gameover", - "name": "PlayerNameInput", - "persistentUuid": "68a0a4c5-6e94-42b5-ac66-73a3e5b50f02", - "width": 250, - "x": 75, - "y": 320, - "zOrder": 25, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, { "angle": 0, "customSize": false, "height": 0, + "keepRatio": true, "layer": "Gameover", - "name": "SubmitScoreButton", - "persistentUuid": "3707ca62-3c24-4ec4-ac2f-3e83aceb536e", + "name": "GameOver", + "persistentUuid": "aac3c188-c51a-496d-a3b1-5bb0f35bd14c", "width": 0, - "x": 257, - "y": 372, - "zOrder": 26, + "x": 18, + "y": 73, + "zOrder": 27, "numberProperties": [], "stringProperties": [], "initialVariables": [] @@ -15915,12 +16424,12 @@ "height": 0, "keepRatio": true, "layer": "Gameover", - "name": "GameOver", - "persistentUuid": "aac3c188-c51a-496d-a3b1-5bb0f35bd14c", + "name": "LeaderboardDialog", + "persistentUuid": "9d01d4c2-9e36-450b-8ef9-7f0c602f7f86", "width": 0, - "x": 18, - "y": 73, - "zOrder": 27, + "x": 50, + "y": 170, + "zOrder": 26, "numberProperties": [], "stringProperties": [], "initialVariables": []