Spriteset_Map.prototype.createTilemap = function() {
if (Graphics.isWebGL()) {
this._tilemap = new ShaderTilemap();
} else {
this._tilemap = new Tilemap();
}
this._tilemap.tileWidth = $gameMap.tileWidth();
this._tilemap.tileHeight = $gameMap.tileHeight();
this._tilemap.setData($gameMap.width(), $gameMap.height(), $gameMap.data());
this._tilemap.horizontalWrap = $gameMap.isLoopHorizontal();
this._tilemap.verticalWrap = $gameMap.isLoopVertical();
this.loadTileset();
this._baseSprite.addChild(this._tilemap);
this.sprite = new Sprite();
this.sprite.bitmap = ImageManager.loadCharacter('$BigMonster1');
this.sprite.setFrame(96, 96, 96, 96);
this.sprite.x = ($gamePlayer.x ) * 48 - 18;
this.sprite.y = ($gamePlayer.y ) * 48 + 12;
this.sprite.z = 2;
this._tilemap.addChild(this.sprite);
// get player's coordinate
};