JSFiddle - React, Tailwind, and code Playground
by Drath
JavaScript
var tiles = {};
tiles = {
0: {0: "test", 1: "test2", 2: "test3" },
1: {0: "test", 1: "test2", 2: "test3" }
}
console.log(tiles[0][0]);
tiles[0][0] = [];
tiles[0][0]["monsters"] = [];
tiles[0][0]["envitems"] = [];
tiles[0][0]["tileitems"] = [];
tiles[0][0]["monsters"].push("monstertype");
tiles[0][0]["monsters"].push("monstertype2");
tiles[0][0]["monsters"].push("monstertype3");
console.log(tiles[0][0]["monster"]);
console.log(tiles[0][0]["envitems"]);