LoginSignup
0
1

More than 5 years have passed since last update.

Moonblockで模様作成(JavaScript)

Last updated at Posted at 2017-04-13
1 / 2

http://moonblock.jp/#s/58ef31aaa4ba51492070826
↑このURLに接続してください。
Java Scriptで書くと次のコードです。
[{
"x": -359,
"y": 190,
"constructorName": "PuppetBlock",
"variables": {
"name": "ばくはつ",
"fold": "+",
"image": "effect0.gif",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "FrameSequenceBlock",
"variables": {
"sequence": [0, 1, 2, 3, 4],
"times": "2"
},
"next": null
}
}
}, {
"x": -152,
"y": 267,
"constructorName": "PuppetBlock",
"variables": {
"name": "アイコン",
"fold": "-",
"image": "icon0.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "FrameSequenceBlock",
"variables": {
"sequence": [24],
"times": "2"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "standAlone",
"interval": "30",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "MoveBlock",
"variables": {
"type": "tapMove",
"zigzagdirection": "X",
"tapdirection": "",
"movedirection": "Left",
"dx": "0",
"dy": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ListenerBlock",
"variables": {
"eventType": "enterframe",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SetTimeoutBlock",
"variables": {
"time": "1",
"fold": "-",
"thenDo": {
"x": 0,
"y": 0,
"constructorName": "NewPuppetBlock",
"variables": {
"name": "ばくはつ",
"fold": "-",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "standAlone",
"interval": "30",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "SpecialBlock",
"variables": {
"type": "biggerdir",
"biggerdir": "",
"smallerdir": "",
"rotdir": "5"
},
"next": null
}
}
},
"next": null
}
},
"next": null
}
},
"next": null
}
}
}
}
}
}]

0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1