Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@reldens/tile-map-optimizer

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reldens/tile-map-optimizer

Reldens - Tile Map Optimizer

Source
npmnpm
Version
0.22.0
Version published
Weekly downloads
128
18.52%
Maintainers
1
Weekly downloads
 
Created
Source

Reldens - GitHub - Release

Reldens - Tile Map Optimizer

A tool to optimize a tile map JSON, merge multiple tilesheets into a single image only with the used tiles.

Need some specific feature?

Request a feature here: https://www.reldens.com/features-request

Documentation

https://www.reldens.com/documentation/tile-map-optimizer/

Simple to use example:

Create a file to configure the optimizer with the file to be optimized:

const { TileMapOptimizer } = require('@reldens/tile-map-optimizer');
const originalJSON = require('./reldens-town.json');

const options = {
    originalJSON,
    originalMapFileName: 'reldens-town',
    factor: 2,
    transparentColor: '#000000',
    rootFolder: __dirname
};

const tileMapOptimizer = new TileMapOptimizer(options);

tileMapOptimizer.generate().catch((error) => {
    console.log(error);
}).then(() => {
    console.log('Map saved! Check generated folder.');
});

Run it:

$ node ./optimize-example.js

Look for your optimized maps on the "generated" folder.

Reldens

By DwDeveloper

Keywords

reldens

FAQs

Package last updated on 06 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts