このゲームを始めるには、まず上のリンクをクリックし左下あたりにあるRunボタンをクリックします。
次にその左側にあるスクリーンボタンをクリックして出てきた画面をクリックしたら始められます。
このゲームは、左右上下から迫りくるモンスターを華麗によけるだけの簡単なゲームです。
モンスターに30回当たるとゲームオーバーになってしまいます。
モンスターに当たるのを30回以内におさえて30秒耐えるとクリアです。
このゲームはmoonblockで作りました。
moonblockは教養としてのプログラミング講座
P.124~P.152を見てください。
[{
"x": -37, このプログラムは私のゲームのソースリストです。
"y": 223,
"constructorName": "PuppetBlock",
"variables": {
"name": "モンスター",
"fold": "+",
"image": "chara6.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "randomAppearTop",
"interval": "20",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "speed",
"value": "70"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "HitpointBlock",
"variables": {
"type": "dec",
"value": "1"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "CollisionBlock",
"variables": {
"className": "ナイト",
"whenHit": "\"hitAndDie\", ",
"score": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "incorrect.wav"
},
"next": null
}
},
"next": null
}
}
}
}
}
}
}, {
"x": 123,
"y": 223,
"constructorName": "PuppetBlock",
"variables": {
"name": "モンスター_2",
"fold": "+",
"image": "chara6.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "randomAppearRight",
"interval": "20",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "speed",
"value": "70"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "HitpointBlock",
"variables": {
"type": "dec",
"value": "1"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "CollisionBlock",
"variables": {
"className": "ナイト",
"whenHit": "\"hitAndDie\", ",
"score": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "incorrect.wav"
},
"next": null
}
},
"next": null
}
}
}
}
}
}
}, {
"x": 294,
"y": 222,
"constructorName": "PuppetBlock",
"variables": {
"name": "モンスター_3",
"fold": "+",
"image": "chara6.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "randomAppearBottom",
"interval": "20",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "speed",
"value": "70"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "HitpointBlock",
"variables": {
"type": "dec",
"value": "1"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "CollisionBlock",
"variables": {
"className": "ナイト",
"whenHit": "\"hitAndDie\", ",
"score": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "incorrect.wav"
},
"next": null
}
},
"next": null
}
}
}
}
}
}
}, {
"x": 464,
"y": 223,
"constructorName": "PuppetBlock",
"variables": {
"name": "モンスター_4",
"fold": "+",
"image": "chara6.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "randomAppearLeft",
"interval": "20",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "speed",
"value": "70"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "HitpointBlock",
"variables": {
"type": "dec",
"value": "1"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "CollisionBlock",
"variables": {
"className": "ナイト",
"whenHit": "\"hitAndDie\", ",
"score": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "incorrect.wav"
},
"next": null
}
},
"next": null
}
}
}
}
}
}
}, {
"x": -38,
"y": 265,
"constructorName": "PuppetBlock",
"variables": {
"name": "ばくはつ",
"fold": "+",
"image": "effect0.gif",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "AppearAlignBlock",
"variables": {
"type": "v",
"qtyH": "3",
"marginH": "0",
"qtyV": "20",
"marginV": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "explosion.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "gameover.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameOverBlock",
"variables": {},
"next": null
}
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "x",
"value": "0"
},
"next": null
}
}
}
}
}, {
"x": 123,
"y": 266,
"constructorName": "PuppetBlock",
"variables": {
"name": "ばくはつ_2",
"fold": "+",
"image": "effect0.gif",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "AppearAlignBlock",
"variables": {
"type": "v",
"qtyH": "20",
"marginH": "0",
"qtyV": "20",
"marginV": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "explosion.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "gameover.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameOverBlock",
"variables": {},
"next": null
}
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "x",
"value": "304"
},
"next": null
}
}
}
}
}, {
"x": 286,
"y": 264,
"constructorName": "PuppetBlock",
"variables": {
"name": "ばくはつ_3",
"fold": "+",
"image": "effect0.gif",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "AppearAlignBlock",
"variables": {
"type": "h",
"qtyH": "20",
"marginH": "0",
"qtyV": "3",
"marginV": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "explosion.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "gameover.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameOverBlock",
"variables": {},
"next": null
}
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "y",
"value": "304"
},
"next": null
}
}
}
}
}, {
"x": 448,
"y": 265,
"constructorName": "PuppetBlock",
"variables": {
"name": "ばくはつ_4",
"fold": "+",
"image": "effect0.gif",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "AppearAlignBlock",
"variables": {
"type": "h",
"qtyH": "20",
"marginH": "0",
"qtyV": "3",
"marginV": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ナイト",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "explosion.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "gameover.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameOverBlock",
"variables": {},
"next": null
}
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "y",
"value": "0"
},
"next": null
}
}
}
}
}, {
"x": -35,
"y": 154,
"constructorName": "TimerBoardBlock",
"variables": {
"countdir": "countdown",
"fold": "+",
"seconds": "30",
"behavior": null
}
}, {
"x": -33,
"y": 111,
"constructorName": "PuppetBlock",
"variables": {
"name": "ナイト",
"fold": "+",
"image": "chara5.png",
"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": "",
"movedirection": "Left",
"dx": "0",
"dy": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "speed",
"value": "50"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ListenerBlock",
"variables": {
"eventType": "timeup",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "IfBlock",
"variables": {
"condition": {
"x": 0,
"y": 0,
"constructorName": "AndBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": ">",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "1"
}
}
}
},
"fold": "+",
"thenDo": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "jingle.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameClearBlock",
"variables": {},
"next": null
}
},
"elseDo": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "gameover.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameOverBlock",
"variables": {},
"next": null
}
}
},
"next": null
}
},
"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": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ばくはつ_3",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": null
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ばくはつ_4",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": null
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ListenerBlock",
"variables": {
"eventType": "actordie",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "gameover.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameOverBlock",
"variables": {},
"next": null
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "モンスター",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "IfBlock",
"variables": {
"condition": {
"x": 0,
"y": 0,
"constructorName": "AndBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "==",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "0"
}
}
}
},
"fold": "+",
"thenDo": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": null
},
"elseDo": {
"x": 0,
"y": 0,
"constructorName": "AssignBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "-=",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "1"
}
}
},
"next": null
}
},
"next": null
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "モンスター_2",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "IfBlock",
"variables": {
"condition": {
"x": 0,
"y": 0,
"constructorName": "AndBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "==",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "0"
}
}
}
},
"fold": "+",
"thenDo": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": null
},
"elseDo": {
"x": 0,
"y": 0,
"constructorName": "AssignBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "-=",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "1"
}
}
},
"next": null
}
},
"next": null
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "モンスター_3",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "IfBlock",
"variables": {
"condition": {
"x": 0,
"y": 0,
"constructorName": "AndBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "==",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "0"
}
}
}
},
"fold": "+",
"thenDo": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": null
},
"elseDo": {
"x": 0,
"y": 0,
"constructorName": "AssignBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "-=",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "1"
}
}
},
"next": null
}
},
"next": null
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "モンスター_4",
"fold": "+",
"handler": {
"x": 0,
"y": 0,
"constructorName": "IfBlock",
"variables": {
"condition": {
"x": 0,
"y": 0,
"constructorName": "AndBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "==",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "0"
}
}
}
},
"fold": "+",
"thenDo": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": null
},
"elseDo": {
"x": 0,
"y": 0,
"constructorName": "AssignBlock",
"variables": {
"a": {
"x": 0,
"y": 0,
"constructorName": "PropertyBlock",
"variables": {
"name": "HP"
}
},
"op": "-=",
"b": {
"x": 0,
"y": 0,
"constructorName": "NumberBlock",
"variables": {
"value": "1"
}
}
},
"next": null
}
},
"next": null
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "HP",
"value": "30"
},
"next": null
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}, {
"x": 189,
"y": 185,
"constructorName": "BackgroundBlock",
"variables": {
"bgsrc": "white.png",
"imgUrl": ""
}
}]