warriorjs-ja
Version:
Game written in JavaScript for learning JavaScript and artificial intelligence
61 lines (58 loc) • 1.44 kB
JSON
{
"description": "You feel slime on all sides, you're surrounded!",
"tip": "Call `warrior.bind(direction)` to bind an enemy to keep him from attacking. Bound enemies look like captives.",
"clue": "Count the number of enemies around you. Bind an enemy if there are two or more.",
"timeBonus": 50,
"aceScore": 101,
"floor": {
"size": {
"width": 3,
"height": 3
},
"stairs": {
"x": 0,
"y": 0
},
"warrior": {
"x": 1,
"y": 1,
"facing": "east",
"abilities": [
{
"name": "bind",
"args": []
},
{
"name": "rescue",
"args": []
}
]
},
"units": [
{
"type": "sludge",
"x": 1,
"y": 0,
"facing": "west"
},
{
"type": "captive",
"x": 1,
"y": 2,
"facing": "west"
},
{
"type": "sludge",
"x": 0,
"y": 1,
"facing": "west"
},
{
"type": "sludge",
"x": 2,
"y": 1,
"facing": "west"
}
]
}
}