JSFiddle - React, Tailwind, and code Playground
JavaScript
MAP_WIDTH = 100;
MAP_HEIGHT + 100;
function createMap(w, h) {
return map;
}
Map = function(w, h) {
this._data = [];
for (var i = 0; i < w; i++)
{
var arr = [];
for (var j = 0; j < h; j++)
{
arr.push(0);
}
this._data.push(arr);
}
}
Map.prototype = {
draw: function() { }
};