Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Game_TiledDoodad.prototype.setup = function (data) {
- this._data = data;
- this._id = data.id;
- let gid = data.gid;
- gid &= ~(FLIPPED_HORIZONTALLY_FLAG | FLIPPED_VERTICALLY_FLAG);
- this._gid = gid ? gid : undefined;
- this._textureId = VisuMZ.Utility.getTextureId(gid);
- const tileset = $gameMap.tiledData.tilesets[this._textureId];
- if (tileset.tiles === undefined) {
- const tData = $gameMap.tiledData;
- tileset.tiles = [{id: 0, image: tileset.image, imageheight: tileset.imageheight, imagewidth: tileset.imagewidth }]
- }
- const tile = (tileset) ? tileset.tiles[this._gid - tileset.firstgid] : 'undefined'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement