moufmouf / wa-map-optimizer

WorkAdventure Map Optimizer! Does your map need a diet?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WA Map Optimizer 💪

Version License: AGPL--3.0

WorkAdventure Map Optimizer! Does your map need a diet?

Requirements

  • Node 16.15 <
  • Yarn 1.22 <

Install

yarn add wa-map-optimizer

Usage

import { optimize } from "wa-map-optimizer";

async function run() {
    await optimize("./example/map.json");
    console.log("Optimization finished");
}

run();

Advenced usage

import { optimize } from "wa-map-optimizer";

async function run() {
    await optimize("./example/map.json", {
      tile: {
          size: 32,
      },
      output: {
          path: "optimisation/new_map",
          mapName: "awesome-map",
          tilesetName: "tile-opti",
      }
    });
    console.log("Optimization finished");
}

run();

Author

👤 Nolway (Alexis Faizeau)

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2022 Nolway(Alexis Faizeau).
This project is AGPL--3.0 licensed.

About

WorkAdventure Map Optimizer! Does your map need a diet?

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 99.7%Language:Shell 0.3%