Skip to content

Commit b160398

Browse files
committed
Always display leaderboard in examples
* Also fix "heighscore" typo * Also fix title screens * Also add prompt to turn screen if needed
1 parent d334433 commit b160398

File tree

13 files changed

+2308
-301
lines changed

13 files changed

+2308
-301
lines changed

examples/3d-car-coin-hunt/3d-car-coin-hunt.json

Lines changed: 19 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -803,13 +803,13 @@
803803
"effects": [],
804804
"behaviors": [
805805
{
806+
"name": "Anchor",
807+
"type": "AnchorBehavior::AnchorBehavior",
806808
"bottomEdgeAnchor": 0,
807809
"leftEdgeAnchor": 1,
808-
"name": "Anchor",
809810
"relativeToOriginalWindowSize": true,
810811
"rightEdgeAnchor": 2,
811812
"topEdgeAnchor": 0,
812-
"type": "AnchorBehavior::AnchorBehavior",
813813
"useLegacyBottomAndRightAnchors": false
814814
}
815815
],
@@ -855,13 +855,13 @@
855855
"effects": [],
856856
"behaviors": [
857857
{
858+
"name": "Anchor",
859+
"type": "AnchorBehavior::AnchorBehavior",
858860
"bottomEdgeAnchor": 0,
859861
"leftEdgeAnchor": 1,
860-
"name": "Anchor",
861862
"relativeToOriginalWindowSize": true,
862863
"rightEdgeAnchor": 2,
863864
"topEdgeAnchor": 0,
864-
"type": "AnchorBehavior::AnchorBehavior",
865865
"useLegacyBottomAndRightAnchors": false
866866
}
867867
]
@@ -874,13 +874,13 @@
874874
"effects": [],
875875
"behaviors": [
876876
{
877+
"name": "Anchor",
878+
"type": "AnchorBehavior::AnchorBehavior",
877879
"bottomEdgeAnchor": 0,
878880
"leftEdgeAnchor": 4,
879-
"name": "Anchor",
880881
"relativeToOriginalWindowSize": true,
881882
"rightEdgeAnchor": 0,
882883
"topEdgeAnchor": 0,
883-
"type": "AnchorBehavior::AnchorBehavior",
884884
"useLegacyBottomAndRightAnchors": false
885885
}
886886
],
@@ -3440,24 +3440,22 @@
34403440
"Physics2",
34413441
"0.5"
34423442
]
3443+
},
3444+
{
3445+
"type": {
3446+
"value": "SetNumberVariable"
3447+
},
3448+
"parameters": [
3449+
"Score",
3450+
"=",
3451+
"TimerElapsedTime(\"Time\")"
3452+
]
34433453
}
34443454
],
34453455
"events": [
34463456
{
34473457
"type": "BuiltinCommonInstructions::Standard",
3448-
"conditions": [
3449-
{
3450-
"type": {
3451-
"value": "CompareTimer"
3452-
},
3453-
"parameters": [
3454-
"",
3455-
"\"Time\"",
3456-
">=",
3457-
"HighScore"
3458-
]
3459-
}
3460-
],
3458+
"conditions": [],
34613459
"actions": [
34623460
{
34633461
"type": {
@@ -3473,7 +3471,7 @@
34733471
},
34743472
"parameters": [
34753473
"",
3476-
"\"Game\"",
3474+
"\"Leaderboard\"",
34773475
""
34783476
]
34793477
}
@@ -3520,17 +3518,7 @@
35203518
"parameters": [
35213519
"HighScore",
35223520
"=",
3523-
"TimerElapsedTime(\"Time\")"
3524-
]
3525-
},
3526-
{
3527-
"type": {
3528-
"value": "SetNumberVariable"
3529-
},
3530-
"parameters": [
3531-
"Score",
3532-
"=",
3533-
"HighScore"
3521+
"Score"
35343522
]
35353523
},
35363524
{
@@ -3551,24 +3539,6 @@
35513539
"BestTimeText",
35523540
"\"248;231;28\""
35533541
]
3554-
},
3555-
{
3556-
"type": {
3557-
"value": "Wait"
3558-
},
3559-
"parameters": [
3560-
"1.5"
3561-
]
3562-
},
3563-
{
3564-
"type": {
3565-
"value": "Scene"
3566-
},
3567-
"parameters": [
3568-
"",
3569-
"\"Leaderboard\"",
3570-
""
3571-
]
35723542
}
35733543
]
35743544
}

0 commit comments

Comments
 (0)