このゲームを始めるには、まず上の「スライムハンター」(リンク)をクリックし左下あたりにあるRunボタンをクリックします。
次にその左側にあるスクリーンボタンをクリックして出てきた画面をクリックしたら始められます。
このゲームは、上から走ってくる豚よりさきにスライムを狩るゲームです。
上から走ってくる豚を避けながらスライムを狩ります。
スライムを狩ると一匹50ポイントずつ手に入ります。
でも豚に当たるとー50ポイントです。
500ポイントまでためたらクリアです。
スコアが0になったらゲームオーバーです。
このゲームはmoonblockでつくります。
moonblockは教養としてのプログラミング講座
P.124~P.152をみてください。
[{
"x": -1119, このプログラムは私のゲームのソースリストです。
"y": -1462,
"constructorName": "PuppetBlock",
"variables": {
"name": "スライム",
"fold": "-",
"image": "chara6.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "randomAppearTop",
"interval": "80",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "MoveBlock",
"variables": {
"type": "zigzag",
"zigzagdirection": "X",
"tapdirection": "",
"movedirection": "Up",
"dx": "0",
"dy": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "speed",
"value": "50"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ColorBlock",
"variables": {
"color": [255, 241, 0]
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "主人公",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "bounce.wav"
},
"next": null
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ぶた",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "explosion.wav"
},
"next": null
}
}
},
"next": null
}
}
}
}
}
}
}
}, {
"x": -2100,
"y": -1456,
"constructorName": "PuppetBlock",
"variables": {
"name": "ぶた",
"fold": "-",
"image": "chara2.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "randomAppearTop",
"interval": "50",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ColorBlock",
"variables": {
"color": [121, 222, 255]
},
"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": "DieBlock",
"variables": {},
"next": null
}
}
},
"next": null
}
}
}
}
}, {
"x": -714,
"y": -1459,
"constructorName": "PuppetBlock",
"variables": {
"name": "ばくはつ",
"fold": "-",
"image": "effect0.gif",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "DisplayBlock",
"variables": {
"appeartype": "standAlone",
"interval": "30",
"initial": "10"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "主人公",
"fold": "-",
"handler": {
"x": 0,
"y": 0,
"constructorName": "ScoreBlock",
"variables": {
"value": "100"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "DieBlock",
"variables": {},
"next": null
}
}
},
"next": null
}
}
}
}, {
"x": -2120,
"y": -981,
"constructorName": "BackgroundBlock",
"variables": {
"bgsrc": "rpg.png",
"imgUrl": ""
}
}, {
"x": -1916,
"y": -979,
"constructorName": "ScoreBoardBlock",
"variables": {
"fold": "+",
"behavior": null
}
}, {
"x": -1701,
"y": -1452,
"constructorName": "PuppetBlock",
"variables": {
"name": "主人公",
"fold": "-",
"image": "chara0.png",
"behavior": {
"x": 0,
"y": 0,
"constructorName": "FrameBlock",
"variables": {
"prop": "HP",
"value": "100"
},
"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": "",
"movedirection": "Left",
"dx": "0",
"dy": "0"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "ぶた",
"fold": "-",
"handler": {
"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": "-50"
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ScoreBlock",
"variables": {
"value": "-50"
},
"next": null
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "TargetHitBlock",
"variables": {
"className": "スライム",
"fold": "-",
"handler": {
"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": "50"
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ScoreBlock",
"variables": {
"value": "50"
},
"next": {
"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": "450"
}
}
}
},
"fold": "-",
"thenDo": {
"x": 0,
"y": 0,
"constructorName": "SEBlock",
"variables": {
"sesrc": "jingle.wav"
},
"next": {
"x": 0,
"y": 0,
"constructorName": "GameClearBlock",
"variables": {},
"next": null
}
},
"elseDo": null
},
"next": null
}
}
}
},
"next": {
"x": 0,
"y": 0,
"constructorName": "ColorBlock",
"variables": {
"color": [255, 185, 44]
},
"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": null
}
}
}
}
}
}
}
}
}]