Skip to content

Commit 24f48ad

Browse files
committed
Preload animations in candy dash demo
1 parent 6af252e commit 24f48ad

1 file changed

Lines changed: 73 additions & 7 deletions

File tree

examples/candy_dash.flock

Lines changed: 73 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "procedures_defnoreturn",
77
"id": "%6CG-tkp5Z0nX(~e6^Z5",
88
"x": 10,
9-
"y": 1570,
9+
"y": 1752,
1010
"extraState": {
1111
"params": [
1212
{
@@ -1440,7 +1440,7 @@
14401440
"block": {
14411441
"type": "load_character",
14421442
"id": "?QNwo%JfFH4ReJd^g9j5",
1443-
"extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_do=\"false\"></mutation>",
1443+
"extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" has_do=\"true\"></mutation>",
14441444
"fields": {
14451445
"ID_VAR": {
14461446
"id": "{?OSO?CbNQqn6M#)_-vP"
@@ -1537,6 +1537,72 @@
15371537
"COLOR": "#ff6600"
15381538
}
15391539
}
1540+
},
1541+
"DO": {
1542+
"block": {
1543+
"type": "switch_animation",
1544+
"id": "E%-)(.Gf5Lfy9:ZvdaX[",
1545+
"fields": {
1546+
"MODEL": {
1547+
"id": "{?OSO?CbNQqn6M#)_-vP"
1548+
}
1549+
},
1550+
"inputs": {
1551+
"ANIMATION_NAME": {
1552+
"shadow": {
1553+
"type": "animation_name",
1554+
"id": "J5?C9/8b/ERhIhl{|HZD",
1555+
"fields": {
1556+
"ANIMATION_NAME": "Fall"
1557+
}
1558+
}
1559+
}
1560+
},
1561+
"next": {
1562+
"block": {
1563+
"type": "switch_animation",
1564+
"id": "q?{iom1/vDBXN~Zy(:!l",
1565+
"fields": {
1566+
"MODEL": {
1567+
"id": "{?OSO?CbNQqn6M#)_-vP"
1568+
}
1569+
},
1570+
"inputs": {
1571+
"ANIMATION_NAME": {
1572+
"shadow": {
1573+
"type": "animation_name",
1574+
"id": "vbt~ReGGtADC$qq_6#Mi",
1575+
"fields": {
1576+
"ANIMATION_NAME": "Run"
1577+
}
1578+
}
1579+
}
1580+
},
1581+
"next": {
1582+
"block": {
1583+
"type": "switch_animation",
1584+
"id": "$dQ7pubmOPvps5k~f140",
1585+
"fields": {
1586+
"MODEL": {
1587+
"id": "{?OSO?CbNQqn6M#)_-vP"
1588+
}
1589+
},
1590+
"inputs": {
1591+
"ANIMATION_NAME": {
1592+
"shadow": {
1593+
"type": "animation_name",
1594+
"id": "xbaMp6**gGq5wAd=BOoa",
1595+
"fields": {
1596+
"ANIMATION_NAME": "Idle"
1597+
}
1598+
}
1599+
}
1600+
}
1601+
}
1602+
}
1603+
}
1604+
}
1605+
}
15401606
}
15411607
},
15421608
"next": {
@@ -1604,7 +1670,7 @@
16041670
"type": "start",
16051671
"id": "/#J`?-.g=CCgmamcBCrk",
16061672
"x": 10,
1607-
"y": 1234,
1673+
"y": 1416,
16081674
"inputs": {
16091675
"DO": {
16101676
"block": {
@@ -1636,7 +1702,7 @@
16361702
"type": "procedures_defnoreturn",
16371703
"id": "[X?U)b{G)yd?8z-p(,tE",
16381704
"x": 10,
1639-
"y": 3100,
1705+
"y": 3282,
16401706
"fields": {
16411707
"NAME": "candy"
16421708
},
@@ -2952,7 +3018,7 @@
29523018
"type": "start",
29533019
"id": "}8B%x5IAHe;v9S:*]B!B",
29543020
"x": 10,
2955-
"y": 1402,
3021+
"y": 1584,
29563022
"inputs": {
29573023
"DO": {
29583024
"block": {
@@ -2969,7 +3035,7 @@
29693035
"type": "start",
29703036
"id": "I{qTHiAq|G(by?rggdUq",
29713037
"x": 10,
2972-
"y": 5360,
3038+
"y": 5542,
29733039
"inputs": {
29743040
"DO": {
29753041
"block": {
@@ -3569,7 +3635,7 @@
35693635
"type": "forever",
35703636
"id": "$$i@z!T[?b%=ld;r4{i_",
35713637
"x": 10,
3572-
"y": 6372,
3638+
"y": 6554,
35733639
"extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" inline=\"false\"></mutation>",
35743640
"inputs": {
35753641
"DO": {

0 commit comments

Comments
 (0)