/
VictoriaKoltsova
/
AI_2026_Module2_Project2
Обзор
Документация
Войти
/
VictoriaKoltsova
/
AI_2026_Module2_Project2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
js/escape-data.js
115 строк
6 KB
moskoltsova2009-ai
Build UK Quest game platform
09 авг 2026, 23:28
09 авг 2026, 23:28
54234c0
Код
Авторство
О чём код?
(() => { const LOCATIONS = [ { id: "guard-room", name: "The Guard Room", image: "../assets/images/tower/guard-room.jpg", mission: "Restore the Tower Rules and find a way into the White Tower.", hotspots: [ { id: "rules", label: "Tower Rules", x: 8, y: 17, w: 14, h: 34 }, { id: "painting", label: "Painting", x: 42, y: 20, w: 15, h: 31 }, { id: "dark-corner", label: "Dark corner", x: 57, y: 28, w: 12, h: 35 }, { id: "cabinet", label: "Locked cabinet", x: 27, y: 30, w: 12, h: 35 }, { id: "old-torch", label: "Old torch", x: 13, y: 68, w: 20, h: 15 }, { id: "secret-wall", label: "Faded symbols", x: 70, y: 23, w: 10, h: 24 }, { id: "guard-exit", label: "Locked door", x: 83, y: 22, w: 13, h: 51 }, ], }, { id: "white-tower", name: "The White Tower", image: "../assets/images/tower/white-tower.jpg", mission: "Listen to the message, open the chest and restore the Incident Report.", hotspots: [ { id: "audio-device", label: "Audio device", x: 82, y: 64, w: 13, h: 19 }, { id: "symbol-chest", label: "Symbol chest", x: 23, y: 45, w: 35, h: 41 }, { id: "incident-report", label: "Incident Report", x: 68, y: 66, w: 15, h: 19 }, { id: "raven-arch", label: "Courtyard arch", x: 62, y: 17, w: 14, h: 42 }, ], }, { id: "raven-yard", name: "Raven Yard", image: "../assets/images/tower/raven-yard.jpg", mission: "Find what the raven wants and recover the Small Key.", hotspots: [ { id: "raven", label: "Raven", x: 8, y: 37, w: 24, h: 37 }, { id: "raven-feather", label: "Black feather", x: 24, y: 75, w: 14, h: 12 }, { id: "secret-door", label: "Small locked door", x: 86, y: 39, w: 11, h: 35 }, ], }, { id: "secret-chamber", name: "The Secret Chamber", image: "../assets/images/tower/secret-chamber.jpg", mission: "Use the English clue to arrange the portraits and complete the map.", hotspots: [ { id: "portraits", label: "Portrait mechanism", x: 28, y: 12, w: 39, h: 48 }, { id: "map-table", label: "Map table", x: 12, y: 62, w: 53, h: 29 }, { id: "crown-token", label: "Crown alcove", x: 4, y: 22, w: 12, h: 27 }, { id: "gate-arch", label: "River passage", x: 70, y: 19, w: 14, h: 45 }, ], }, { id: "traitors-gate", name: "Traitors' Gate", image: "../assets/images/tower/traitors-gate.jpg", mission: "Restore the night plan, follow the map and find the Final Key.", hotspots: [ { id: "guard-schedule", label: "Night Guard Schedule", x: 5, y: 39, w: 15, h: 28 }, { id: "map-search", label: "Search with map", x: 65, y: 64, w: 18, h: 19 }, { id: "crown-stone", label: "Crown stone", x: 26, y: 73, w: 18, h: 19 }, { id: "secret-letter", label: "Loose river stone", x: 84, y: 62, w: 12, h: 21 }, { id: "final-gate", label: "River gate", x: 20, y: 8, w: 34, h: 59 }, ], }, ]; const ITEMS = { "old-key": { name: "Old Key", icon: "KEY", description: "A small key from the darkest corner." }, bread: { name: "Bread", icon: "BRD", description: "A raven may want this." }, battery: { name: "Battery", icon: "BAT", description: "It still has some power." }, "iron-key": { name: "Iron Key", icon: "IRON", description: "A heavy key for a strong door." }, "old-torch": { name: "Old Torch", icon: "OFF", description: "The torch does not work." }, "working-torch": { name: "Working Torch", icon: "LIT", description: "A useful light for dark places." }, "map-piece-1": { name: "Map Piece 1", icon: "M1", description: "Half of an old Tower map." }, "map-piece-2": { name: "Map Piece 2", icon: "M2", description: "The second half of the map." }, "complete-map": { name: "Complete Map", icon: "MAP", description: "The complete route to Traitors' Gate." }, "small-key": { name: "Small Key", icon: "KEY", description: "The raven dropped this key." }, "final-key": { name: "Final Key", icon: "FINAL", description: "The key to the river gate." }, }; const CLUES = { painting: "Look where the light cannot reach.", audio: "First choose the lion. Then choose the crown. The sword comes last.", portraits: "The king stands directly before the young guard. The woman in red is not first. The man with the book comes last.", final: "The final key is near the water. It is not inside the White Tower. It is not where the ravens gather.", }; const GRAMMAR_PUZZLES = { present: { id: "present", title: "Tower Rules", discovery: "Present Simple Passive", formula: "is / are + past participle", mistakeKey: "presentPassiveMistakes", sentences: [ { before: "The gates", after: "every evening.", answer: "are locked" }, { before: "The main key", after: "in the guard's cabinet.", answer: "is kept" }, { before: "The ravens", after: "twice a day.", answer: "are fed" }, ], }, past: { id: "past", title: "Incident Report", discovery: "Past Simple Passive", formula: "was / were + past participle", mistakeKey: "pastPassiveMistakes", sentences: [ { before: "The main key", after: "from the Guard Room.", answer: "was moved" }, { before: "A small key", after: "by a raven.", answer: "was taken" }, { before: "Two map pieces", after: "in different rooms.", answer: "were hidden" }, ], }, future: { id: "future", title: "Night Guard Schedule", discovery: "Future Simple Passive", formula: "will be + past participle", mistakeKey: "futurePassiveMistakes", sentences: [ { before: "11:30 · The courtyard", after: ".", answer: "will be checked" }, { before: "11:45 · The lights", after: ".", answer: "will be turned off" }, { before: "12:00 · The river gate", after: ".", answer: "will be locked" }, ], }, }; const HINTS = { "guard-room": "Restore the Tower Rules. One sentence tells you where the main key is kept.", "white-tower": "Listen to the order carefully, then think about what happened earlier.", "raven-yard": "Maybe the raven wants something from your inventory.", "secret-chamber": "The man with the book must come last.", "traitors-gate": "Restore the night plan, then choose the place closest to the water.", }; window.TowerEscapeData = { LOCATIONS, ITEMS, CLUES, GRAMMAR_PUZZLES, HINTS }; })();