warriorjs-ja
Version:
Game written in JavaScript for learning JavaScript and artificial intelligence
61 lines (58 loc) • 1.55 kB
JSON
{
"description": "You discover a satchel of bombs which will help when facing a mob of enemies.",
"tip": "Detonate a bomb when you see a couple enemies ahead of you (`warrior.look()`). Watch out for your health too.",
"clue": "Calling `warrior.look()` will return an array of Spaces. If the first two contain enemies, detonate a bomb with `warrior.detonate()`.",
"timeBonus": 30,
"aceScore": 91,
"floor": {
"size": {
"width": 7,
"height": 1
},
"stairs": {
"x": 6,
"y": 0
},
"warrior": {
"x": 0,
"y": 0,
"facing": "east",
"abilities": [
{
"name": "detonate",
"args": []
},
{
"name": "look",
"args": []
}
]
},
"units": [
{
"type": "captive",
"x": 5,
"y": 0,
"facing": "west",
"abilities": [
{
"name": "explode",
"args": [9]
}
]
},
{
"type": "thickSludge",
"x": 2,
"y": 0,
"facing": "west"
},
{
"type": "sludge",
"x": 3,
"y": 0,
"facing": "west"
}
]
}
}