Skip to content

Commit

Permalink
Always display leaderboard in examples
Browse files Browse the repository at this point in the history
* Also fix "heighscore" typo
* Also fix title screens
* Also add prompt to turn screen if needed
  • Loading branch information
4ian committed Nov 6, 2024
1 parent d334433 commit b160398
Show file tree
Hide file tree
Showing 13 changed files with 2,308 additions and 301 deletions.
68 changes: 19 additions & 49 deletions examples/3d-car-coin-hunt/3d-car-coin-hunt.json
Original file line number Diff line number Diff line change
Expand Up @@ -803,13 +803,13 @@
"effects": [],
"behaviors": [
{
"name": "Anchor",
"type": "AnchorBehavior::AnchorBehavior",
"bottomEdgeAnchor": 0,
"leftEdgeAnchor": 1,
"name": "Anchor",
"relativeToOriginalWindowSize": true,
"rightEdgeAnchor": 2,
"topEdgeAnchor": 0,
"type": "AnchorBehavior::AnchorBehavior",
"useLegacyBottomAndRightAnchors": false
}
],
Expand Down Expand Up @@ -855,13 +855,13 @@
"effects": [],
"behaviors": [
{
"name": "Anchor",
"type": "AnchorBehavior::AnchorBehavior",
"bottomEdgeAnchor": 0,
"leftEdgeAnchor": 1,
"name": "Anchor",
"relativeToOriginalWindowSize": true,
"rightEdgeAnchor": 2,
"topEdgeAnchor": 0,
"type": "AnchorBehavior::AnchorBehavior",
"useLegacyBottomAndRightAnchors": false
}
]
Expand All @@ -874,13 +874,13 @@
"effects": [],
"behaviors": [
{
"name": "Anchor",
"type": "AnchorBehavior::AnchorBehavior",
"bottomEdgeAnchor": 0,
"leftEdgeAnchor": 4,
"name": "Anchor",
"relativeToOriginalWindowSize": true,
"rightEdgeAnchor": 0,
"topEdgeAnchor": 0,
"type": "AnchorBehavior::AnchorBehavior",
"useLegacyBottomAndRightAnchors": false
}
],
Expand Down Expand Up @@ -3440,24 +3440,22 @@
"Physics2",
"0.5"
]
},
{
"type": {
"value": "SetNumberVariable"
},
"parameters": [
"Score",
"=",
"TimerElapsedTime(\"Time\")"
]
}
],
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "CompareTimer"
},
"parameters": [
"",
"\"Time\"",
">=",
"HighScore"
]
}
],
"conditions": [],
"actions": [
{
"type": {
Expand All @@ -3473,7 +3471,7 @@
},
"parameters": [
"",
"\"Game\"",
"\"Leaderboard\"",
""
]
}
Expand Down Expand Up @@ -3520,17 +3518,7 @@
"parameters": [
"HighScore",
"=",
"TimerElapsedTime(\"Time\")"
]
},
{
"type": {
"value": "SetNumberVariable"
},
"parameters": [
"Score",
"=",
"HighScore"
"Score"
]
},
{
Expand All @@ -3551,24 +3539,6 @@
"BestTimeText",
"\"248;231;28\""
]
},
{
"type": {
"value": "Wait"
},
"parameters": [
"1.5"
]
},
{
"type": {
"value": "Scene"
},
"parameters": [
"",
"\"Leaderboard\"",
""
]
}
]
}
Expand Down
Loading

0 comments on commit b160398

Please sign in to comment.