UNPKG

warriorjs-ja

Version:

Game written in JavaScript for learning JavaScript and artificial intelligence

55 lines (52 loc) 1.32 kB
{ "description": "You hear the mumbling of wizards. Beware of their deadly wands! Good thing you found a bow.", "tip": "Use `warrior.look()` to determine your surroundings, and `warrior.shoot()` to fire an arrow.", "clue": "Wizards are deadly but low in health. Kill them before they have time to attack.", "timeBonus": 20, "aceScore": 46, "floor": { "size": { "width": 6, "height": 1 }, "stairs": { "x": 5, "y": 0 }, "warrior": { "x": 0, "y": 0, "facing": "east", "abilities": [ { "name": "look", "args": [] }, { "name": "shoot", "args": [] } ] }, "units": [ { "type": "captive", "x": 2, "y": 0, "facing": "west" }, { "type": "wizard", "x": 3, "y": 0, "facing": "west" }, { "type": "wizard", "x": 4, "y": 0, "facing": "west" } ] } }