escape/src/levels/level1.data.js

37 lines
1.5 KiB
JavaScript

// Bundled default level, exported as an ES module so it can be imported
// natively with no bundler and no JSON-import-attributes support needed.
// Kept in sync with level1.json; used as an offline fallback if fetch fails.
export default {
"version": 1,
"name": "Level 1 — Sandbox",
"width": 16,
"height": 16,
"tiles": [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1,
1, 0, 3, 0, 0, 0, 0, 0, 2, 0, 0, 0, 4, 4, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 4, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 2, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 5, 2, 2, 2, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1,
1, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
],
"playerStart": { "x": 3.5, "y": 12.5, "dir": -1.5707963267948966 },
"entities": [
{ "type": "enemy", "x": 6.5, "y": 3.5 },
{ "type": "enemy", "x": 12.5, "y": 12.5 },
{ "type": "ammo", "x": 5.5, "y": 9.5 },
{ "type": "health", "x": 13.5, "y": 5.5 },
{ "type": "treasure", "x": 2.5, "y": 1.5 },
{ "type": "exit", "x": 13.5, "y": 8.5 }
]
};