3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

新しいゲームを作りました。(JavaScript)

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

新しいゲームを作りました。改善点はコメントお願いします。
http://moonblock.jp/#s/58f5d1c63c3bc1492505030
コードは次です。

[{
    "x": 324,
    "y": 172,
    "constructorName": "PuppetBlock",
    "variables": {
        "name": "くま",
        "fold": "-",
        "image": "chara1.png",
        "behavior": {
            "x": 0,
            "y": 0,
            "constructorName": "FrameSequenceBlock",
            "variables": {
                "sequence": [0],
                "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": "tapChase",
                        "zigzagdirection": "X",
                        "tapdirection": "X",
                        "movedirection": "Left",
                        "dx": "0",
                        "dy": "0"
                    },
                    "next": {
                        "x": 0,
                        "y": 0,
                        "constructorName": "TargetHitBlock",
                        "variables": {
                            "className": "アイコン",
                            "fold": "-",
                            "handler": {
                                "x": 0,
                                "y": 0,
                                "constructorName": "ScoreBlock",
                                "variables": {
                                    "value": "15"
                                },
                                "next": null
                            }
                        },
                        "next": {
                            "x": 0,
                            "y": 0,
                            "constructorName": "TargetHitBlock",
                            "variables": {
                                "className": "アイコン_2",
                                "fold": "-",
                                "handler": {
                                    "x": 0,
                                    "y": 0,
                                    "constructorName": "DieBlock",
                                    "variables": {},
                                    "next": {
                                        "x": 0,
                                        "y": 0,
                                        "constructorName": "NewPuppetBlock",
                                        "variables": {
                                            "name": "くま_2",
                                            "fold": "-",
                                            "behavior": {
                                                "x": 0,
                                                "y": 0,
                                                "constructorName": "DisplayBlock",
                                                "variables": {
                                                    "appeartype": "standAlone",
                                                    "interval": "30",
                                                    "initial": "10"
                                                },
                                                "next": {
                                                    "x": 0,
                                                    "y": 0,
                                                    "constructorName": "MoveBlock",
                                                    "variables": {
                                                        "type": "tapChase",
                                                        "zigzagdirection": "X",
                                                        "tapdirection": "X",
                                                        "movedirection": "Left",
                                                        "dx": "0",
                                                        "dy": "0"
                                                    },
                                                    "next": {
                                                        "x": 0,
                                                        "y": 0,
                                                        "constructorName": "TargetHitBlock",
                                                        "variables": {
                                                            "className": "アイコン_2",
                                                            "fold": "-",
                                                            "handler": {
                                                                "x": 0,
                                                                "y": 0,
                                                                "constructorName": "ScoreBlock",
                                                                "variables": {
                                                                    "value": "30"
                                                                },
                                                                "next": null
                                                            }
                                                        },
                                                        "next": {
                                                            "x": 0,
                                                            "y": 0,
                                                            "constructorName": "TargetHitBlock",
                                                            "variables": {
                                                                "className": "アイコン",
                                                                "fold": "-",
                                                                "handler": {
                                                                    "x": 0,
                                                                    "y": 0,
                                                                    "constructorName": "ScoreBlock",
                                                                    "variables": {
                                                                        "value": "40"
                                                                    },
                                                                    "next": null
                                                                }
                                                            },
                                                            "next": null
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "next": null
                                    }
                                }
                            },
                            "next": null
                        }
                    }
                }
            }
        }
    }
}, {
    "x": 738,
    "y": 307,
    "constructorName": "PuppetBlock",
    "variables": {
        "name": "アイコン_2",
        "fold": "-",
        "image": "icon0.png",
        "behavior": {
            "x": 0,
            "y": 0,
            "constructorName": "FrameSequenceBlock",
            "variables": {
                "sequence": [19, 20, 20, 19],
                "times": "2"
            },
            "next": {
                "x": 0,
                "y": 0,
                "constructorName": "FrameBlock",
                "variables": {
                    "prop": "speed",
                    "value": "50"
                },
                "next": {
                    "x": 0,
                    "y": 0,
                    "constructorName": "DisplayBlock",
                    "variables": {
                        "appeartype": "randomAppearTop",
                        "interval": "300",
                        "initial": "10"
                    },
                    "next": {
                        "x": 0,
                        "y": 0,
                        "constructorName": "TargetHitBlock",
                        "variables": {
                            "className": "くま",
                            "fold": "-",
                            "handler": {
                                "x": 0,
                                "y": 0,
                                "constructorName": "DieBlock",
                                "variables": {},
                                "next": null
                            }
                        },
                        "next": {
                            "x": 0,
                            "y": 0,
                            "constructorName": "TargetHitBlock",
                            "variables": {
                                "className": "くま_2",
                                "fold": "-",
                                "handler": {
                                    "x": 0,
                                    "y": 0,
                                    "constructorName": "DieBlock",
                                    "variables": {},
                                    "next": null
                                }
                            },
                            "next": null
                        }
                    }
                }
            }
        }
    }
}, {
    "x": 329,
    "y": 17,
    "constructorName": "PuppetBlock",
    "variables": {
        "name": "くま_2",
        "fold": "-",
        "image": "chara1.png",
        "behavior": {
            "x": 0,
            "y": 0,
            "constructorName": "FrameSequenceBlock",
            "variables": {
                "sequence": [6, 7],
                "times": "2"
            },
            "next": null
        }
    }
}, {
    "x": 344,
    "y": -105,
    "constructorName": "TimerBoardBlock",
    "variables": {
        "countdir": "countdown",
        "fold": "-",
        "seconds": "120",
        "behavior": null
    }
}, {
    "x": 350,
    "y": -140,
    "constructorName": "BackgroundBlock",
    "variables": {
        "bgsrc": "rpg.png",
        "imgUrl": ""
    }
}, {
    "x": 742,
    "y": -167,
    "constructorName": "PuppetBlock",
    "variables": {
        "name": "アイコン",
        "fold": "-",
        "image": "icon0.png",
        "behavior": {
            "x": 0,
            "y": 0,
            "constructorName": "FrameSequenceBlock",
            "variables": {
                "sequence": [15],
                "times": "2"
            },
            "next": {
                "x": 0,
                "y": 0,
                "constructorName": "DisplayBlock",
                "variables": {
                    "appeartype": "randomAppearTop",
                    "interval": "30",
                    "initial": "10"
                },
                "next": {
                    "x": 0,
                    "y": 0,
                    "constructorName": "FrameBlock",
                    "variables": {
                        "prop": "speed",
                        "value": "50"
                    },
                    "next": {
                        "x": 0,
                        "y": 0,
                        "constructorName": "TargetHitBlock",
                        "variables": {
                            "className": "くま",
                            "fold": "-",
                            "handler": {
                                "x": 0,
                                "y": 0,
                                "constructorName": "DieBlock",
                                "variables": {},
                                "next": null
                            }
                        },
                        "next": {
                            "x": 0,
                            "y": 0,
                            "constructorName": "TargetHitBlock",
                            "variables": {
                                "className": "くま_2",
                                "fold": "-",
                                "handler": {
                                    "x": 0,
                                    "y": 0,
                                    "constructorName": "DieBlock",
                                    "variables": {},
                                    "next": null
                                }
                            },
                            "next": null
                        }
                    }
                }
            }
        }
    }
}, {
    "x": 732,
    "y": 783,
    "constructorName": "ScoreBoardBlock",
    "variables": {
        "fold": "-",
        "behavior": null
    }
}]

(Java Sprict)

3
5
4

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
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?