UNPKG

warriorjs-ja

Version:

Game written in JavaScript for learning JavaScript and artificial intelligence

63 lines (60 loc) 1.55 kB
{ "description": "You hear cries for help. Captives must need rescuing.", "tip": "Use `warrior.feel().isCaptive()` to see if there is a captive and `warrior.rescue()` to rescue him. Don't attack captives.", "clue": "Don't forget to constantly check if you're taking damage. Rest until your health is full if you aren't taking damage.", "timeBonus": 45, "aceScore": 123, "floor": { "size": { "width": 7, "height": 1 }, "stairs": { "x": 6, "y": 0 }, "warrior": { "x": 0, "y": 0, "facing": "east", "abilities": [ { "name": "rescue", "args": [] } ] }, "units": [ { "type": "captive", "x": 2, "y": 0, "facing": "west" }, { "type": "archer", "x": 3, "y": 0, "facing": "west" }, { "type": "archer", "x": 4, "y": 0, "facing": "west" }, { "type": "thickSludge", "x": 5, "y": 0, "facing": "west" }, { "type": "captive", "x": 6, "y": 0, "facing": "west" } ] } }