-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathmario.json
93 lines (93 loc) · 2.38 KB
/
mario.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"$jason": {
"head": {
"title": "Mario",
"actions": {
"$load": {
"type": "$set",
"options": {
"index": "0",
"frame": "0"
},
"success": {
"type": "$timer.start",
"options": {
"interval": "1",
"name": "mario",
"repeats": "true",
"action": {
"trigger": "tick"
}
}
}
},
"tick": {
"type": "$set",
"options": {
"index": "{{'' + ((parseInt($get.index) + 1)%2)}}",
"frame": "{{'' + ((parseInt($get.frame) + 5)%500)}}"
},
"success": {
"type": "$render"
}
}
},
"templates": {
"body": {
"style": {
"background": "#000000",
"color": "#ffffff",
"border": "none"
},
"header": {
"style": {
"background": "#000000",
"color": "#ffffff"
},
"menu": {
"text": "View JSON",
"href": {
"url": "https://github.com/Jasonette/Jasonpedia/blob/gh-pages/action/timer/mario.json",
"view": "web"
}
}
},
"sections": [{
"items": [{
"type": "vertical",
"style": {
"spacing": "10"
},
"components": [{
"type": "label",
"text": "FRAME\nhttps://jasonette.github.io/Jasonpedia/assets/{{$get.index}}.png",
"style": {
"font": "Courier",
"size": "12",
"color": "#ebebeb"
}
}, {
"type": "label",
"text": "COORD\n{{$get.frame}}",
"style": {
"font": "Courier",
"size": "12",
"color": "#ebebeb"
}
}]
}]
}],
"layers": [{
"type": "image",
"url": "https://jasonette.github.io/Jasonpedia/assets/{{$get.index}}.png",
"style": {
"top": "50%",
"left": "{{$get.frame}}",
"height": "50"
}
}]
}
}
}
}
}